ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error connecting SQL server with TestStand

Hello all,

 

I'm trying to process the result of the tests directly to a database in SQL server and I'm having the error that I show in the images. I already tested the connection with the database and all is OK.

 

Captura de ecrã 2024-01-19 115431.png

 

I selected this database provider.

 

Captura de ecrã 2024-01-19 115952.png

Someone can help me with this?

0 Kudos
Message 1 of 6
(3,304 Views)

Hi ,

 

There is DB Viewer in the tools menu.

Open it and connect to the DB with the connection string ( as you say its working fine).

Check for all the tables present.

If the tables are find in SQL server then try with a simple example.

 

Ravi

0 Kudos
Message 2 of 6
(3,279 Views)

Hi Ravi,

 

Thanks for your help.

 

I made what you have said and the connection is working correctly, but I don't see any table in the Data Base that I'm connecting. I need to create them, or they are created automatically? 

0 Kudos
Message 3 of 6
(3,275 Views)

Hi Rodrigues,

 

The SQL to create the tables are :

C:\Program Files (x86)\National Instruments\TestStand 2022\Components\Models\TestStandModels\Database

 

(Change path based on the TS installed)

You can run thiD in the DB viewer which support SQL execution.

Ravi

0 Kudos
Message 4 of 6
(3,269 Views)

Hi Ravi,

 

I don't have this path.

 

Thank you for your help!

 

0 Kudos
Message 5 of 6
(3,218 Views)

Hello TiRodrigues22,

 

the paths are changing a little depending on the version of TestStand that you are using. However, the new files are often not far from the old ones.

I kindly invite yo to explore your TestStand files to see if you can find what you want.

 

For example with Testand 2024, I have the following path: C:\Program Files (x86)\National Instruments\TestStand 2024\Components\StepTypes\Database.

 

And if you really don't find the folder that you want, it may be a great idea to reinstall TestStand.

0 Kudos
Message 6 of 6
(1,551 Views)