Re: No SqlServer class in System.Data namespace ???

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Alex Feinman [MVP] (public_news_at_alexfeinman.com)
Date: 06/22/04


Date: Tue, 22 Jun 2004 09:07:30 -0700

To access System.Data.SqlServerCe you need to add a reference to it (it's a
separate assembly). There is no namespace System.Data.SqlServer - to access
a standalone SQL Server you use System.Data.SqlClient namespace

-- 
Alex Feinman
---
Visit http://www.opennetcf.org
"tiger79" <poli@freemail.nl> wrote in message
news:u11mcXGWEHA.2520@TK2MSFTNGP12.phx.gbl...
> Ok, now it sees the System.Windows.Forms but I still got a proble with sql
> class :( I placed a reference to System.Data but now it seems to know the
> subclass .SqlClient but not SqlServer ???
> is it maybe beacuas ei'm making a class project instead of a Smart Device
> project ????
>
> "Peter Foot [MVP]" <feedback@nospam-inthehand.com> wrote in message
> news:ei%23SajDWEHA.1760@TK2MSFTNGP10.phx.gbl...
> > Once you've added your references to System.Windows.Forms and
> > System.Data.SqlServerCe you should add the following to the top of your
> code
> > file:-
> >
> > using System.Windows.Forms;
> > using System.Data.SqlServerCe;
> >
> > Then you will be able to directly reference individual classes in those
> > namespaces e.g.
> >
> > MessageBox.Show("Hello World");
> >
> > Peter
>
>


Relevant Pages

  • Re: VS2005 C#: User Testing
    ... The type or namespace name 'Drawing' does not exist in the namespace ... 'System' (are you missing an assembly reference?) ... Run it again, as now it should find it as a resource, and not be trying ... Studio altogether, not knew to programming. ...
    (microsoft.public.vstudio.general)
  • VS2005 C#: User Testing
    ... The type or namespace name 'Drawing' does not exist in the namespace ... 'System' (are you missing an assembly reference?) ... essentially a sizable hint window. ... Run it again, as now it should find it as a resource, and not be trying ...
    (microsoft.public.vstudio.general)
  • Re: use-package & name conflict: why they are not deferred?
    ... All symbols in C++ are in fact in one global namespace. ... All names are strings in the BSS segment. ... When C++ compilers generate code for this kind of linkage, ... resolving a reference of an identifier to a symbol). ...
    (comp.lang.lisp)
  • Re: use-package & name conflict: why they are not deferred?
    ... All symbols in C++ are in fact in one global namespace. ... There are more quirks in the design. ... If a D object is accessed through a reference R to B, ... Ada doesn't inherit Pascal's WITH statement either. ...
    (comp.lang.lisp)
  • Re: Server Printing using Print Dialog
    ... that is because the namespace is defined within an assembly your ... You can send feedback directly to my manager at: ... normally I do not have to add a reference when using any of the ... Calling a dialog box on the server would pop a dialog box on ...
    (microsoft.public.dotnet.framework.aspnet)