Re: Newbi question.



On Mar 21, 12:45 pm, "Willy Denoyette [MVP]"
<willy.denoye...@xxxxxxxxxx> wrote:
<pdcj...@xxxxxxxxx> wrote in message

news:5b199b9a-d6ab-4028-a7ac-a6cfd4db53ad@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx





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.- Hide quoted text -

- Show quoted text -

Ok. That makes more sense. Thanks.
.



Relevant Pages

  • Re: Exception handler problem.
    ... too many information from the database and it is not easy to estimate ... the memory required to store and to show data on the screen. ... retrieving data, but it is up to he/she to start an execution. ... I already created an invisible error message box and I am going to ...
    (comp.lang.java.gui)
  • Re: [Info-Ingres] String Manipulations
    ... believe databases are for retrieving data not business logic. ... Beg to differ. ... Logically speaking Emiliano, your quite right, but practically speaking, I'm ... I would still use database rules and procedures ...
    (comp.databases.ingres)
  • Input form to SQL does not insert data
    ... I have created a form for retrieving data from a SQL ... inpu data into the database. ... Both forms were created with the Wizard. ...
    (microsoft.public.frontpage.programming)
  • mysql problem
    ... I got a strange problem when retrieving data from a sql query. ... function that queries the database, gets data and store that in a struct. ... Thus, res becomes null. ...
    (comp.lang.c)
  • Having problem with SQLConnection.ChangeDatabase() method.
    ... secured using Applicaiton Roles. ... I use the SQLConnection object to connect ... to the first database. ... application role user is not a valid user in the database. ...
    (microsoft.public.dotnet.framework.adonet)