Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20755

SQL Connection String TC11 vs TC10

$
0
0

The last bit of code I wrote with TestComplete 10 was a routine to restore a SQL database from backup. We are using SQL Server 2012, and the connection string with ADO.CreateADOConnection() was:

 

ConnectionString = "Provider=SQLNCLI11;Server=" + Server + ";Database=" + Database + ";Uid=" + UserName + ";Pwd=" + Password + ";"

It worked fine yesterday before the upgrade, then didn't today afterward. I modified the Provider to "SQLOLEDB", however, and it works just fine again:

 

ConnectionString = "Provider=SQLOLEDB;Server=" + Server + ";Database=" + Database + ";Uid=" + UserName + ";Pwd=" + Password + ";"

Just wondering if there's a change in the way TC11 does it, and wanted to post this solution if anyone else runs into the same issue.


Viewing all articles
Browse latest Browse all 20755

Trending Articles