Build error using SqlClient in VS.NET

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

Hi,

I'm trying to design a mobile application that accesses a
SQL database remotely. I'm using VS.NET to create a
C# "smart device application."

According to all documentation I've seen, the namespace
System.Data.SqlClient is supported by the compact
framework. However, when I cannot BUILD any application
in VS.NET that has any reference to this namespace. The
error asks if I'm missing an assembly reference.

I've read other reports that claim you cannot access a
remote sql database. However, since it is possible to
have a local server with which an sql client can interact,
I do not understand why my app will not even build.

What can I do to include the proper assembly reference and
get the application to build? And if I can do this, is it
possible to access a remote SQL database?

Thanks,
Jon
 
Hi Kevin,

Thanks for your reply. I figured it out myself a little
later. Yes, the problem was that not all references in
the compact framework were included by default when I
began my project. I added the reference to the namespace
to solve the problem. I'm using VS.NET 2003.

Thanks,
-Jon
 
Back
Top