PC Review


Reply
Thread Tools Rate Thread

How to check if the connection to a remote computer exist

 
 
Chin Chien Ping
Guest
Posts: n/a
 
      26th Feb 2005
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,
Chin


 
Reply With Quote
 
 
 
 
Hayato Iriumi
Guest
Posts: n/a
 
      26th Feb 2005
Hello Chin,

I'd try to open the connection. If exception occurs, that means the connection
to the SQL Server can't be established.


> 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,
> Chin




 
Reply With Quote
 
Chin Chien Ping
Guest
Posts: n/a
 
      28th Feb 2005
I have tried this method.

However, this will coz my system hang, and I only knew the connection does
not exist until the connection timeout.

Is there any better solution ?

Thanks,
Chin


"Hayato Iriumi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello Chin,
>
> I'd try to open the connection. If exception occurs, that means the
> connection to the SQL Server can't be established.
>
>
>> 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,
>> Chin

>
>
>



 
Reply With Quote
 
Hayato Iriumi
Guest
Posts: n/a
 
      28th Feb 2005
I really don't think there is any other solution. When you say "system
hang", does that mean your UI hangs? If that's the case, I'd spawn off a
thread to let it do check connection checking and let it raise an event
to see if the connection succeeded or not. That way, your UI won't hang.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Desktop Fail after SP2 Installation Windows XP (The Remote Computer Has ended the connection) oliver neuhauser Windows XP Work Remotely 2 29th Apr 2005 05:11 PM
GPO to check box in System Properties to allow remote connection =?Utf-8?B?Um9iZXJ0TkM=?= Microsoft Windows 2000 Group Policy 2 12th Jan 2005 02:47 PM
Authorizing a remote computer to accept Remote desktop connection Louis Windows XP Help 3 10th Aug 2004 07:42 PM
Remote Desktop-connection to remote computer is broken BK Windows XP Work Remotely 4 28th Nov 2003 11:39 PM
Error 1060: Remote access connection manager does not exist the-chauffeur Microsoft Windows 2000 Networking 1 18th Nov 2003 04:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:28 AM.