Connecting to SQL Server Express 2008 from Visual Basic.Net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CAM

    Connecting to SQL Server Express 2008 from Visual Basic.Net

    Hello,

    I am using SQL Server Express 2008 for my database and Visual Studios 2008 -
    Visual Basic.Net for my forms. I Gone into VS 2008 and specify the source
    of data using the Data Sources Windows following the wizard. I have input
    the Server name using Windows Authentication, select the database name and
    tested the connection it works fine. I created a form in VS 2008 added
    text boxes and the data navigator, table adapter. It all seems to work fine
    I can add data, delete data from the DataSet, but it's not permanent. When
    I look into the table in SQL nothing is updated. I just cannot update my
    SQL table at all. I don't know what is missing. Can anyone help? Any tips
    or website to visit I would appreciate. Thank you in advance.

    Cheers

  • PvdG42

    #2
    Re: Connecting to SQL Server Express 2008 from Visual Basic.Net


    "CAM" <alex_martinez@ ca.rr.comwrote in message
    news:A40C5C17-EC82-4C77-A28C-9E0FE6A95ADA@mi crosoft.com...
    Hello,
    >
    I am using SQL Server Express 2008 for my database and Visual Studios
    2008 -
    Visual Basic.Net for my forms. I Gone into VS 2008 and specify the source
    of data using the Data Sources Windows following the wizard. I have input
    the Server name using Windows Authentication, select the database name and
    tested the connection it works fine. I created a form in VS 2008 added
    text boxes and the data navigator, table adapter. It all seems to work
    fine
    I can add data, delete data from the DataSet, but it's not permanent.
    When
    I look into the table in SQL nothing is updated. I just cannot update my
    SQL table at all. I don't know what is missing. Can anyone help? Any
    tips
    or website to visit I would appreciate. Thank you in advance.
    >
    Cheers
    >
    Have you installed SP1 for your Visual Studio 2008?
    It's my understanding that SP1 is required for SQL Server 2008 support.


    Comment

    • CAM

      #3
      Re: Connecting to SQL Server Express 2008 from Visual Basic.Net

      Thanks PvdG42,
      I Installed the latest service pack, but that doesn't seem to do the trick.
      I appreicate your tip. Hopefully someone may have another tip. Thanks
      again.

      Cheers


      "PvdG42" <pvan@toadstool .eduwrote in message
      news:uniB0S$KJH A.5704@TK2MSFTN GP02.phx.gbl...
      >
      "CAM" <alex_martinez@ ca.rr.comwrote in message
      news:A40C5C17-EC82-4C77-A28C-9E0FE6A95ADA@mi crosoft.com...
      >Hello,
      >>
      >I am using SQL Server Express 2008 for my database and Visual Studios
      >2008 -
      >Visual Basic.Net for my forms. I Gone into VS 2008 and specify the
      >source
      >of data using the Data Sources Windows following the wizard. I have input
      >the Server name using Windows Authentication, select the database name
      >and
      >tested the connection it works fine. I created a form in VS 2008 added
      >text boxes and the data navigator, table adapter. It all seems to work
      >fine
      >I can add data, delete data from the DataSet, but it's not permanent.
      >When
      >I look into the table in SQL nothing is updated. I just cannot update my
      >SQL table at all. I don't know what is missing. Can anyone help? Any
      >tips
      >or website to visit I would appreciate. Thank you in advance.
      >>
      >Cheers
      >>
      Have you installed SP1 for your Visual Studio 2008?
      It's my understanding that SP1 is required for SQL Server 2008 support.
      >
      >

      Comment

      • Steve Gerrard

        #4
        Re: Connecting to SQL Server Express 2008 from Visual Basic.Net

        CAM wrote:
        >>I can add data, delete data from the DataSet, but it's not
        >>permanent.
        Are you callling an Update or Save method of some sort? Changes to a dataset are
        local, until you explicitly say you want them saved back to the database.


        Comment

        • CAM

          #5
          Re: Connecting to SQL Server Express 2008 from Visual Basic.Net

          Steve,

          I beleive that is my problem I need to explicity saved back to the database,
          I am not sure how to do that? Thanks for the insight.

          Cheers


          "Steve Gerrard" <mynamehere@com cast.netwrote in message
          news:m7adnSSGfe ua7mzVnZ2dnUVZ_ qPinZ2d@comcast .com...
          CAM wrote:
          >>>I can add data, delete data from the DataSet, but it's not
          >>>permanent.
          >
          Are you callling an Update or Save method of some sort? Changes to a
          dataset are local, until you explicitly say you want them saved back to
          the database.
          >
          >

          Comment

          • Steve Gerrard

            #6
            Re: Connecting to SQL Server Express 2008 from Visual Basic.Net

            CAM wrote:
            Steve,
            >
            I beleive that is my problem I need to explicity saved back to the
            database, I am not sure how to do that? Thanks for the insight.
            >
            If you have made a standard TableAdapter using the wizards, you should be able
            to call the Update method of the TableAdapter. It will need to have the insert,
            delete, and update SQL commands defined, which I think is optional in the course
            of running the wizard, but they may be there by default.



            Comment

            Working...