Closed SunnyYu-98 closed 5 years ago
Hi @UIrving, thanks for the feedback! We are currently investigating and will update you shortly.
@UIrving The below snippet allowed me to access my DB. I hope this helps.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
Dim conn , rs, sql, ConnString sql = "SELECT * FROM tblOutbox" Set rs = CreateObject("ADODB.Recordset") Set conn = CreateObject("ADODB.Connection") With conn .Provider = "SQLNCLI" .Mode = adModeReadWrite .ConnectionString = "SERVER=.\SQLExpress;AttachDbFilename=F:\Test2.mdf;Database=Test2.mdf; Trusted_Connection=Yes;" .Open WScript.Echo "Connection was established." End With rs.Open sql,conn If conn.State = adStateOpen Then WScript.Echo "Connection was established." Else WScript.Echo "No Connection ." End If rs.Close Set rs = Nothing conn.Close Set conn = Nothing
Hi, how can I access the ConnectionString variable in VBScript?
My app is developed with Classic ASP and hosted on Azure App Services.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.