Forum Discussion
I had to change my connection strings recently when we updated our server. (Provider='SQLNCLI11' quit working) Provider=MSOLEDBSQL works for me. Here I am connecting and doing an async call to a stored procedure. The connections strings and ADO stuff will be what you want.
// After all customers are created, run the CustomerSyncToSQLFilePro procedure
let sProcSync = ADO.CreateADOStoredProc();
sProcSync.ConnectionString = "Provider=MSOLEDBSQL;Data Source=ProdSQL;"+"Initial Catalog=TestingTeam;Integrated Security=SSPI";
sProcSync.CommandTimeout = 120;
// Execute CustomerSyncToSQLFilePro stored procedure
const syncResult = await execCustomerSyncToSQLFileProAsync(sProcSync);
Log.Message(syncResult);
// Close the sync stored procedure connection
sProcSync.Close();
Thanks scot1967 for the reply. I had to play around with my connection string to make it work. Here is my connection string that worked:
Provider=sqloledb;Trusted_Connection=Yes;Data Source=<sql server name> ;Initial Catalogue= <db name> ;username= <username>; password= <password>