Connecting to SQL Server from PocketPC application

K

Kurt

Hi,
I am trying to connect to a SQL Server database from a PocketPC application
in .NET 2003.

I use the following connectionstring:
conSql2000=new SqlConnection(@"integrated
security=SSPI;Server=169.254.25.129;persist security
info=True;Database=DotNetCF");

The IP address is the address of the Local Loopback adapter on the desktop
computer.


When I open the connection with:
conSql2000.Open();
I get an exception with the message:

Index #0
Error
System.Data.SqlClient.SqlError: General network error
Check your network documentation

Can anyone help?

Thanks.
Kurt.
 
C

chora

I guess you are using the emulator. Do you have network connectivity to
the desktop?
Try to transfer files between the emulator and the desktop, or try to
ping emulator's IP address.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top