PC Review


Reply
Thread Tools Rate Thread

Connecting to SQL Server 2000 with VB.net on Pocket PC 2003

 
 
Joe
Guest
Posts: n/a
 
      18th Nov 2004
Hi,

I have been trying to create a connection to my SQL Server 2000 from
Pocket PC 2003, over a wireless network connection. The connection
always fails with the SQLException "SQL Server does not exist or
access denied".

It does the same both on the emulator and the device. I have tried
about 10 varieties of connection strings, and am very confident that
there is nothing wrong with it. The SQL Server is definitely running
and accessible, as we run another application which accesses it from
all of our computers on the network. Also I can browse to the SQL
Server and its databases through the browser available in Visual
studio, and in a windows vb.net app, the connection succeeds, using
the SQLConnection component available.

I am currently tring the Northwind application recommended in the
previous thread:
http://groups.google.com/groups?hl=e...mpactframework

located at http://msdn.microsoft.com/library/de...ad08272002.asp

I am using the connection string:
"user id=sa;password=pass;database=NorthWind;server=100.0.1.24"

I have tried both the name and the ip address, and a host of other
combinations
in connection strings, but always have the same problem.
The wireless network connection from the PDA can access the computer
running
SQL server, although it takes time, and the computer running the
emulator is
connected to it by wires and this still has the same problem.

Anyone got any ideas why this isn't working?

Thanks,
Joe
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VGFyaCBpaw==?=
Guest
Posts: n/a
 
      18th Nov 2004

Hi Joe!!!

I have never done what you're trying to do, but I have some tips that
helped me during a socket connection issue I had:

* In regards of your PDA device, make sure that its subnet mask includes
both IP addresses: the PDA and the SQL server. If they are not, then chances
are that there is a router in the middle, and the problem might reside in the
router. Note that some access points behave as routers, and some others just
like bridges.
* Log on into a shared folder in the SQL server, and then try your
application. If it succesful, then there is a security issue.
* If you are using the PPC emulator, change its name. I don't know why, but
it helps.

Good luck!!!

Tarh Ik

 
Reply With Quote
 
=?Utf-8?B?VGFyaCBpaw==?=
Guest
Posts: n/a
 
      18th Nov 2004

I forgot to mention that once you change the computer name of the
emulator, you might need to retry your debugging twice since the first time
always fails due to a communication / time out issue. However the second one
always succeeds. This is documented somewhere in the msdn web site.

 
Reply With Quote
 
=?Utf-8?B?VGFyaCBpaw==?=
Guest
Posts: n/a
 
      18th Nov 2004

If the previous tips did not work, try this:

* Go to Settings -> Connections -> Connections
* On the new window, go to Advanced -> Select Networks
* On the new window, Select "My Work Network" in both the "Programs that
automatically connect to the Internet should connect using" and "Programs
that automatically connect to a private network should connect using"
* On "My Network card Connects to", change it to "Work"
* Click on "Edit", then go to Proxy Settings, and make sure that the "This
network connects to the Internet" is checked.

Good luck!


 
Reply With Quote
 
Zief
Guest
Posts: n/a
 
      19th Nov 2004
Thanks for the replies, unfortunately none of your suggestions worked.
Although I do not know how to change the network name of the pocket pc?

However, I am not sure that changing the name will make it work anyway,
and have a feeling the problem may be elsewhere, either a simple thing I
am missing in the code, or a network problem.

I've gone through everything I can think of though, and according to the
examples it should work.

Any further help much appreciated,
Zief




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
=?Utf-8?B?VGFyaCBpaw==?=
Guest
Posts: n/a
 
      22nd Nov 2004

Hi Zief!!!

Well, I change the computer name of the Pocket PC emulator because
otherwise if I try to connect to the local network it tells me that a
computer with the same name already exist and that therefore I won't be able
to connect.

Of course, this only applies to the emulator. I don't know what could be
the problem with your real devices.

Hope it helps!!!

Tarh ik

 
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
Pocket PC connecting to named instance of SQL Server 2000 cj.snead@gmail.com Microsoft C# .NET 0 26th Apr 2006 05:52 PM
Problem connecting SQL Server 2000 from Pocket PC 2003 SE emulator venkateswarag@gmail.com Microsoft Dot NET Compact Framework 0 10th Feb 2006 11:26 AM
Problem in Connecting to my desktop SQL Server 2000 from Pocket PC 2000 venkateswarag@gmail.com Microsoft Dot NET Compact Framework 2 30th Jan 2006 11:34 AM
Connecting a 2000 TS server to a 2003 TS server through XP RDP. =?Utf-8?B?Sm9zaCB3aXRoIGlzc3VlcyE=?= Microsoft Windows 2000 Terminal Server Clients 1 3rd Mar 2004 07:34 PM
Connecting an Access 2000 Database with Server 2003 Mike Microsoft Access 1 5th Dec 2003 10:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:55 PM.