M
Mike Von Stein
Hopefully someone know the answer to this. I'm trying to connect to
the same SQL Server 2000 on a remote machine in a VS.Net 2003 1.1
framework project and a separate project targeting Compact Framework
for PocketPC 2002. Everything is exactly the same in both, but the
connection string works in the regular VS.Net 2003, but not under the
Compact Framework! I've tried the CF in both the emulator and an
actual device in the cradle.
The working connection string is like this:
data source=MY_SQL_SERVER;user id=MY_USERID;initial
catalog=MY_DB;password=MY_PASSWORD
I've tried many, many things based on Google postings and MS KB
articles/examples, but nothing seems to work. Including:
- specifing the server=xxx.xxx.xxx.xxx,1433.
- adding persist security info = false
- trying to reference a named instance (but there is only a default
instance on the server in question)
- etc
I've used connection strings successfully for several years to connect
to Oracle, DB2, SQL Server,Access, etc in regular ADO, but am fairly
new at the dotnet and pocket pc world so maybe I'm overlooking
something obvious. Many MS & newsgroup examples reference
"localhost", but this SQL server is on a different machine.
Thanks in advance.
Mike
the same SQL Server 2000 on a remote machine in a VS.Net 2003 1.1
framework project and a separate project targeting Compact Framework
for PocketPC 2002. Everything is exactly the same in both, but the
connection string works in the regular VS.Net 2003, but not under the
Compact Framework! I've tried the CF in both the emulator and an
actual device in the cradle.
The working connection string is like this:
data source=MY_SQL_SERVER;user id=MY_USERID;initial
catalog=MY_DB;password=MY_PASSWORD
I've tried many, many things based on Google postings and MS KB
articles/examples, but nothing seems to work. Including:
- specifing the server=xxx.xxx.xxx.xxx,1433.
- adding persist security info = false
- trying to reference a named instance (but there is only a default
instance on the server in question)
- etc
I've used connection strings successfully for several years to connect
to Oracle, DB2, SQL Server,Access, etc in regular ADO, but am fairly
new at the dotnet and pocket pc world so maybe I'm overlooking
something obvious. Many MS & newsgroup examples reference
"localhost", but this SQL server is on a different machine.
Thanks in advance.
Mike