Commenting SQL Code In-Line

psimpson

Registered User.
Local time
Today, 14:49
Joined
Aug 1, 2007
Messages
40
Is there a way to comment out a specific section of a SQL query within MS Access? The normal SQL commands such as, rem text; ' text ; - text ; or /* text doesn't seem to work.

Any help is appreciated.

Thanks.
 
You could build the string up In a function and run the SQL statement from a function.

Alternatively I do know of a product you can buy that allows you to comment your SQL code, keeps a history of edits and stores the SQL for you. MORE HERE
 
Thanks for the confirmation, additional information.
 
Nice tool. I like how it retains formatting of your SQL also.

I always cringe whenever I see my nicely formatted SQL get turned into a stream of text the next time I open it up. I wonder why Microsoft doesn't have this type of functionality out of the box.
 

Users who are viewing this thread

Back
Top Bottom