Newbi question.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pdcjlw1@gmail.com

    Newbi question.

    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?
  • pdcjlw1@gmail.com

    #2
    Re: Newbi question.

    On Mar 21, 11:01 am, pdcj...@gmail.c om wrote:
    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.

    Comment

    • Willy Denoyette [MVP]

      #3
      Re: Newbi question.

      <pdcjlw1@gmail. comwrote in message
      news:5b199b9a-d6ab-4028-a7ac-a6cfd4db53ad@p7 3g2000hsd.googl egroups.com...
      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 "SqlConnect ion" to add it to the
      toolbox.

      Willy.

      Comment

      • pdcjlw1@gmail.com

        #4
        Re: Newbi question.

        On Mar 21, 12:45 pm, "Willy Denoyette [MVP]"
        <willy.denoye.. .@telenet.bewro te:
        <pdcj...@gmail. comwrote in message
        >
        news:5b199b9a-d6ab-4028-a7ac-a6cfd4db53ad@p7 3g2000hsd.googl egroups.com...
        >
        >
        >
        >
        >
        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 "SqlConnect ion" to add it to the
        toolbox.
        >
        Willy.- Hide quoted text -
        >
        - Show quoted text -
        Ok. That makes more sense. Thanks.

        Comment

        Working...