Quantcast
Channel: twe69 Tracker
Viewing all articles
Browse latest Browse all 14

Re: TestComplete and SQL databases - Restoring per test

$
0
0

Unfortunately it didn't however I was able to get some help from a developer within our company and have got the following working:

 

function TestProc()
{
var Qry;
var con;
// Create a query
Qry = ADO.CreateADOQuery();
con = ADO.CreateADOConnection();
con.ConnectionString = "Provider=MSOLEDBSQL.1;User ID=XX;Password=XX;Initial Catalog=XXXXDB;Data Server=computer\\sqlserverinstance,1433;"
con.CommandTimeout = 1000
con.LoginPrompt = false;
con.Open() Qry.ConnectionString = con.ConnectionString; Qry.SQL = "SELECT * FROM Users"; queryResult = Qry.FieldCount; // Closes the query con.Close(); }
 

 


Viewing all articles
Browse latest Browse all 14

Latest Images

Trending Articles





Latest Images