I have just tried to use the Script Data option in SubStage to generate a script for one of the tables in my SQL Server 2005 database.
Apart from there not being an obvious option to just do one table, and the output file being hidden amongst all of the generated DAL classes (it would have been nice to just allow it to script the data without regenerating the classes), I have a problem with my output.
The table has a Timestamp column called timestamp_column as recommended in the naming conventions. However, each INSERT statement generated (there are over 2,000 in this one table which I cut out from the full file) [timestamp_column] in the file list, but no value in the values list. This creates an error :
Msg 109, Level 15, State 1, Line 1
There are more columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.
I think this routine should exclude any timestamp columns from the list of fields as well as the values.
Kevin
(PS how do you get this forum to reset the font?)