From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Database Connection UDL File With Relative Path

Solved!
Go to solution

Hi All,

 

I am using property loader to retrieve test settings from the database. I specify the database to read from using a .udl file.

 

When opening a database connection (using Open Database step type) I am able to specify the location of the .udl file as follows:

 

"FILE NAME=C:\\Development\\IW_EST_2\\TesterSoftware\\TS\\Database\\DatabaseConnection.udl;"

 

This works fine for now. However, I am not developing on the computer which the sequence will be deployed on. It is for this reason that I would like to use a relative path.

 

Is it possible to do this? If so, how?

 

Many thanks,

 

Cam.

0 Kudos
Message 1 of 3
(3,291 Views)
Solution
Accepted by topic author Cam_Roots

You can use a UNC naming convention to specify the location of the UDL.

 

A UNC replaces a drive letter with a machine name and share name.

 

Example of a connection string I use every day:

 

"FILE NAME=\\\\netapp1\\shared\\STE\\SPOTS.udl"

 

(note the quadruple backslashes in front of the machine name)


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

Message 2 of 3
(3,287 Views)

Thanks Phillip

0 Kudos
Message 3 of 3
(3,274 Views)