10-10-2006 10:48 PM
10-11-2006 12:12 PM
Jacky -
I have never tried to imprt a access database into SQL server. What are the steps to do this?
I would suspect that the datatype of the primary key field is not correct after the import. Have you tried to create the tables using the scripts located at: <TestStand>\Components\NI\Models\TestStandModels\Database\SQL Server Create Generic Recordset Result Tables.sql? This file is designed to work with the TestStand database viewer, but it should work with SQL server as long as the syntax is correct. Try creating the table with the script and see how the datatype and properties of the primary key column differ.
10-11-2006 12:46 PM
Jacky -
I found the wizard to do the import. The ID column is imported properly: It is not a primary key, it is not an identity column. In addition, all of the other primary and foreign keys are not setup properly. You can either manually setup the table or try to use the script that I mentioned.
10-12-2006 02:38 AM
10-12-2006 10:27 AM
Jacky -
I am not sure why the script could not be generated. I will write down to look at that when I can. In general the predefined SQL scripts that TestStand installs are the better way to go.