PC Review


Reply
Thread Tools Rate Thread

Connect to SqlServer2000 from the emulator

 
 
Zanna
Guest
Posts: n/a
 
      12th Jun 2005
Hi all!

Why I cannot connect to a SqlServer from the emulator?

It always says that the Sql server does not exist!

Thanks

--
Reporting tool: http://www.neodatatype.net


 
Reply With Quote
 
 
 
 
Darren Shaffer
Guest
Posts: n/a
 
      12th Jun 2005
It is possible to connect to SqlServer from an emulator.

You'll need to provide a sample of your connection
string and information about your machine name, the
server name, db instance, and network topology to
answer this question completely, but in many cases,
referring to the SqlServer by IP address in your connection
string will work when referring to it by name will not. I'm
assuming you have the networking in your emulator setup
correctly as well.
--
Darren Shaffer
..NET Compact Framework MVP
Principal Architect
Connected Innovation
www.connectedinnovation.com

"Zanna" <(E-Mail Removed)> wrote in message
news:37Xqe.15$(E-Mail Removed)...
> Hi all!
>
> Why I cannot connect to a SqlServer from the emulator?
>
> It always says that the Sql server does not exist!
>
> Thanks
>
> --
> Reporting tool: http://www.neodatatype.net
>
>



 
Reply With Quote
 
Zanna
Guest
Posts: n/a
 
      12th Jun 2005
"Darren Shaffer" <(E-Mail Removed)> ha scritto nel
messaggio

> You'll need to provide a sample of your connection
> string and information about your machine name, the
> server name, db instance, and network topology to
> answer this question completely,


Simply:

str = "Server=MyMachineName;DataBase=DbName;User Id=sa;Password="
dbSql = New System.Data.SqlClient.SqlConnection(str)
dbSql.Open()

My machine name is the same and the server name is the same: I'm trying to
connect to a MSDE DB on the same machine of the emulator and VS.

MSDE is configured for mixed access.

> but in many cases,
> referring to the SqlServer by IP address in your connection
> string will work when referring to it by name will not.


Ok, what is the right IP I should use?
If I'm working on a stand-alone PC?

> I'm
> assuming you have the networking in your emulator setup
> correctly as well.


What are the right settings for the emulator?
I have to set some network adapter?
I can see the PC shared folders from the "explorer" if I open \\MyPcName.

Thanks.


 
Reply With Quote
 
Guest
Posts: n/a
 
      12th Jun 2005
The 'standalone PC' is the problem. You must have a network connection of
some sort. In this case download and install the Microsoft loopback
adapter.

-Chris


"Zanna" <(E-Mail Removed)> wrote in message
news:InZqe.9943$(E-Mail Removed)...
> "Darren Shaffer" <(E-Mail Removed)> ha scritto nel
> messaggio
>
>> You'll need to provide a sample of your connection
>> string and information about your machine name, the
>> server name, db instance, and network topology to
>> answer this question completely,

>
> Simply:
>
> str = "Server=MyMachineName;DataBase=DbName;User Id=sa;Password="
> dbSql = New System.Data.SqlClient.SqlConnection(str)
> dbSql.Open()
>
> My machine name is the same and the server name is the same: I'm trying to
> connect to a MSDE DB on the same machine of the emulator and VS.
>
> MSDE is configured for mixed access.
>
>> but in many cases,
>> referring to the SqlServer by IP address in your connection
>> string will work when referring to it by name will not.

>
> Ok, what is the right IP I should use?
> If I'm working on a stand-alone PC?
>
>> I'm
>> assuming you have the networking in your emulator setup
>> correctly as well.

>
> What are the right settings for the emulator?
> I have to set some network adapter?
> I can see the PC shared folders from the "explorer" if I open \\MyPcName.
>
> Thanks.
>
>



 
Reply With Quote
 
Zanna
Guest
Posts: n/a
 
      12th Jun 2005
"<ctacke/>" <ctacke_AT_OpenNETCF_com> ha scritto nel messaggio
news:#(E-Mail Removed)...

> The 'standalone PC' is the problem. You must have a network connection of
> some sort. In this case download and install the Microsoft loopback
> adapter.


I've already installed the loopback adapter.
There is some setup I must follow?

I have similar problem also on a LAN: sometime it connects, sometime it
doesn't



--
Reporting tool: http://www.neodatatype.net


 
Reply With Quote
 
Marius Bucur
Guest
Posts: n/a
 
      13th Jun 2005
If the name of the emulator is Pocket_PC change it to something else in
order to have network connectivity.

Marius
"Zanna" <(E-Mail Removed)> wrote in message
newsW0re.1256$(E-Mail Removed)...
> "<ctacke/>" <ctacke_AT_OpenNETCF_com> ha scritto nel messaggio
> news:#(E-Mail Removed)...
>
>> The 'standalone PC' is the problem. You must have a network connection
>> of
>> some sort. In this case download and install the Microsoft loopback
>> adapter.

>
> I've already installed the loopback adapter.
> There is some setup I must follow?
>
> I have similar problem also on a LAN: sometime it connects, sometime it
> doesn't
>
>
>
> --
> Reporting tool: http://www.neodatatype.net
>
>



 
Reply With Quote
 
Graham McKechnie
Guest
Posts: n/a
 
      13th Jun 2005
Zanna,

I don't know if this applies to the emulator, but when working with a
wireless network and a device opening Sql Server from CF, will be prevented
by the Window's firewall - in SP2. eg "Sql server doesn't exist or access
denied". You will need to create an exception in the window's firewall
control applet for your instance of SqlServer to allow the connection to
open.

I presume this also applies if doing Sql rda or replication wirelessly, but
I haven't tested those.

Graham


"Zanna" <(E-Mail Removed)> wrote in message
news:37Xqe.15$(E-Mail Removed)...
> Hi all!
>
> Why I cannot connect to a SqlServer from the emulator?
>
> It always says that the Sql server does not exist!
>
> Thanks
>
> --
> Reporting tool: http://www.neodatatype.net
>
>



 
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
cannot connect to the emulator Vascelli Germano Microsoft Dot NET Compact Framework 1 8th Feb 2006 05:14 PM
Emulator does not connect to the LAN... SammyBar Microsoft Dot NET Compact Framework 2 16th Jan 2006 07:23 PM
Cannot connect to local SQLServer2000 database Paul Robinson Microsoft ADO .NET 7 13th Dec 2005 05:46 PM
Connect to emulator =?Utf-8?B?VGFtZXIgSGVzaGFt?= Microsoft Dot NET Compact Framework 2 11th Nov 2005 11:51 PM
I can not connect SqlServer2000 with PocketPC with WIFI =?Utf-8?B?RmxhdHRyb24=?= Microsoft Dot NET Compact Framework 3 24th Aug 2004 12:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:44 PM.