
The following code will result in an error /* Slash star comments can be nested and a starting /* inside a slash star comment needs to be ended with a */ to be valid. This can happen when SQL is captured during troubleshooting. Slash star comments have the advantage of keeping the comment usable if the SQL Statement loses new line characters. All text between those delimiters is considered as a comment block. Slash star comments begin with /* and end with */. Comments are ignored by the database engine, and are meant for people to read.Ĭomments are preceded by - and are ignored until a new line is encountered: - This is a comment

Transact-SQL supports two forms of comment writing. String Aggregate functions in SQL Server.SQL Server Evolution through different versions (2000 - 2016).Retrieve Information about your Instance.Retrieve information about the database.Microsoft SQL Server Management Studio Shortcut Keys.


Delimiting special characters and reserved words.Getting started with Microsoft SQL Server.
