Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. SQLServer Express Edition

SQLServer Express Edition

Scheduled Pinned Locked Moved C#
databasequestionannouncement
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Agyeman
    wrote on last edited by
    #1

    I am using VS2005 with SQLServer Express Edition. Select SQL statement work fine but not Insert or update. Is there something am doing wrong? Sample insert code. DataSet.DatabaseDataSetTableAdapters.SaleTransactionTableTableAdapter SaleTransAdapter = new DataSet.DatabaseDataSetTableAdapters.SaleTransactionTableTableAdapter(); SaleTransAdapter.Insert(7, (decimal)NetTotal, DateTime.Now);

    Nana

    G R 2 Replies Last reply
    0
    • A Agyeman

      I am using VS2005 with SQLServer Express Edition. Select SQL statement work fine but not Insert or update. Is there something am doing wrong? Sample insert code. DataSet.DatabaseDataSetTableAdapters.SaleTransactionTableTableAdapter SaleTransAdapter = new DataSet.DatabaseDataSetTableAdapters.SaleTransactionTableTableAdapter(); SaleTransAdapter.Insert(7, (decimal)NetTotal, DateTime.Now);

      Nana

      R Offline
      R Offline
      RIPOUX
      wrote on last edited by
      #2

      i add the same problem with i think. the problem is when you create the DB, it make a copy of it in your bin/debug forder and every update are in this DB the one you create is the basic one and every time you run the debugger, he takes all the info in the basic one to overwrite the bin/debug one but the screen result show you the bin/debug DB. so, it look like the add you made are not working in your db explorer, create a new connection and link it to the bin/debug one then when you add something, check in this one hope it help you ! have a good one ;)

      A 2 Replies Last reply
      0
      • A Agyeman

        I am using VS2005 with SQLServer Express Edition. Select SQL statement work fine but not Insert or update. Is there something am doing wrong? Sample insert code. DataSet.DatabaseDataSetTableAdapters.SaleTransactionTableTableAdapter SaleTransAdapter = new DataSet.DatabaseDataSetTableAdapters.SaleTransactionTableTableAdapter(); SaleTransAdapter.Insert(7, (decimal)NetTotal, DateTime.Now);

        Nana

        G Offline
        G Offline
        Giorgi Dalakishvili
        wrote on last edited by
        #3

        You need to set insert and update commands

        A 1 Reply Last reply
        0
        • R RIPOUX

          i add the same problem with i think. the problem is when you create the DB, it make a copy of it in your bin/debug forder and every update are in this DB the one you create is the basic one and every time you run the debugger, he takes all the info in the basic one to overwrite the bin/debug one but the screen result show you the bin/debug DB. so, it look like the add you made are not working in your db explorer, create a new connection and link it to the bin/debug one then when you add something, check in this one hope it help you ! have a good one ;)

          A Offline
          A Offline
          Agyeman
          wrote on last edited by
          #4

          Thank you for your help. I am afraid to say its still not working. Only select statements work after i have manually populated the database. Insert and updates still don't. i added a connection to the copy in the debug. It also has the same data as the one in the local folder. Insert still not working on that one too. I will appreciate anymore suggestions

          Nana

          1 Reply Last reply
          0
          • R RIPOUX

            i add the same problem with i think. the problem is when you create the DB, it make a copy of it in your bin/debug forder and every update are in this DB the one you create is the basic one and every time you run the debugger, he takes all the info in the basic one to overwrite the bin/debug one but the screen result show you the bin/debug DB. so, it look like the add you made are not working in your db explorer, create a new connection and link it to the bin/debug one then when you add something, check in this one hope it help you ! have a good one ;)

            A Offline
            A Offline
            Agyeman
            wrote on last edited by
            #5

            Well thanks for your suggestion. I tried it and its still not working. Insert and update statement do not work on the database cope in the debug directory too. The select statement works if i populate the database manually. I create insert and update commands to no success. I will appreciate anymore sugestions. Thanks

            Nana

            1 Reply Last reply
            0
            • G Giorgi Dalakishvili

              You need to set insert and update commands

              A Offline
              A Offline
              Agyeman
              wrote on last edited by
              #6

              Well thanks for your suggestion. I tried it and its still not working. Insert and update statement do not work on the database cope in the debug directory too. The select statement works if i populate the database manually. I create insert and update commands to no success. I will appreciate anymore sugestions. Thanks

              Nana

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups