Hi,

I looking for a solution for how to check if a connection to a remote
computer exist or not using vb.net.

I 'm writing a program which will request data from a remote sql server. I
need to check if the connection to the remote server exist, before open the
connection or run the the sql command.

Pls helps, urgent.

Thanks,

charlie

Recommended Answers

All 2 Replies

If your connection is successful using the connection string then it is connected.

I am doing online application. When off line. My application will take a long time to connect to SQL Server until the timeout.

So I want that check the server is online then just connect to SQL Server.

Any solutions, please help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.