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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

primary key problem

Status
Not open for further replies.

luds

Programmer
Jul 15, 2003
162
GB
I would like to change the PRimary Key for a table in a db.

I've got to ALTER TABLE tablename <enter> but what comes next? All my efforts just result in syntax errors!

Thanks

luds
 
You will probably not be able to ALTER the table until you remove the relationships first and then set them again. Otherwise, you'd best look up the rules for using the ALTER TABLE syntax to find out how you can do this without interfering with the referential integrity rules you've set on the tables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top