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. database updation

database updation

Scheduled Pinned Locked Moved C#
databasesysadminhelpannouncement
6 Posts 2 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.
  • R Offline
    R Offline
    raju_net1818
    wrote on last edited by
    #1

    i have got another problem i have got a insert statement using which i update my database in the local system it is happening good in the local system... now coming to application which is put on the webserver now my database is not updating properly i am getting an exception. i am using server.mappath("dls.mdb"); dls.mdb is my databse name and server.mappath is returning exactly the path on the remote system (like d:/mywebsite/dls.mdb). please solve me and let me knwo

    C 1 Reply Last reply
    0
    • R raju_net1818

      i have got another problem i have got a insert statement using which i update my database in the local system it is happening good in the local system... now coming to application which is put on the webserver now my database is not updating properly i am getting an exception. i am using server.mappath("dls.mdb"); dls.mdb is my databse name and server.mappath is returning exactly the path on the remote system (like d:/mywebsite/dls.mdb). please solve me and let me knwo

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Define "not updating properly" Do you get an error ? Can you select data from this db ? Is the file read only ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      R 1 Reply Last reply
      0
      • C Christian Graus

        Define "not updating properly" Do you get an error ? Can you select data from this db ? Is the file read only ?

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        R Offline
        R Offline
        raju_net1818
        wrote on last edited by
        #3

        the exception which i get is System.Data.OleDb.OleDbException: Operation must use an updateable query. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteNonQuery() at Details.btnsubmit_Click(Object sender, EventArgs e) in the webserver and the file is not read only

        C 1 Reply Last reply
        0
        • R raju_net1818

          the exception which i get is System.Data.OleDb.OleDbException: Operation must use an updateable query. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteNonQuery() at Details.btnsubmit_Click(Object sender, EventArgs e) in the webserver and the file is not read only

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          A great way to solve error issues is to google the error message. I found this: http://support.microsoft.com/default.aspx/kb/830977[^] In a nutshell: This problem occurs when a Microsoft Access database file is used as your database source because you must grant write access to both the default worker process identity and the authenticated user.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          R 1 Reply Last reply
          0
          • C Christian Graus

            A great way to solve error issues is to google the error message. I found this: http://support.microsoft.com/default.aspx/kb/830977[^] In a nutshell: This problem occurs when a Microsoft Access database file is used as your database source because you must grant write access to both the default worker process identity and the authenticated user.

            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

            R Offline
            R Offline
            raju_net1818
            wrote on last edited by
            #5

            thanks a lot dude i fighting from yesterday thanks a lot bye

            R 1 Reply Last reply
            0
            • R raju_net1818

              thanks a lot dude i fighting from yesterday thanks a lot bye

              R Offline
              R Offline
              raju_net1818
              wrote on last edited by
              #6

              our website is being hosted by some other people sir and now i have changed write permission and i updated on the webserver still the same problem is coming do i need to publish my site once again and update all of them or only the databasse file has to replaced sir thanking u bye

              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