Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

&*%&**$!! - what is this syntax???

Status
Not open for further replies.

katgirl

Programmer
Jul 6, 2006
114
US
Am I the only person who finds BOL's syntax diagrams undecipherable???

What am I doing wrong here?? ARgggghhhhh

ALTER TABLE myTable ADD myForeignKeyName FOREIGN KEY (column name) REFERENCES PKTable (column name)
 
Try...

Code:
ALTER TABLE myTable ADD [!]constraint[/!] myForeignKeyName FOREIGN KEY (column name) REFERENCES PKTable (column name)

You're not the first to be bothered by the documentation. Often times, it's better to scroll down to the examples. In this case, the examples aren't that helpful either.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top