473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

help anyone..

C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Summa ryReport.cs(301): The type
or namespace name 'SqlConnection' could not be found (are you missing a using
directive or an assembly reference?)

may i know what does it means? thanks?
Nov 16 '05 #1
5 1181
Hi Alyssa,

There is nothing in your project that is referencing the
System.Data.SqlClient namespace. Add this line ontop of the file to solve
the problem:

using System.Data.SqlClient;

This is a common error and it is easy to fix. Just use the Documentation
(MSDN/SDK). At the bottom of the page is a link to the namespace. If you
don't have a using statement with that namespace, you will need to use the
full name in your code.

System.Data.SqlClient.SqlConnection conn = new
System.Data.SqlClient.SqlConnection();

On Wed, 16 Mar 2005 07:39:11 -0800, alyssa
<al****@discussions.microsoft.com> wrote:
C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Summa ryReport.cs(301): The
type
or namespace name 'SqlConnection' could not be found (are you missing a
using
directive or an assembly reference?)

may i know what does it means? thanks?


--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
alyssa,

You need to add a reference to System.Data.dll to your project. Right
click on the "references" folder in your project, and then select
"System.Data.dll" from the list on the ".NET" tab on the dialog that comes
up.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"alyssa" <al****@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Summa ryReport.cs(301): The
type
or namespace name 'SqlConnection' could not be found (are you missing a
using
directive or an assembly reference?)

may i know what does it means? thanks?

Nov 16 '05 #3
a line like this will solve your problems:

using System.Data.SqlClient;
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"alyssa" <al****@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Summa ryReport.cs(301): The
type
or namespace name 'SqlConnection' could not be found (are you missing a
using
directive or an assembly reference?)

may i know what does it means? thanks?

Nov 16 '05 #4
You would also have to add a reference System.Data in the project, if it's
not already there.

--Bob

"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opsnqlzud6klbvpo@pbn_computer...
Hi Alyssa,

There is nothing in your project that is referencing the
System.Data.SqlClient namespace. Add this line ontop of the file to solve
the problem:

using System.Data.SqlClient;

This is a common error and it is easy to fix. Just use the Documentation
(MSDN/SDK). At the bottom of the page is a link to the namespace. If you
don't have a using statement with that namespace, you will need to use the
full name in your code.

System.Data.SqlClient.SqlConnection conn = new
System.Data.SqlClient.SqlConnection();

On Wed, 16 Mar 2005 07:39:11 -0800, alyssa
<al****@discussions.microsoft.com> wrote:
C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Summa ryReport.cs(301): The
type
or namespace name 'SqlConnection' could not be found (are you missing a
using
directive or an assembly reference?)

may i know what does it means? thanks?


--
Happy Coding!
Morten Wennevik [C# MVP]

Nov 16 '05 #5
Hi,
IIRC all the projects types defined in VS.NET 2003 include it by default
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Bob Grommes" <bo*@bobgrommes.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
You would also have to add a reference System.Data in the project, if it's
not already there.

--Bob

"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opsnqlzud6klbvpo@pbn_computer...
Hi Alyssa,

There is nothing in your project that is referencing the
System.Data.SqlClient namespace. Add this line ontop of the file to
solve the problem:

using System.Data.SqlClient;

This is a common error and it is easy to fix. Just use the Documentation
(MSDN/SDK). At the bottom of the page is a link to the namespace. If
you don't have a using statement with that namespace, you will need to
use the full name in your code.

System.Data.SqlClient.SqlConnection conn = new
System.Data.SqlClient.SqlConnection();

On Wed, 16 Mar 2005 07:39:11 -0800, alyssa
<al****@discussions.microsoft.com> wrote:
C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Summa ryReport.cs(301): The
type
or namespace name 'SqlConnection' could not be found (are you missing a
using
directive or an assembly reference?)

may i know what does it means? thanks?


--
Happy Coding!
Morten Wennevik [C# MVP]


Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: lawrence | last post by:
Myself and two friends have been working on a PHP content management system for several months. It's features include weblogs, newsletters, RSS, and a completely customizable admin control panel...
5
by: John Flynn | last post by:
hi all i'm going to be quick i have an assignment due which i have no idea how to do. i work full time so i dont have the time to learn it and its due date has crept up on me .. As follows:...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
8
by: Pete Davis | last post by:
First of all, I apologize for cross-posting to so many groups, but clearly there are only 2 people on the planet that understand MS Accessibility in ..NET and I'm hoping I might reach just one of...
0
by: Kyle | last post by:
I have a project "wyatterp.com" that was built to be an ERP development library using postgresql as a backend. We use it internally to run a 120 employee manufacturing company. And it does...
16
by: Rex | last post by:
Hi All - I have a question that I think MIGHT be of interest to a number of us developers. I am somewhat new to VIsual Studio 2005 but not new to VB. I am looking for ideas about quick and...
11
by: Matthew | last post by:
Ok let me try to explain this as good as I can. I am creating this application where it contains a userlogin class. The user logs in before entering the main apploication. I want to do audit trails...
8
by: SanjaiGandhi | last post by:
Hi ...i am new to programing....pls help to overcome this program.. The Program is..: if a = 557..using for loop or while or dowhile ..we have to get the answer for 5+5+7..that is what ever...
2
by: singhs21 | last post by:
hello can anyone help me im making a project ive been for hours on sites looking for help: basically, im making site which reads a password, allows access if it is correct: it will also after 3...
1
by: AlmasKhan01 | last post by:
Hi I have been for sometime now been working on a MineSweeper program and I'm 90% complete on it it involves a window interface and is quite simple but the issue is not. The program is long(to me)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.