PC Review


Reply
Thread Tools Rate Thread

Connect to SQL Server on desktop while cradled

 
 
Jeff
Guest
Posts: n/a
 
      17th Nov 2004
Hello,

I am reading conflicting things on the Internet regarding the ability to
connect from a custom application on a PPC 2003 device to a SQL server while
cradled with ActiveSync 3.7. The SQL Server is on the desktop that acts as
the replication partner. The IP address of the device is 192.168.55.101
and the desktop is 192.168.5.X so I wouldn't think that SQL on the desktop
would be accessible from the device. I have seen some messages in
newsgroups indicating that it is possible when referencing
System.Data.SQLClient in code and specifying a connection string that uses
the server's IP address and user id and password.

Does anyone know if this is possible?

Thanks,
Jeff


 
Reply With Quote
 
 
 
 
=?Utf-8?B?bXJqcm9nZXJz?=
Guest
Posts: n/a
 
      17th Nov 2004
Hello Jeff,

There are several ways to get the SQL data to your handheld. I recomend
creating a SQL CE Database. Do do this you need to use Replication. There
are two kinds of replication RDA replication and merge replication. You need
to setup a SQL CE Server. Whats the difference you may ask? RDA is accessing
published SQL data directly. Merge Replication is copying the whole thing. I
have used active sync to get internet connection to replicate. If you
already have replication working but does not work with replication while
using active sync you may need to make sure you have internet sharing turned
on through active sync. The information that I found says you can set up
active-sync to copy the .sdf file from one handheld to multiple handhelds
once the local datatabase (.sdf file) is created. Or you could take the easy
way out and use active sync to convert a SQL database to a ODBC database on
the handheld. I think 1H 2005 Active sync ver 4 will be released and is
rumored to have SQL Replication as an option... Untill then looks like we
actually have to make an effort to crank out a working connection string sa
passwords and internet logins.

Goodluck John R.

Goodluck,
John R.
 
Reply With Quote
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      17th Nov 2004
It should work with a conn ctring like this:
"Data Source=192.168.5.1;User ID=user;Password=password;Initial
Catalog=pubs";

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Jeff" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I am reading conflicting things on the Internet regarding the ability to
> connect from a custom application on a PPC 2003 device to a SQL server
> while cradled with ActiveSync 3.7. The SQL Server is on the desktop that
> acts as the replication partner. The IP address of the device is
> 192.168.55.101 and the desktop is 192.168.5.X so I wouldn't think that SQL
> on the desktop would be accessible from the device. I have seen some
> messages in newsgroups indicating that it is possible when referencing
> System.Data.SQLClient in code and specifying a connection string that uses
> the server's IP address and user id and password.
>
> Does anyone know if this is possible?
>
> Thanks,
> Jeff
>



 
Reply With Quote
 
Jeff Cross
Guest
Posts: n/a
 
      18th Nov 2004
Thank you Alex. I tried the connection string and still did not have
any luck. I'm getting a sqlexception error on the open method of SQL
Server does not exist or access denied. Any other ideas?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      18th Nov 2004
Can you connect with the same connection string from the desktop?

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Jeff Cross" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thank you Alex. I tried the connection string and still did not have
> any luck. I'm getting a sqlexception error on the open method of SQL
> Server does not exist or access denied. Any other ideas?
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
NoSpam
Guest
Posts: n/a
 
      19th Nov 2004

I am able to connect with a desktop app via the host name and (local)
but NOT IP Address. I'm assuming this is part of the problem when
connecting from a Pocket PC. I'll research the desktop/ip address
issue. Any ideas?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
NoSpam
Guest
Posts: n/a
 
      19th Nov 2004

Well, I think I have things worked out. I found that I had a named
instance and a default instance on my SQL Server (I want to connect to
the default instance). I went into the SQL Server Network Configuration
utility and selected to "Hide" the named instance. After restarting the
SQL services, I was able to connect via a Win32 .NET desktop app by IP
address and then from the pocket pc by IP address. Alex, thanks for
your suggestion to try it from the desktop - it got me on the right
track.

Jeff


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
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
Remote Desktop - can connect to server, not to workstations =?Utf-8?B?cGtpcmlsbA==?= Windows XP Work Remotely 0 1st Mar 2006 04:09 PM
Remote desktop to connect to W2K Pro from W2K Server Valerie Hough Microsoft Windows 2000 Networking 1 19th Aug 2005 05:43 PM
Connect to Desktop SQL Server 2000 from Pocket PC Leonardo Castillo Microsoft Dot NET Compact Framework 9 10th Aug 2004 02:41 PM
Remote desktop won't re-connect without rebooting server Rob Fisher Windows XP Work Remotely 0 14th May 2004 12:04 PM
unable to connect to server via remote desktop beth Windows XP Work Remotely 11 11th Jan 2004 09:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:07 AM.