Hello,
I have tables which have relation. I want to know how can I set the PK value of table A which is the FK of table B while I can’t have “SET IDENTITY_INSERT BATTERY ON” for two table at one time?
Thank you,
csharpa
0
Newbie Poster
Recommended Answers
Jump to PostYou can't have SET IDENTITY_INSERT for more than one table at a time per database. This is a Microsoft SQL rule.
Second, if you have related two tables through a foreign key constraint, and both are using an Identity Column as their primary key... and the contraint is between …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.