Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Raju2002
Starting Member
1 Post |
Posted - 2012-03-29 : 23:09:50
|
| I have a batch file something likesqlcmd -S .\SQLEXPRESS -E -i "Test.sql"IF %ERRORLEVEL% == 100 GOTO ENDbatchfile2.bat:ENDand in test.sqlSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOSET NOCOUNT ONprint 'xyz'EXIT(SELECT 100)above code works fine. but code below ie when exit(...) is put inside a if block it give error. SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOSET NOCOUNT ONprint 'xyz'if 2=2 EXIT(SELECT 100) |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|
|