Sir, Is there any option to make PK auto increment from tbl_A to the FK in tbl_B?
in case of tbl_Division,
divisionId in PK(IDENTITY)
divisionName
classId(FK,IDENTITY in tbl_Class)
if I enter divisionName, divisionId will be generate 1 , but My doubt is would the classId also increament same as tbl_Class date to tbl_Division?
INSERT Auto Incremented PK from Table A into FK of Table B
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Riyaz AkhtarRank #2,275 · 619 reputationPosted Jun 14, 2013, 1:44 AM EDT
Bineesh ViswanathRank #1,681 · 907 reputationPosted Jun 14, 2013, 7:53 PM EDT
auto increment of classId(PK) from tbl_Class tbl_Division where classId is Fk, not happening.
Ravi ShekharRank #673 · 3.6K reputationPosted Jun 15, 2013, 1:24 AM EDT
You can make PK auto increment from tbl_A to the FK in tbl_B. and it will work properly.
Bineesh ViswanathRank #1,681 · 907 reputationPosted Jun 18, 2013, 11:14 PM EDT
Here I attached a MS Word File includes my doubts is been included in the form of questions.
I request you to send me the answers for all these questions.