SQLCMD Mode - Incorrect Syntax?

Posted by OMG Ponies on Stack Overflow See other posts from Stack Overflow or by OMG Ponies
Published on 2010-04-14T22:28:10Z Indexed on 2010/04/14 22:33 UTC
Read the original article Hit count: 555

Filed under:
|
|

Trying to use:

:On Error exit

:r D:\opt\db_objects\REPORTS\dbo.sp_ReportCountLORUsers.sql

...and I get:

Msg 102, Level 15, State 1, Line 5 Incorrect syntax near 'U'. ** An error was encountered during execution of batch. Exiting.

What am I missing?

© Stack Overflow or respective owner

Related posts about sql

Related posts about sqlcmd