Newbi question.

  • Thread starter Thread starter pdcjlw1
  • Start date Start date
P

pdcjlw1

Hey I'm trying to learn how to connect a database to a C# project. The
tutorial I am trying to follow says to do the following:

Creating a Database Connection
The first thing you need when retrieving data from a database is, of
course, a database connection. Although you can use the Data Adapter
Configuration Wizard to create a new database connection, the process
is easier to understand if you do it yourself the first time. To do
so, start a new Windows Application project, open the Toolbox window,
and drag a new SqlConnection object onto the form.

The only problem I have is that my toolbox does not have a
Sqlconnection object. I can't seem to find it.
This is very frustrating!

I am using Visual Studio 2005 Professional Edition.

Can anyone help?
 
Hey I'm trying to learn how to connect a database to a C# project. The
tutorial I am trying to follow says to do the following:

Creating a Database Connection
The first thing you need when retrieving data from a database is, of
course, a database connection. Although you can use the Data Adapter
Configuration Wizard to create a new database connection, the process
is easier to understand if you do it yourself the first time. To do
so, start a new Windows Application project, open the Toolbox window,
and drag a new SqlConnection object onto the form.

The only problem I have is that my toolbox does not have a
Sqlconnection object. I can't seem to find it.
This is very frustrating!

I am using Visual Studio 2005 Professional Edition.

Can anyone help?

Ok. So why would my tutorial say to get it from the toolbox. That's
very confusing.
 
Hey I'm trying to learn how to connect a database to a C# project. The
tutorial I am trying to follow says to do the following:

Creating a Database Connection
The first thing you need when retrieving data from a database is, of
course, a database connection. Although you can use the Data Adapter
Configuration Wizard to create a new database connection, the process
is easier to understand if you do it yourself the first time. To do
so, start a new Windows Application project, open the Toolbox window,
and drag a new SqlConnection object onto the form.

The only problem I have is that my toolbox does not have a
Sqlconnection object. I can't seem to find it.
This is very frustrating!

I am using Visual Studio 2005 Professional Edition.

Can anyone help?


Not all Framework components are added to the toolbox per default,
SqlConnection is such component, you need to add it manually, by right
clicking "Components" and select "Choose Items.. " , from the ".Net
Framework Components" dialog select "SqlConnection" to add it to the
toolbox.

Willy.
 
Not all Framework components are added to the toolbox per default,
SqlConnection is such component, you need to add it manually, by right
clicking "Components" and select "Choose Items.. " , from the ".Net
Framework Components" dialog select "SqlConnection" to add it to the
toolbox.

Willy.- Hide quoted text -

- Show quoted text -

Ok. That makes more sense. Thanks.
 
Back
Top