i want to write an appilcation that use sql server express database
i can do this with installling and configuring on my computer but....
how i must give this database to user ?
how can i install it on user computer?
even if install it tables are not there.
Armin DashtiPosted Sep 14, 2017, 10:29 AM
Mukil VendhanPosted Sep 14, 2017, 10:14 AM
Have a look here: http://technet.microsoft.com/en-us/library/cc966495.aspx
There's a lot of stuff there, but essentially, right click on the database, Tasks > Backup. Fill in the options to perform a full backup to somewhere.
Once it's created it's file (one big file, by convention with a BAK extension), on the second computer, right click the Databases folder, Restore Database and follow the prompts.
You can do it as well in SQL if you wish:
There might be times when it's better to detach and move, but this approach always feels a bit safer!
This will copy both structure and the data in the database.