BUG: DTS Query Builder Problem with Inline CommentID: Q199280
|
The SQL Enterprise Manager Data Transformation Services (DTS) Query Builder does not correctly build an SQL statement that begins with the SQL Server inline comment '--'. Every line after the comment is treated as part of the comment. The Query Builder does not recognize that the comment ends on the same line that contained the '--' inline comment marker.
For example, if you typed the query
select * from titles
where title_id > 'B'
-- here's my comment
AND price > 11.00
select * from titles
where title_id > 'B'
To work around this problem, use the /* comment */ style of comments with the DTS Query Builder instead of the '--' inline comments.
For example, instead of comments like this:
-- This is a comment
/* This is a comment */
Microsoft has confirmed this to be a problem in SQL Server version 7.0.
Additional query words: remark remarks in line
Keywords : SSrvTran_SQL kbbug7.00
Version : winnt:7.0
Platform : winnt
Issue type : kbbug
Last Reviewed: January 22, 1999