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

Re: TestComplete and SQL databases - Restoring per test

$
0
0

Can someone point me in the right direction with this script please, am not able to connect to the SQL Server.

 

function TestADO()
{
var Conn = Sys["OleObject"]("ADODB.Connection");
Conn["ConnectionString"] = "Provider=SQLOLEDB;SERVER=\\UXXXXXXX\MSSQLSERVER2017;Database=DBXXXXX;User Id=UserXXXX;Password=PassXXXXX;"
Conn["Open"]();

ADO.CreateADOQuery("Select * FROM Users")
// Close the recordset and connection
Conn["Close"]();
}


Viewing all articles
Browse latest Browse all 14

Trending Articles