![]() |
| ||
| backup script for a table in MSSQL 2005 hi all, Very new this forum. i am using MSSQL 2005 and i want to create a backup script for a table [create and insert statements] without using mssql datapublishing wizard 2005. is it possible?? how can i do it Best Regard |
| ||
| Re: backup script for a table in MSSQL 2005 al = new ArrayList(); This code will do it. GetDs simply returns the dataset from the query, and dbToInsert will go through each row and dump the correct row data as an insert statement. IsIdent dumps back if the tables have an identity column. I should mention this will only work if the table has a primary key. I wrote this a long time ago so you may have to play with it, but itll get you started. Let me know if you need any help at dested@gmail.com . |
| ||
| Re: backup script for a table in MSSQL 2005 thanks a lot for your help. let me try it out and see what it returns. Quote:
|
| All times are GMT -4. The time now is 1:36 am. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC