I have a small app/site on a dev server with a data table in SQL Server [varchar(40),varchar(40),varchar(MAX)]. I want to take the data table and push it to the live server. I have tried exporting in txt, Excel and Access but every time there is an error on import related to not being able to parse due to the data in the varchar(MAX) field or unicode to non-unicode conversion from Access.
I feel like I'm overlooking a good solution here. This doesn't need to be automated at the moment. I believe there are ways to transfer tables between databases connected through a network/internet connection but our live database is not accessible from our office. I've used a data export in MySQL before that creates a script to run on another database to insert all data records, but I don't believe that is available in MSSQL.
Any suggestions?
I've used a data export in MySQL before that creates a script to run on another database to insert all data records, but I don't believe that is available in MSSQL.
Aha! You can do this in Microsoft SQL, basically. A little-known Microsoft utility, the "SQL Server Database Publishing Wizard," exists and does what you're talking about.
http://www.microsoft.com/downloads/details.aspx?familyid=56E5B1C5-BF17-42E0-A410-371A838E570A&displaylang=en
Why this isn't a standard part of SQL Server, I have no idea.
You could use sql server backup and restore features (details here)
If you want to limit the backup to a single table (because the database is too big for example), You can put your table in its own file group and use the backup feature of sql server on that file group.
If you don't know what a filegroup is, you will find some information here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With