We have the code that is read in the SQL script file set, and after doing some processing on them, they break them into groups by typing the keyword "GO" and then send each batch to Sql Server using a separate SqlCommon.
Is there a better way to do this so that we:
- Dont have so many round trips
- Never expect SQL Server to expect the following command
- It is faster.
(Packages mainly create tables, indexes, views, and stored processes. Speed is a problem, because our integration tests often type code. The standard sql server line tool cannot be installed on the machine that runs this code.)
source
share