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. Web Development
  3. ASP.NET
  4. I can't update the data base

I can't update the data base

Scheduled Pinned Locked Moved ASP.NET
databaseannouncement
7 Posts 4 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
    abu sultan
    wrote on last edited by
    #1

    i beleive i am using the right code .. but nothing happens to the database when i am insert or update or delete only select statement running. ********CODE******* conn.open() sql="insert into table values("","")" dbcommand(sql, conn) dbcommand.ExecuteNonQuery() conn.close() *******************

    S E 2 Replies Last reply
    0
    • A abu sultan

      i beleive i am using the right code .. but nothing happens to the database when i am insert or update or delete only select statement running. ********CODE******* conn.open() sql="insert into table values("","")" dbcommand(sql, conn) dbcommand.ExecuteNonQuery() conn.close() *******************

      S Offline
      S Offline
      SIJUTHOMASP
      wrote on last edited by
      #2

      Hai, The following checks may help you to trace out the problem 1)Please check your connection(connectionstring),so that it is connecting to the database(Debug/ use try-catch). 2)Check you are having enough permission to execute the command. 3)Similarly use, Dim myCommand as SqlCommand myCommand=New SqlCommand(sql,conn) myCommand.ExecuteNonQuery() 4)Check your T-Sql queries are working fine(Execute in Query Analyzer) If every above cases are fine,It should work. More confidently, "It will work". Thank You, Rahul.P.Menon "Different Thinking makes people differ"

      1 Reply Last reply
      0
      • A abu sultan

        i beleive i am using the right code .. but nothing happens to the database when i am insert or update or delete only select statement running. ********CODE******* conn.open() sql="insert into table values("","")" dbcommand(sql, conn) dbcommand.ExecuteNonQuery() conn.close() *******************

        E Offline
        E Offline
        enjoycrack
        wrote on last edited by
        #3

        Are you using MS Access as DB? << >>

        A 1 Reply Last reply
        0
        • E enjoycrack

          Are you using MS Access as DB? << >>

          A Offline
          A Offline
          abu sultan
          wrote on last edited by
          #4

          yes dear i am using MS Access !!

          E 1 Reply Last reply
          0
          • A abu sultan

            yes dear i am using MS Access !!

            E Offline
            E Offline
            enjoycrack
            wrote on last edited by
            #5

            Hi there, So first you should make sure that ur coding is working. I mean that the problem is not from ur code, just simply run on another machine or run with SQL server. if the code is good, that means you might try to re-install the MS Access. Because, my friend had experinced this issue and we try to find out what the cause is, but nothing. And everything is working again until re-installing MS Access. we dont know why..... if you have a better solution, post it here as well.... << >>

            B 1 Reply Last reply
            0
            • E enjoycrack

              Hi there, So first you should make sure that ur coding is working. I mean that the problem is not from ur code, just simply run on another machine or run with SQL server. if the code is good, that means you might try to re-install the MS Access. Because, my friend had experinced this issue and we try to find out what the cause is, but nothing. And everything is working again until re-installing MS Access. we dont know why..... if you have a better solution, post it here as well.... << >>

              B Offline
              B Offline
              bryanball
              wrote on last edited by
              #6

              also i can't update my DB, i'm using access DB, have DBNULLchange to String not available show on the screen.

              E 1 Reply Last reply
              0
              • B bryanball

                also i can't update my DB, i'm using access DB, have DBNULLchange to String not available show on the screen.

                E Offline
                E Offline
                enjoycrack
                wrote on last edited by
                #7

                Hey there,

                bryanball wrote:

                have DBNULLchange to String not available show on the screen

                what do you mean?? :doh: Not get your point... << >>

                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