dbTalk Databases Forums  

some error in table definition

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss some error in table definition in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: some error in table definition - 10-31-2007 , 04:45 PM






cong (franzcai80 (AT) gmail (DOT) com) writes:
Quote:
AUTHOR
)REFERENCES ????(??)
)
ON PRIMARY
)
GO

ROW 21:NEAR KEYWORD "PRIMARY" WRONG IN GRAMMA
As Roy said in an earlier post, put PRIMARY in square brackets:

ON [PRIMARY]

This is needed because PRIMARY here is just an identifier for the primary
filegroup. The clause could also be:

ON My_other_filegroup

As long as you don't use multiple filegroups, and it may take long before
you come around to that, you can skip the ON clause althogether, as it
just adds noise.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.