(for sql server - in sql server management studio)
I am having a few tables in my db with some data in those tables. I want to to transfer that data to my server; on that server I can run SQL queries. How can i generate the SQL to this?
(for sql server - in sql server management studio)
I am having a few tables in my db with some data in those tables. I want to to transfer that data to my server; on that server I can run SQL queries. How can i generate the SQL to this?
First, generate scripts for table structure and run the scripts on your target server, then use the bcp
tool (see http://msdn.microsoft.com/en-us/library/ms162802.aspx) to migrate the data.
Take a backup of the database and copy that .bak file to your server, then use restore database
option of SQL Management studio to restore the database from that .bak file.
Thanks