J
J E Jensen
Hello NG
A continue from othe post.
In an access database i have problems with the seed in a autonumber field.
The autonumber field is used as a Primary / Foreign key relationship.
In one of my tables i have the max number for int, and now the database
gives me the error that the recordid already exists therefore data can't be
saved.
The Application that manages the database can have the data on a SQL
Server - but connected to an Access data that is linked to the SQL Server
database. I tryed to import all data to SQL Server and then set my Primary
key to BIGINT but Access can't read that large number - so all
records/fields is displayed as #Deleted in the linked access table.
What i need is a tool (application) that can reorder all my primary keys
starting from 1 (one) - and keeping the relationsships between the tables.
Eks: two tables Table1 and Table2
Table1:
RecordID, TextValue
Table2
RecordID, Table1RecordID, TextValue
The relationship between the tables is Table1.RecordID and
Table2.Table1RecordID
In Table1.RecordID i have the number 20.000, therefore the value in
Table2.Table1RecordID is also 20.000
The tool changes the Table1.RecordID to 1 - and to keep the relationship it
must also change the Table2.Table1RecordID to one.
Does that tool exists or do i have to make it? (the changes can be done on a
SQL Server 2000, og 2005) not nesseraly on Access.
Kind Regards
Johnny E. Jensen
A continue from othe post.
In an access database i have problems with the seed in a autonumber field.
The autonumber field is used as a Primary / Foreign key relationship.
In one of my tables i have the max number for int, and now the database
gives me the error that the recordid already exists therefore data can't be
saved.
The Application that manages the database can have the data on a SQL
Server - but connected to an Access data that is linked to the SQL Server
database. I tryed to import all data to SQL Server and then set my Primary
key to BIGINT but Access can't read that large number - so all
records/fields is displayed as #Deleted in the linked access table.
What i need is a tool (application) that can reorder all my primary keys
starting from 1 (one) - and keeping the relationsships between the tables.
Eks: two tables Table1 and Table2
Table1:
RecordID, TextValue
Table2
RecordID, Table1RecordID, TextValue
The relationship between the tables is Table1.RecordID and
Table2.Table1RecordID
In Table1.RecordID i have the number 20.000, therefore the value in
Table2.Table1RecordID is also 20.000
The tool changes the Table1.RecordID to 1 - and to keep the relationship it
must also change the Table2.Table1RecordID to one.
Does that tool exists or do i have to make it? (the changes can be done on a
SQL Server 2000, og 2005) not nesseraly on Access.
Kind Regards
Johnny E. Jensen