hooty70
دوشنبه 11 شهریور 1392, 11:48 صبح
سلام من دوتا جدول دارم که فیلداشون بصورت زیره:
patientTBL
ID=> primary Key
Case ID => int => primary key
(Fname,Lname,age,birthdate, fullname=>nvarchar(max
testTBl
Test_ID=>int primary key
Test_Code=>nvarchar50
score
testdate
teststarttime
patient_ID
Fullname
بین اینا که می خوام Relation ایجاد کنم بین Case_ID و Patient _ID این خطارو میده موقع save چکار کنم
/*
Monday, September 02, 201311:11:25 AM
User:
Server: (local)
Database: GeneralDatabase
Application:
*/
'TestsTBL' table saved successfully
'PatientsTBL' table
- Unable to create relationship 'FK_PatientsTBL_TestsTBL'.
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_PatientsTBL_TestsTBL". The conflict occurred in database "GeneralDatabase", table "dbo.TestsTBL", column 'Test_ID'.
ممنون میشم کمکم کنید
patientTBL
ID=> primary Key
Case ID => int => primary key
(Fname,Lname,age,birthdate, fullname=>nvarchar(max
testTBl
Test_ID=>int primary key
Test_Code=>nvarchar50
score
testdate
teststarttime
patient_ID
Fullname
بین اینا که می خوام Relation ایجاد کنم بین Case_ID و Patient _ID این خطارو میده موقع save چکار کنم
/*
Monday, September 02, 201311:11:25 AM
User:
Server: (local)
Database: GeneralDatabase
Application:
*/
'TestsTBL' table saved successfully
'PatientsTBL' table
- Unable to create relationship 'FK_PatientsTBL_TestsTBL'.
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_PatientsTBL_TestsTBL". The conflict occurred in database "GeneralDatabase", table "dbo.TestsTBL", column 'Test_ID'.
ممنون میشم کمکم کنید