Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21254

Database Connection

$
0
0
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

Viewing all articles
Browse latest Browse all 21254

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>