03-28-2013 10:07 AM
I seemed to have lost the ability to build the TestStand database using the 'Build .SQL File' button on the Schema tab of the Database options window.
I was in process of creating a custom Recordset based on the 'Generic Recordset (NI)' but now I cannot even build the stock 'Generic Recordset (NI)' Database.
In an effort to see If I may have a corrupt copy of the 'Generic Recordset (NI) schema,I have already tried using the 'Reload NI Schema...' button to reload the '2012 or Later' recordset. But, the sql file created to build the database tables still produces an unusable database.
This is the method I used to create the database:
The problem in the database appears to be related to the 'PROP_RESULT' Table being created with the 'DATA' column data type set to 'double' instead of the 'string' data type defined in the schema.
I have attached the exported 'Generic Recordset (NI)' schema and the associated sql file TestStand Generated to build the database tables.
Thanx in advance for any assistance....
03-29-2013 12:14 PM
Hi Kiebach,
Please send in a screenshot of the database options so I can have a better idea of what might be happening with your unusable Build .SQL File button. Can you also send in a copy of your default .ini file? It should be located at the following path: C:\Program Files\National Instruments\TestStand 2012\Components\Models\TestStandModels\Database\TestStandDatabaseSchemasDef.ini.
What happens when you try to load this .ini file?
Warm Regards,
04-02-2013 12:59 PM - edited 04-02-2013 01:12 PM
Attached files:
TestStandDatabaseSchemasDef.ini
- Requested file from TestStand Directory
Generic Record Set from TestStandDatabaseSchemasDef.sql
- Sql File create by 'Build SQL File" button using "Generic Recordset" from "TestStandDatabaseSchemasDef.ini"
- Still build database tables with "PROP_RESULT//DATA Column set to numeric instead of string.
Generic Recordset (NI).sql
- Sql file created by 'Build SQL File" button using "Generic Recordset (NI)" after performing "Reload NI Schema..."
- Note it is exactly the same as "Generic Record Set from TestStandDatabaseSchemasDef.sql"
Generic Recordset Database.mdb
- Database created by SQL commands
Screen shots of all schema tabs from data base options
04-03-2013 01:25 PM
Thank you for attaching those. What happens when you use the SQL files which ship with TestStand? You can find them in the following directory: C:\Program Files\National Instruments\TestStand 2012\Components\Models\TestStandModels\Database\ .
Warm Regards,