[dba-VB] Reserved words

jwcolby jwcolby at colbyconsulting.com
Mon Dec 3 10:19:48 CST 2007


And that is what I am doing now.  Thanks for the suggestion. 


John W. Colby
Colby Consulting
www.ColbyConsulting.com 
-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka
Sent: Monday, December 03, 2007 10:23 AM
To: dba-vb at databaseadvisors.com
Subject: Re: [dba-VB] Reserved words

Why not prepend all your tables with tbl? That would guarantee that you
don't hit a reserved word.

Drew

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Friday, November 30, 2007 1:44 PM
To: dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com
Subject: [dba-VB] Reserved words

Does anyone know if the reserved words in SQL Server (can't be used in table
names etc) are in a table anywhere (in sql server)?  I have code that builds
tables and it really needs to check the proposed table name to make sure
that the name isn't a reserved word, and that it does not have special
characters.  I have had TWO times now where I was hunting down errors caused
by issues with what is valid in a table name.

I could build a table of reserved words but if any new ones are added my
list would be short.

John W. Colby
Colby Consulting
www.ColbyConsulting.com 

_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com

The information contained in this transmission is intended only for the
person or entity to which it is addressed and may contain II-VI Proprietary
and/or II-VI BusinessSensitve material. If you are not the intended
recipient, please contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy. You are notified that any
review, retransmission, copying, disclosure, dissemination, or other use of,
or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited.


_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com




More information about the dba-VB mailing list