Missing end comment mark '*/'.
SQL Server error message 113 occurs when you omit a closing comment mark.
This can occur when you open a comment but forget to close it. It can also occur when you accidentally type an opening comment.
There are 2 ways of specifying comments in a Transact-SQL script, namely with the use of two hyphens (--) for single-line comments, and with the use of /* and */ for multi-line comments. This error message occurs when using the /* and */ for multi-line comments and the closing */ is missing.
The error can be generated below 2 ways.
/*
Select * from Employee
Go
/*
--Select * from Employee /*
Go
*/
Output:
Msg 113, Level 15, State 1, Line 1
Missing end comment mark '*/'.
To avoid this error make sure there are same number of opening and closing tags
/*
Select * from Employee
Go */
/*
--Select * from Employee /*
Go
*/*/
No comments:
Post a Comment