Deepak,
The most common cause of connection problems is that the SQL Server doesn't
have tcp/ip enabled. Assuming you're attempting to connect from a device and
not a desktop computer, ifyou're using integrated security, you must also
provide the user credentials and password in the connection string unlike on
the desktop. And since most devices can't resolve the name of a host, you
need to use the ip address of the SQL Server rather than its name.
--
Ginny Caughey
Device Application Development MVP
[quoted text, click to view] <deepak_ssoft@yahoo.co.in> wrote in message
news:f0669961-bb83-45c9-abb9-4cd98780746b@b40g2000prf.googlegroups.com...
> Rspected sir,
>
> I am using Sql Server 2005 Enterprise Edition with VB.Net
> 2003, but I am not able to connect it . Please will you give me the
> code for connecting it.
>
> Thanx and regards
> Deepak
> 20th December