SQL connection

  • Thread starter Thread starter Bruno Sena
  • Start date Start date
B

Bruno Sena

Hi,

Is it possible to connect to a SQL Server (not CE version) from a Windows CE
5.0 ?
If yes, how can I connect and which classes should I use ?

Thanks,
 
Yes, thanks.

I added a reference to this namespace and could use.
But when I called the SQLConnection.Open(), it returned a SQLException
without descriptions. I'm using a Windows CE 5.0 with .NET Compact Framework
version 2.0.7045, in previous versions of framework it worked.

Best Regards,
 
What is your connection string??


Bruno Sena said:
Yes, thanks.

I added a reference to this namespace and could use.
But when I called the SQLConnection.Open(), it returned a SQLException
without descriptions. I'm using a Windows CE 5.0 with .NET Compact
Framework
version 2.0.7045, in previous versions of framework it worked.

Best Regards,
 
My connection string is the following:

"Data Source=192.168.73.149\\SQLEXPRESS;Initial Catalog=teste;Integrated
Security=True";

Best Regards
 
Bruno,

You need to provider a user name and password. The user name needs to be
something like this:
\DomainName\UserId

--

Ginny Caughey
Device Application Development MVP
 
Bruno Sena skrev:
My connection string is the following:

"Data Source=192.168.73.149\\SQLEXPRESS;Initial Catalog=teste;Integrated
Security=True";
Where is your login info?
 
Back
Top