M
Miliuccio
how can i test the presence of a server on the network before to try an sql
comunication?
in vb programming like
ping for example
comunication?
in vb programming like
ping for example
Miliuccio said:i want to do it in a timer.
try a connection every 5 seconds stop my job.
"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
ha
scritto nel messaggio news:u%[email protected]...That's going to depend on the characteristics of the server. Can you
PING
it? If so, you might try doing that before trying to connect with SQL (I'm
sure there's been code for PING posted here before). Why don't you want to
just make your SQL connection, rather than using multiple steps to decide
whether to go ahead or not?
Paul T.
Paul G. Tobey said:That seems like a *very* bad design choice. Why don't you look at
OpenNETCF's AdapterStatusMonitor class. That should keep you updated about
when network connections to your device come and go. If it's the server
that's coming and going, I'd be very reluctant to chew up the network
bandwidth, processor cycles, etc. to check for presence every couple of
seconds.
Paul T.
Miliuccio said:i want to do it in a timer.
try a connection every 5 seconds stop my job.
"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
ha
scritto nel messaggio news:u%[email protected]...wantThat's going to depend on the characteristics of the server. Can you
PING
it? If so, you might try doing that before trying to connect with SQL (I'm
sure there's been code for PING posted here before). Why don't you
tojust make your SQL connection, rather than using multiple steps to decide
whether to go ahead or not?
Paul T.
how can i test the presence of a server on the network before to try an
sql
comunication?
in vb programming like
ping for example
Miliuccio said:i am trying
have you got an example to retrive information on Activesync connection?
"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
ha
scritto nel messaggio news:[email protected]...That seems like a *very* bad design choice. Why don't you look at
OpenNETCF's AdapterStatusMonitor class. That should keep you updated about
when network connections to your device come and go. If it's the server
that's coming and going, I'd be very reluctant to chew up the network
bandwidth, processor cycles, etc. to check for presence every couple of
seconds.
Paul T.
Miliuccio said:i want to do it in a timer.
try a connection every 5 seconds stop my job.
"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT
com>
ha
scritto nel messaggio That's going to depend on the characteristics of the server. Can you
PING
it? If so, you might try doing that before trying to connect with SQL
(I'm
sure there's been code for PING posted here before). Why don't you want
to
just make your SQL connection, rather than using multiple steps to decide
whether to go ahead or not?
Paul T.
how can i test the presence of a server on the network before to try an
sql
comunication?
in vb programming like
ping for example