nettproffen
Technical User
Hi.
I have just upsized my access db, and need some advice/help on some issues. I have searched different forums, but have not found any helpful info yes.
1.
After upsize the all access table ID fields (primary key) is no longer primary key. If I try to enable it to be primary key in MSSQL i get the error;
'kropp' table
- Unable to create index 'PK_kropp'.
ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]CREATE UNIQUE INDEX terminated because a duplicate key was found for index ID 1. Most significant primary key is '1'.
[Microsoft][ODBC SQL Server Driver][SQL Server]Could not create constraint. See previous errors.
[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated.
Field ID is a int.
2.
In access I used the default value "NOW()" to get a auto insert date/time in a row. How can I do this in MSSQL?
Thanx for all advice.
Bjørn-Toe
I have just upsized my access db, and need some advice/help on some issues. I have searched different forums, but have not found any helpful info yes.
1.
After upsize the all access table ID fields (primary key) is no longer primary key. If I try to enable it to be primary key in MSSQL i get the error;
'kropp' table
- Unable to create index 'PK_kropp'.
ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]CREATE UNIQUE INDEX terminated because a duplicate key was found for index ID 1. Most significant primary key is '1'.
[Microsoft][ODBC SQL Server Driver][SQL Server]Could not create constraint. See previous errors.
[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated.
Field ID is a int.
2.
In access I used the default value "NOW()" to get a auto insert date/time in a row. How can I do this in MSSQL?
Thanx for all advice.
Bjørn-Toe