SqlClient using compact framework 2.0??

  • Thread starter Thread starter JPABroeren
  • Start date Start date
J

JPABroeren

Hello everyone,

I'm having a real pickle here. Using VB.net 2005 we're trying to
upgrade an application for a handheld which has to use the SqlClient
as it did in VB.net 2003, using CF 2.0.
But System.Data.SqlClient doesn't seem to exist in Compact Framework
2.0.
I already downloaded servicepack 1, but that didn't solve the problem.
It actually works if I include the old reference, but somehow I
believe that's not actually any solution, just a fix. But I can't find
anything about this. So is SqlClient obsolete? Then what is the new
standard?

Hope someone knows this.

Thanx,

Joris
 
Joris,

How are you attempting to add the reference? If you're starting with a CF 1
app, remove the reference to System.Data.SqlClient, then use Add Reference
to add it back and you should get the correct one.
 
Ginny,

The problem is, that I can't find a System.Data.SqlClient in CF 2. So
if I remove the CF 1 one from the references list, I don't have a
SqlClient whatsoever. Am I looking in the wrong places?
Or has the namespace changed?

Thanks,

Joris
 
It sounds like you don't have a good installation. There should still be a
System.Data.SqlClient namespace in CF 2. Are you using VS 2005 and the Add
References dialog, Net tab?
 
It's in "Add reference" window, right after System.Data.



If you can't see it for some reason then browse to it. It should be in
"%ProgramFiles%\Microsoft Visual Studio 8\SmartDevices\SDK\SQL
Server\Client\v2.0\System.Data.SqlClient.dll" by default.


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
Back
Top