Characters (possibly spanning several lines) in between /* */ are considered as comment.
Query
SELECT
[Measures]./* I'm a comment */ DefaultMember ON 0,
[Geography].[Geo].[Continent].Members ON 1
FROM
[Sales]
Result
|
Amount |
| America |
768 |
| Europe |
255 |
Assertion : Cell Equals
SELECT
[Measures]./* I'm a comment */ DefaultMember ON 0,
[Geography].[Geo].[Continent].Members ON 1
FROM
/*
I'm a comment
*/
[Sales]
// begins a comment that extends to the end of the line
Query
SELECT
[Measures].DefaultMember ON 0,
[Geography].[Geo].[Continent].Members ON 1 // I'm a comment
FROM
[Sales]
Result
|
Amount |
| America |
768 |
| Europe |
255 |
Assertion : Cell Equals
SELECT
[Measures].DefaultMember ON 0, // I'm a comment
[Geography].[Geo].[Continent].Members ON 1
FROM
[Sales]
// begins a comment that extends to the end of the line
Query
SELECT -- I'm a comment
[Measures].DefaultMember ON 0, -- I'm a comment too
[Geography].[Geo].[Continent].Members ON 1
FROM
[Sales]
Result
|
Amount |
| America |
768 |
| Europe |
255 |
Assertion : Cell Equals
SELECT -- I'm another comment
[Measures].DefaultMember ON 0,
[Geography].[Geo].[Continent].Members ON 1 -- I'm again a comment
FROM
[Sales]