Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Keeping comments in SQL in MSRS

Author  Topic 

JCirocco
Constraint Violating Yak Guru

392 Posts

Posted - 2009-08-25 : 10:49:27
I know this is probably REALLY a stupid question but is there a way to have my comments stay in the SQL code in Reporting Services? As soon as I click the Verify SQL button, my comments disappear and my code gets reformatted. Is there a way to stop this "feature"?

I have a report that is run for the current user BUT I have no records in this database so my design has a hard coded user with the original substitution commented out:

---- WHERE ('WNY\' + ED_Users.UserID = @UserID)
WHERE ('WNY\' + ED_Users.UserID = 'WNY\dchambers')


John
"Just don't tell me what I can't do!"
   

- Advertisement -