View Single Post
Old 22-Oct-2007, 12:46 AM   #1 (permalink)
Anilrgowda
Administrator
 
Anilrgowda's Avatar

Posts: 18,715
Join Date: Jan 2006
Rep Power: 10 Anilrgowda is on a distinguished road

IM:
Default Foreign Key T-SQL Syntax

In a SQL Server database, can you create multiple foreign keys on a table and all the column involved have some null values? If the table already has a primary key and you need to create foreign keys, do you have to make the new column the primary key in order to create a foreign key? Do you have some examples or illustrations (T-SQL Syntax) on how to create multiple foreign keys on two tables as a unique constraint while some of the values in these new foreign keys will have some null values?


------------------


Anilrgowda is offline   Reply With Quote