Database Access: Lock? Readonly? What to do...

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Database Access: Lock? Readonly? What to do...

    I have a CF site that uses MS Access databases for many different things, from
    creating the actual site, to doing Admin-related stuff like adding, editing,
    maintaining content.

    When I have a database open manually and someone hits a site that uses it, it
    gives them an error! I don't want this. I'm confused as to the proper locking
    techniques in regards to sessions, etc.

    Each site has an application.cfm. Not all users need to log in to access the
    main site, but users need to log in to edit the site (affect the database
    records).

    RuBot Guest

  2. Similar Questions and Discussions

    1. Oracle Database Lock Issue
      Hi, I have a SQL statement that I execute obn Oracle 9i Database: select lnum from parolee Where lNUM='#trim(UCase(Form.fnum))#' FOR UPDATE...
    2. break access database lock in mx?
      all, I'm trying to remotely compact an access database that holds all client variables. problem is, the ldb lock is there and i don't know how to...
    3. readonly access on tables
      Hi, We have a SQL server database on remote server. We are using ODBC connection to read and write into the table. But we have another user wants...
    4. Access + Asp + multiuser + table lock
      Hi all. In my asp site, i have a "Search and Sort" button that creates a lot of activity in my access database. Clciking on the button does...
    5. Readonly Database Objects??
      I have a problem that I have caused more than once in the last 2 weeks I have a working Access database that is being queried and updated via web...
  3. #2

    Default Re: Database Access: Lock? Readonly? What to do...

    I ran into this problem doing a tutorial on Macromedia's site.
    [url]http://www.macromedia.com/devnet/coldfusion/articles/guestbook_01.html[/url]

    My result is at [url]http://www.billcory.net/guestbook.swf[/url]

    I can see the Microsoft Access DataBase's data but I cannot write to it. The
    reason is that the .mdb is locked with a .ldb file of the same name. How do I
    get around this? I was told to unlock the .ldb file, but I can't find any
    information within Access or ColdFusion for doing so.

    :wine;

    Fodor Guest

  4. #3

    Default Re: Database Access: Lock? Readonly? What to do...

    Run a query that fails, wrapping it in CFTRY/CFCATCH. The crash will delete
    unlock the database.


    <CFTRY>
    <CFQUERY NAME="crash" ... >
    SELECT id FROM thisTableDoesNotExist
    </CFQUERY>
    <CFCATCH >
    <!--- here's where you wind up when the query fails. the database is unlocked
    --->
    </CFCATCH>
    </CFTRY>
    <!--- now continue on your merry way --->

    jdeline Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139