Click here to Skip to main content
15,900,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How will i find status of SQL Authentication on Remote m/c from other m/c
i.e. sql server 2000 is server authentication or windows authentication of remote m/c through coding????

Please help me..
Posted
Updated 3-Jan-12 22:02pm
v2
Comments
OriginalGriff 4-Jan-12 3:26am    
I can't help - I don't understand what you are trying to do...
Try explaining in more detail what you are trying to achieve, and the circumstances / environment in which this is supposed to happen.
Use the "Improve question" widget to edit your question and provide better information.

1 solution

use this code

VB
dim con as new sqlconnection
con.connectionstring="data source=address_of_computer;uid=login_name;
pwd=password;database=database_name"

con.open
if con.state=open then 
msgbox ("connected")
else
msgbox ("server not found")

end if
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900