Downloading an Access file

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

  1. #1

    Default Downloading an Access file

    I need to ftp download a copy of an MS Access .mdb file on a daily basis from a
    MS IIS server using CF 5. The .ldb file is locking up not allowing the download
    of the .mdb when the app is in use. I can copy the file to another directory
    then download that copy but this is not an acceptable solution for the users. I
    understand that CF 5 locks up the ldb file and can hold it up to 3 minutes
    longer than it is in use. Has anyone found a work around for downloading an
    mdb file that is locked without copying or stopping the server? Thanks

    mohm Guest

  2. Similar Questions and Discussions

    1. Downloading file
      i want to click on a link which then displays a file on the cd in word, how can i make this file able to be downloaded on the users computer? i...
    2. File Downloading from Flash
      I am trying to implement a File Download in Flash but I don't know how. I know that can be done since in the Macromedia Exchange there is a...
    3. Downloading file(s) from CD
      How can I make a button which start a downloading of file or more from the CD the presentation is running from, into the local hard disk in a...
    4. Downloading a file from a CD
      Hi, Im using Director MX. On my CD, I want people to be able to click on an option that starts to download a video from my CD to the users...
    5. Downloading a file
      I want my users to access my .aspx and hit a button to download a file. I tried using the a System.Net.Webclient object but instead of the file...
  3. #2

    Default Re: Downloading an Access file

    Create a CFM file named "Unlock.cfm" (Or whatever you want)

    Add this code to it:

    <cfset tempkill = CFUSION_DBCONNECTIONS_FLUSH()>
    <cfquery name="test" datasource=" DS NAME HERE ">
    SELECT bogus
    FROM bogustable
    </cfquery>


    This will query a bogus table and flush teh connections at the same time. It
    will unlock your database file.

    Vbprog40 Guest

  4. #3

    Default Re: Downloading an Access file

    I made the following cfm file, and placed it within my root folder and it did
    not unlock the mydatabase.ldb file. I use an ISP's ColdFusion 7 with no access
    to the CFAdmin. See: [url]http://www.billcory.net/GuestBook.swf[/url]

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>
    <cfset tempkill = CFUSION_DBCONNECTIONS_FLUSH()>
    <cfquery name="test" datasource="backyardY7_accesscf_GuestBook">
    SELECT bogus
    FROM bogustable
    </cfquery>

    </body>

    Fodor Guest

  5. #4

    Default Re: Downloading an Access file

    The bogus query solution doesn't work anymore. You have to uncheck "Maintain
    Database Connections" for your DSN. The performance tradeoff is the issue, but
    at least you'll have a chance to grab the file. I'd suggest an admin template
    that disables your application while you attempt to download the MDB; that way
    no one will re-establish the connection and the lock file.

    philh Guest

  6. #5

    Default Re: Downloading an Access file

    what a about copy the Access File to a temp database file download and then delete temp file

    not need to disconnect

    jorgepino Guest

  7. #6

    Default Re: Downloading an Access file

    Originally posted by: mohm
    I can copy the file to another directory then download that copy but this is not an acceptable solution for the users.

    That's why you can't use the copy approach.


    philh Guest

  8. #7

    Default Re: Downloading an Access file

    Uh, if this is a system you have control over, why can't you make a copy and
    download it? Their isn't much of a difference.

    Modify your application to not allow exclusive locks.

    Pull the file during the daily flush of CF; you are clearing the boards
    nightly aren't you?

    VorDesigns 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