Hi
I have written the below Sql connection for SQL
cnn1.Open "Driver=SQL Server;Server=" & ServerName & ";Database=" & "TEMP" & ";uid=" & uid & ";pwd=" & pwd & ";"
I want to check if connection is successful if should give message
"Successful"
else
"Error Connection"
Thanks
I have written the below Sql connection for SQL
cnn1.Open "Driver=SQL Server;Server=" & ServerName & ";Database=" & "TEMP" & ";uid=" & uid & ";pwd=" & pwd & ";"
I want to check if connection is successful if should give message
"Successful"
else
"Error Connection"
Thanks