SET dbName=RemmicomMeetingDb SET sqlCmdCommand=sqlcmd -S . -E -i
%sqlCmdCommand% "DropAndCreateDb.sql"
FOR /F %%i IN ('dir /b /on *.sql') DO %sqlCmdCommand% %%i -d %dbName%
This comment has been removed by a blog administrator.
Just make sure they start with if they are transactional :)SET XACT_ABORT ON;GOBEGIN TRAN...CONTENT...COMMIT TRAN
This comment has been removed by a blog administrator.
ReplyDeleteJust make sure they start with if they are transactional :)
ReplyDeleteSET XACT_ABORT ON;
GO
BEGIN TRAN
...CONTENT...
COMMIT TRAN