jaykob
شنبه 03 دی 1390, 19:09 عصر
سلام دوستان
من می خوام یکی از فیلد هام رو که نوعش tinyint هست مثلا کلاس درسی رو به یک جدول دیگه که دو فیلد id از نوع tinyint و یک فیلد class داره ارتباط بدم بالای 8 بار دیگه همین کار رو با شرایط یکسان برای یکی از جداول دیگم انجام دادم مشکلی نبود اما برای 2 تا از جداولم پیام خطای زیر رو می ده . ممنون می شم رهنمایی کنید
'tbl_StudentClass' table saved successfully
'tbl_Student' table
- Unable to create relationship 'FK_tbl_Student_tbl_StudentClass'.
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_tbl_Student_tbl_StudentClass". The conflict occurred in database "jointest", table "dbo.tbl_StudentClass", column 'id'.
من می خوام یکی از فیلد هام رو که نوعش tinyint هست مثلا کلاس درسی رو به یک جدول دیگه که دو فیلد id از نوع tinyint و یک فیلد class داره ارتباط بدم بالای 8 بار دیگه همین کار رو با شرایط یکسان برای یکی از جداول دیگم انجام دادم مشکلی نبود اما برای 2 تا از جداولم پیام خطای زیر رو می ده . ممنون می شم رهنمایی کنید
'tbl_StudentClass' table saved successfully
'tbl_Student' table
- Unable to create relationship 'FK_tbl_Student_tbl_StudentClass'.
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_tbl_Student_tbl_StudentClass". The conflict occurred in database "jointest", table "dbo.tbl_StudentClass", column 'id'.