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. Updateable queries

Updateable queries

Scheduled Pinned Locked Moved Web Development
helpdatabasewindows-adminsecurityquestion
6 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.
  • X Offline
    X Offline
    Xavier Shay
    wrote on last edited by
    #1

    I've just upgraded to XP Pro/IIS from Win98/PWS. I put my website in wwwroot, changed the permissions on the database folder to 'read and write' so I can modify my databases (Access 2000). But alas, I get a 'query must be updateable' error! I went into the wwwroot folder using explorer and went to the databases folder's properties. I don't have a 'security' tab (Am I supposed to? I do on W2K) and I can't uncheck the readonly option! My queries are like: UPDATE table SET field1='value1', field2='value2' WHERE ID = myid INSERT INTO table (field1, field2) VALUES ('value1', 'value2') Has anyone had any problem similar to this or have any ideas? I'm stuck. - X

    M P M 3 Replies Last reply
    0
    • X Xavier Shay

      I've just upgraded to XP Pro/IIS from Win98/PWS. I put my website in wwwroot, changed the permissions on the database folder to 'read and write' so I can modify my databases (Access 2000). But alas, I get a 'query must be updateable' error! I went into the wwwroot folder using explorer and went to the databases folder's properties. I don't have a 'security' tab (Am I supposed to? I do on W2K) and I can't uncheck the readonly option! My queries are like: UPDATE table SET field1='value1', field2='value2' WHERE ID = myid INSERT INTO table (field1, field2) VALUES ('value1', 'value2') Has anyone had any problem similar to this or have any ideas? I'm stuck. - X

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      Xavier Shay wrote: I don't have a 'security' tab (Am I supposed to? I do on W2K) and I can't uncheck the readonly option I'm in my W2K now but as I remember you have to go to folder options--->View Then I think one of the last options change the simple security to other ones,then you have 'security tab' in xp too. Mazy **"If I go crazy then will you still Call me Superman If I’m alive and well, will you be There holding my hand I’ll keep you by my side with My superhuman might Kryptonite"**Kryptonite-3 Doors Down

      X 1 Reply Last reply
      0
      • X Xavier Shay

        I've just upgraded to XP Pro/IIS from Win98/PWS. I put my website in wwwroot, changed the permissions on the database folder to 'read and write' so I can modify my databases (Access 2000). But alas, I get a 'query must be updateable' error! I went into the wwwroot folder using explorer and went to the databases folder's properties. I don't have a 'security' tab (Am I supposed to? I do on W2K) and I can't uncheck the readonly option! My queries are like: UPDATE table SET field1='value1', field2='value2' WHERE ID = myid INSERT INTO table (field1, field2) VALUES ('value1', 'value2') Has anyone had any problem similar to this or have any ideas? I'm stuck. - X

        P Offline
        P Offline
        Philip Patrick
        wrote on last edited by
        #3

        Yep, Mazdak is right, I'm replying just to say - I remember how I spent a whole day trying to find where the damn security tab is in XP, lmao. Nostalgy :) Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer

        1 Reply Last reply
        0
        • X Xavier Shay

          I've just upgraded to XP Pro/IIS from Win98/PWS. I put my website in wwwroot, changed the permissions on the database folder to 'read and write' so I can modify my databases (Access 2000). But alas, I get a 'query must be updateable' error! I went into the wwwroot folder using explorer and went to the databases folder's properties. I don't have a 'security' tab (Am I supposed to? I do on W2K) and I can't uncheck the readonly option! My queries are like: UPDATE table SET field1='value1', field2='value2' WHERE ID = myid INSERT INTO table (field1, field2) VALUES ('value1', 'value2') Has anyone had any problem similar to this or have any ideas? I'm stuck. - X

          M Offline
          M Offline
          Martin Marvinski
          wrote on last edited by
          #4

          Xavier Shay wrote: ). But alas, I get a 'query must be updateable' error! I went into the wwwroot folder using explorer and went to the databases folder's properties. Have you set up your DB connection using ODBC? Putting your database in the wwwroot folder and hard coding the path is not a good idea. The reason I suspect you are getting this error is because you didn't set up connectivity with ODBC, and your database has a security level that is higher then the default IIS account so it won't allow read/write access. To change this either 1. Set up a ODBC connection(the right way) or 2. make your Access Database security level one that the default IIS account can use(the dangerous way).

          X 1 Reply Last reply
          0
          • M Mazdak

            Xavier Shay wrote: I don't have a 'security' tab (Am I supposed to? I do on W2K) and I can't uncheck the readonly option I'm in my W2K now but as I remember you have to go to folder options--->View Then I think one of the last options change the simple security to other ones,then you have 'security tab' in xp too. Mazy **"If I go crazy then will you still Call me Superman If I’m alive and well, will you be There holding my hand I’ll keep you by my side with My superhuman might Kryptonite"**Kryptonite-3 Doors Down

            X Offline
            X Offline
            Xavier Shay
            wrote on last edited by
            #5

            You're exactly right, thanks :) - X

            1 Reply Last reply
            0
            • M Martin Marvinski

              Xavier Shay wrote: ). But alas, I get a 'query must be updateable' error! I went into the wwwroot folder using explorer and went to the databases folder's properties. Have you set up your DB connection using ODBC? Putting your database in the wwwroot folder and hard coding the path is not a good idea. The reason I suspect you are getting this error is because you didn't set up connectivity with ODBC, and your database has a security level that is higher then the default IIS account so it won't allow read/write access. To change this either 1. Set up a ODBC connection(the right way) or 2. make your Access Database security level one that the default IIS account can use(the dangerous way).

              X Offline
              X Offline
              Xavier Shay
              wrote on last edited by
              #6

              I have to upload my site to a remote server which I don't have much control over, and as such I don't think I can use ODBC connection names (I don't know much about them, correct me if I'm wrong). I have the databases stored in a subdirectory (wwwroot/databases) and I am going to try and change the security permissions on this database. I'm not the right comp to try this now (it's at work) but I'll post what code I'm using as soon as possible. Thanks for your help :) - X

              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