Is there a quick way to test if this connection is open... like a try/catch block, or maybe the .Open function returns a result. I couldnt find anything online about it.
Thanks in advance!
Thanks in advance!
Code:
Set objConnection = CreateObject("ADODB.Connection")
objConnection.Open "Driver={SQL Server};SERVER=" & server & ";Database=" & database & ";Uid=" & username & ";Pwd=" & password & ""