JaedenRuiner
Well-known member
- Joined
- Aug 13, 2007
- Messages
- 340
- Programming Experience
- 10+
Okay,
This Should be simple but something is not right:
Added Index (other than the automatic PK indexes):
Relations:
Now with all this made and set up the tables, keys, indexes and relations are all appropriate and solid, and the way I want them, but when I add that final FK_Email key, linking tblEmail as the Primary Key holder and tblBOL as the Foreign Key holder via the unique index of BOL & Location in tblEmail, I proceed to the Manage Relations view in the Table Properties and Get this Error:
Now this is just confusing as all get out. What index error?!?! What could possibly be screwing up a simple database relation of a Unique Index in a one to many relationship to another table where the two columns in question are not unique?
Please help,
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner
This Should be simple but something is not right:
- Create Connection via SQL CE
- Create DB file
- Add Tables
- tblLocation
- Loc_ID, nvarchar(6), primary
- tblMaterial
- Mat_ID, nvarchar(6), primary
- tblEmail
- Email_ID, nvarchar(10), primary
- BOL, nvarchar(10), primary
- Location, nvarchar(6), not null
- tblBOL
- BOL_ID, nvarchar(10), primary
- Material, nvarchar(6), primary
- Location, nvarchar(6), not null
- quantity, numeric(10)
Added Index (other than the automatic PK indexes):
- tblEmail - IDX_tblEmail
- BOL,Location UNIQUE
Relations:
- tblEmail
- FK_LocationEmail
tblLocation.Loc_ID -> tblEmail.Location
- FK_LocationEmail
- tblBOL
- FK_Material
- tblMaterial.Mat_ID -> tblBOL.Material
- FK_Email
- tblEmail.BOL -> tblBOL.BOL_ID
- tblEmail.Location -> tblBOL.Location
- FK_Material
Now with all this made and set up the tables, keys, indexes and relations are all appropriate and solid, and the way I want them, but when I add that final FK_Email key, linking tblEmail as the Primary Key holder and tblBOL as the Foreign Key holder via the unique index of BOL & Location in tblEmail, I proceed to the Manage Relations view in the Table Properties and Get this Error:

Now this is just confusing as all get out. What index error?!?! What could possibly be screwing up a simple database relation of a Unique Index in a one to many relationship to another table where the two columns in question are not unique?
Please help,
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner