|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Update a datasource
My site (written by someone else) runs off Access db.
I downloaded this file via ftp, made changes, and now want to upload it and replace the other. I cannot do this, as the "file is in use". Is ther any way to tell Access to close the db, so i can uplaod the new db ? Thanks -Matt |
|
#2
|
|||
|
|||
|
This is a problem with file-based databases. I believe you can write a simple SQL query that will throw an error like
<cfquery dsn="myAccessDSNName"> select * from blahfootabledoesntexist </query> which will generate an error and should cause the database connection to close. Then you can quickly upload the new file but you have to do it before another valid query runs which will create a new connection.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Update a datasource |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|