Batches of scripts
JDS
Posts: 25
Is there any way to include a batch seperator between inserts into different tables?
Comments
That's a good question. Packager allows you to output the SQL and data scripts, so you can view them, or save them to disk. In the actual package output, though, they wouldn't have much meaning. The ADO .NET client that is going to run the script doesn't have a concept of batch separators (GO), as they're mainly to enhance the performance of SQL clients like Query Analyzer and Management Studio.
If you could elaborate on your need to have these, we can certainly look into it.
Thanks!
You would however have to be very careful about disabling foreign keys - doing things in the right order and all the other lovely things SQL Data Compare does for you when you tell it to work on a whole database.
If you're not using the API then there's no way of doing it (neatly anyway)
Project Manager
Red Gate Software Ltd