all groups > sql server programming > november 2003 >
You're in the

sql server programming

group:

Foreign Key & UniqueIdentifier


Re: Foreign Key & UniqueIdentifier Jacco Schalkwijk
11/8/2003 3:18:33 PM
sql server programming: Yes, column(s) on the foreign key side of a relationship must have the same
datatype as the column(s) on the primary key side.

--
Jacco Schalkwijk
SQL Server MVP


[quoted text, click to view]

Foreign Key & UniqueIdentifier BlckHlDev
11/8/2003 8:08:01 PM
In master table the data type of Primary Key is UniqueIdentiFier, In Detail
table what should be the DataType of the Referenced column to establish a
Foreign Key Relationship? Int & BigInt are not Working, only
UniqueIdentifier is working,
Is this the Restriction?

AddThis Social Bookmark Button