E
el zorro
I have an Access database that I am converting from mdb to adp, with a SQL
Server the back-end.
I have 2 tables (Table A, Table B) in an Acccess mdb that are related by
primary keys in each table. THe slightly different aspect of this
relationship is that one of the tables has dual primary key fields (i.e., the
combination of the 2 fields may not repeat). SO Table A has "key 1" which is
related to "Key 1" in Table B. Table B also has "key 2" that is not part of
the relationship with Table A.
Access has been fine with this, but when I "upsize" the back end, the wizard
does not like the relationship, possibly because there are (correctly) many
records in Table A that have no corresponding records in Table B, or maybe
because there are duplicate instances of Table B's key 1, which is also ok
because it's only the combination if Key 1 + Key 2 that is unique in Table B.
But I don't know.
I have deleted this relationship in the mdb file and the upsizing was
succesful. But when I try to put the relationship back via the "Diagram"
feature in SQL Enterprise Manager, it won't work unless I instruct it to not
check the existing data. This makes me nervous-- the existing data is good.
So, my question is-- What's going on here? Does SQL have problems with dual
primary keys in a table?
Server the back-end.
I have 2 tables (Table A, Table B) in an Acccess mdb that are related by
primary keys in each table. THe slightly different aspect of this
relationship is that one of the tables has dual primary key fields (i.e., the
combination of the 2 fields may not repeat). SO Table A has "key 1" which is
related to "Key 1" in Table B. Table B also has "key 2" that is not part of
the relationship with Table A.
Access has been fine with this, but when I "upsize" the back end, the wizard
does not like the relationship, possibly because there are (correctly) many
records in Table A that have no corresponding records in Table B, or maybe
because there are duplicate instances of Table B's key 1, which is also ok
because it's only the combination if Key 1 + Key 2 that is unique in Table B.
But I don't know.
I have deleted this relationship in the mdb file and the upsizing was
succesful. But when I try to put the relationship back via the "Diagram"
feature in SQL Enterprise Manager, it won't work unless I instruct it to not
check the existing data. This makes me nervous-- the existing data is good.
So, my question is-- What's going on here? Does SQL have problems with dual
primary keys in a table?