Ask a Question related to Coldfusion Database Access, Design and Development.
-
RuBot #1
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
-
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... -
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... -
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... -
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... -
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... -
Fodor #2
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
-
jdeline #3
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



Reply With Quote

