SQL Comments on Create Table on SQL Server 2008
Posted
by
user494901
on Stack Overflow
See other posts from Stack Overflow
or by user494901
Published on 2011-01-03T17:45:24Z
Indexed on
2011/01/03
17:54 UTC
Read the original article
Hit count: 270
I need to create some pretty big tables in SQL server 2008, while I do have SQL Server Manager Studio, I would like to comment the tables and the columns when I create the table. How do I do this?
Example of the query I am running:
CREATE TABLE cert_Certifications ( certificationID int PRIMARY KEY IDENTITY, profileID int, cprAdultExp datetime null )
I've tried COMMENT'Expiration Date for the Adult CPR' and COMMENT='Expiration Date for the Adult CPR' after the data type, and SQL server is giving me an error.
© Stack Overflow or respective owner