Forum Discussion

Marsha_R's avatar
Marsha_R
Champion Level 3
10 years ago
Solved

how to make the connection path for a DBTable generic

When we give the DBTable a hard coded path, the connection works fine, but when we try to use system variables, somehow the project path ends up in there and then the connection fails.  See attached s...
  • TanyaYatskovska's avatar
    10 years ago
    Hi Marsha,

     


    TestComplete accepts only the string in this field. Thus, it doesn't parse the environment variable you specified correctly.


    You can update the connection string from script as it's specified here or set it via the DBTable.ConnectionString property.


     


    BTW, we have a suggestion to improve the Connection field in the DBTable element so that it accepts variables. I've increased its rating based on your questions.