Re: Commenting in Sql

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Brian Tkatch wrote:
On Mon, 18 Jun 2007 09:21:43 -0400, "Bob Barrows [MVP]"
<reb01501@xxxxxxxxxxxxxxx> wrote:

shiv.shankar.dr@xxxxxxxxx wrote:
I am using Adodb in Vb6 and Access 2000
i want to know how i can have some text commented with in Sql
statement,

It can't. Jet (Access) does not support comments in sql statements

Unless, perhaps, he "cheats" and uses it in the WHERE caluse:

WHERE 'Comment' <> 'This is a comment on how this thing works.'

Clever, but there will be an impact on performance since this expression
will need to be evaluated against every row in the table.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • Re: SQL question
    ... you may still need to contact your vendor or post in SQL ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • RE: NOLOCK due to data movement
    ... Please understanding our newsgroup is mainly focused on SBS support. ... Although SQL server is installed on SBS, if SQL server has problem, for ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • RE: SQl Server after upgrade
    ... Open SQL Query Analyzer. ... Microsoft CSS Online Newsgroup Support ... you may want to contact Microsoft CSS directly. ...
    (microsoft.public.windows.server.sbs)
  • Re: ShapePoint database upgraded to SQL Server 2K - change sa password?
    ... that the newsgroups are staffed weekdays by Microsoft Support professionals ... The SQL 2K upgrade processed smoothly. ... the Newsgroup. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: Cant view merge agent properties (trying again)
    ... that you open a Support incident with Microsoft Product Support Services ... However, If you'd still like to continue working via the newsgroup, I want ... me know how do you configure the merge replication? ... You use your SQL CE as ...
    (microsoft.public.sqlserver.replication)