Re: Help needed for connecting SQl server from PPC Emulator
From: Ramesh Singhvi (ramesh_singhvi_at_hotmail.com)
Date: 05/14/04
- Next message: Michael--J: "Serial Comms and xmodem-1k component for Compact Framework"
- Previous message: Ramesh Singhvi: "Re: Help needed for connecting SQl server from PPC Emulator"
- In reply to: Liam Westley: "RE: Help needed for connecting SQl server from PPC Emulator"
- Next in thread: Ramesh Singhvi: "Re: Help needed for connecting SQl server from PPC Emulator"
- Messages sorted by: [ date ] [ thread ]
Date: 13 May 2004 21:51:15 -0700
Pardon me for the typo... I am still not able to connect it though. It
keeps giving error "SQL server does not exist or access denied"
although it does exist. Were you able to connect to a SQL Instance
having "\" in the name??
And yes I do not have my sa password blank. I did not put it in my
message.. Thanks for your suggestion anyways :)
Liam Westley <liam.westley@tigernews.co.uk> wrote in message news:<E90A4266-6432-4E70-A9FC-D1531BB28FC4@microsoft.com>...
> If your connection string really is,
> "server=RAMESH\RAMESHSQL, 1433;Databse=Pubs;User ID=sa"
> then it's just a simple mis-spelling of Database
> "server=RAMESH\RAMESHSQL, 1433;Database=Pubs;User ID=sa"
>
> I use the following stock routine in one of my classes, which works on a Pocket PC to SQL Server 2000,
> SqlConnection db = new SqlConnection("server=" + serverName + ";database=" + databaseName + ";User ID=" + userID + ";Password=" + password + ";");
>
> It is important to remember that the emulator effectively has a
network card within it, and this is what enables the direct connection
to SQL Server 2000. If you want an application to run on a real
device, it requires either a wired network card or wireless LAN
connection. You cannot access SQL Server 2000 through a cradle
running ActiveSync as this only supports pass through HTTP and not the
independent TCP/IP connections required for SQL Server 2000.
>
> Liam Westley
>
> P.S. Never leave the admin login sa with a blank password, it's isn't considered good practice :-)
- Next message: Michael--J: "Serial Comms and xmodem-1k component for Compact Framework"
- Previous message: Ramesh Singhvi: "Re: Help needed for connecting SQl server from PPC Emulator"
- In reply to: Liam Westley: "RE: Help needed for connecting SQl server from PPC Emulator"
- Next in thread: Ramesh Singhvi: "Re: Help needed for connecting SQl server from PPC Emulator"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|