Re: No SqlServer class in System.Data namespace ???
From: Alex Feinman [MVP] (public_news_at_alexfeinman.com)
Date: 06/22/04
- Next message: Paul G. Tobey [eMVP]: "Re: Write File to Network Drive using Wi Fi connection"
- Previous message: Alex Feinman [MVP]: "Re: Inherits textbox acts differently then .NET 1.1"
- In reply to: tiger79: "No SqlServer class in System.Data namespace ???"
- Messages sorted by: [ date ] [ thread ]
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 > >
- Next message: Paul G. Tobey [eMVP]: "Re: Write File to Network Drive using Wi Fi connection"
- Previous message: Alex Feinman [MVP]: "Re: Inherits textbox acts differently then .NET 1.1"
- In reply to: tiger79: "No SqlServer class in System.Data namespace ???"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|