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. How 2 write the NT file permission ???

How 2 write the NT file permission ???

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesysadminquestionannouncement
4 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.
  • B Offline
    B Offline
    byan
    wrote on last edited by
    #1

    I using below code to connect to database, but it occur error msg. dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data & _ source=" & server.mappath("er.mdb")) dbconn.Open() Sql= "Update tbData set username = 'yyy'" dbcomm=New OleDbCommand(sql,dbconn) dbread=dbcomm.ExecuteReader() I think the problem is i not set the NT file system??? can somebody help me...:omg:

    M 1 Reply Last reply
    0
    • B byan

      I using below code to connect to database, but it occur error msg. dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data & _ source=" & server.mappath("er.mdb")) dbconn.Open() Sql= "Update tbData set username = 'yyy'" dbcomm=New OleDbCommand(sql,dbconn) dbread=dbcomm.ExecuteReader() I think the problem is i not set the NT file system??? can somebody help me...:omg:

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      What exception are you getting and which line of code is triggering it?

      B 1 Reply Last reply
      0
      • M Mike Ellison

        What exception are you getting and which line of code is triggering it?

        B Offline
        B Offline
        byan
        wrote on last edited by
        #3

        when i upload to intenet, it will show this error msg - Operation must use an updateable query. Line 119: dbcomm=New OleDbCommand(sql,dbconn) Line 120: dbread=dbcomm.ExecuteReader() Line 121: dbconn.close() Line 122: dbread.close() At the Internet, got database, table, file and folder! All Got! just the code not unable to run! izit the NT file not set! my web config js write as - < < < < < HOW??? HELP??:wtf: -- modified at 22:58 Monday 13th February, 2006

        M 1 Reply Last reply
        0
        • B byan

          when i upload to intenet, it will show this error msg - Operation must use an updateable query. Line 119: dbcomm=New OleDbCommand(sql,dbconn) Line 120: dbread=dbcomm.ExecuteReader() Line 121: dbconn.close() Line 122: dbread.close() At the Internet, got database, table, file and folder! All Got! just the code not unable to run! izit the NT file not set! my web config js write as - < < < < < HOW??? HELP??:wtf: -- modified at 22:58 Monday 13th February, 2006

          M Offline
          M Offline
          Mike Ellison
          wrote on last edited by
          #4

          Take a look at the permissions assigned to the ASP.NET process user. You would need write permissions on the .mdb file and on its containing folder.

          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