Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Creating Foreign Key in SQLServer 2000?

Author  Topic 

elearnindia
Starting Member

1 Post

Posted - 2010-03-09 : 10:34:06
While trying to create foreign key on a table in SQLServer2000 following error is coming

"The columns in "tbl_faculty" do not match an existing primary key or UNIQUE constraint"

I work in MySQL and SQLServer 2000 is new to me.

Any kind help will be appreciated.Thanks in advance.

Srinivas Varma

Transact Charlie
Master Smack Fu Yak Hacker

3451 Posts

Posted - 2010-03-09 : 11:49:15
Do you have a primary key or unique constraint on the column that you want to reference?



Charlie
===============================================================
Msg 3903, Level 16, State 1, Line 1736
The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION
Go to Top of Page
   

- Advertisement -