I am establishing a connection to a mssql server database in asp using the command
adoCon.Open “Driver={SQL Server}; Server=” & host_name & “; Database=”
& db_name & “; Uid=” & user_name & “; Pwd=” & password
Now my question is how to know if this connection establishment was successful. Does adoCon.open returns any value which I can use in my if statement?
I guess you are useing ADODB-ActiveX object… so that would be the property
adoCon.State.find more information here enter link description here