Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > Check sql server 2005 end point

Reply
Thread Tools

Check sql server 2005 end point

 
 
lautaro
Guest
Posts: n/a
 
      05-15-2008
I'm developing a windows mobile 6 aplication with C# .NET 2008. I'm
trying to check network,internet,sqlserver2005 availability. I already
check network and internet successfully.

Usually if you use the SQL server compact CE you can check this Uri
http://yourserverip/SQLSync/sqlcesa30.dll and this make the trick, but
I am using sql server 2005 web server. Did some one have any Idea how
to verify if your web server is online.

Thanks in advanced
 
Reply With Quote
 
 
 
 
Armando Rocha
Guest
Posts: n/a
 
      05-16-2008
Hi,

You can do a webrequest to your WebServer:

bool _IsOnline = false;
private void Connect()
{
try
{
WebResponse response = null;
WebRequest request = WebRequest.Create(http://yourserver);
request.Timeout = 20000;
response = request.GetResponse();
_IsOnline = true;
}
catch
{
_IsOnline = false;
}
}

--
Armando Rocha
Mobile Developer

http://www.ifthensoftware.com
PORTUGAL
"lautaro" <> escreveu na mensagem
news:39f50749-28f6-4f6b-89bc-...
> I'm developing a windows mobile 6 aplication with C# .NET 2008. I'm
> trying to check network,internet,sqlserver2005 availability. I already
> check network and internet successfully.
>
> Usually if you use the SQL server compact CE you can check this Uri
> http://yourserverip/SQLSync/sqlcesa30.dll and this make the trick, but
> I am using sql server 2005 web server. Did some one have any Idea how
> to verify if your web server is online.
>
> Thanks in advanced


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Share-Point-2010 ,Share-Point -2010 Training , Share-point-2010Hyderabad , Share-point-2010 Institute Saraswati lakki ASP .Net 0 01-06-2012 06:39 AM
Help. Getting a An error has occurred while establishing a connectionto the server. When connecting to SQL Server 2005, this failure may be causedby the fact that under the default settings SQL Server does not allow remote aboutjav.com@gmail.com ASP .Net 0 05-03-2008 12:43 PM
MCITP SQL Server 2005 or SQL Server 2008 Darrilgibson@gmail.com MCITP 0 12-19-2007 01:56 PM
SQL Server 2005 + SQL Server Express farseer ASP .Net 3 08-08-2006 04:07 AM
Wohoo! VS.NET 2005/ASP.NET 2.0/SQL Server 2005/BizTalk Server 2006 will launch week of Nov. 7 Juan T. Llibre ASP .Net 0 06-07-2005 05:19 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57