1 2 Previous Next 60 Replies Latest reply on Oct 3, 2017 6:11 AM by fede_ctfd Go to original post
      • 40. Re: accdb with CF9 under Win2008 R2 64bit
        Owain North Level 4

        A recommendation to change the database is NOT regarded as helpful

         

        Dammit, that's me out then.

        • 41. Re: accdb with CF9 under Win2008 R2 64bit
          BKBK Adobe Community Professional & MVP

          Procedure 1:

          1. SELECT qry from CF9 to the  DS
          2. UPDATE something in DS from CF9
          3. UPDATE something else in the underlying table from within MS Access
          4. SELECT qry from CF9 to the  DS

           

          Procedure 2:

          1. SELECT qry from CF9 to the  DS
          2. UPDATE something in the underlying table from within MS Access
          3. UPDATE something else in DS from CF9
          4. SELECT qry from CF9 to the  DS

           

          Does these procedures work? That is, does step 4 reflect both changes made in steps 2 and 3?

          1 person found this helpful
          • 42. Re: accdb with CF9 under Win2008 R2 64bit
            HXTT Support Level 1

            >>JDBC URL: jdbc:access:/C:/Users/BKBK/Documents/myDB.accdb

            >But this procedure does not work

            >    SELECT qry from CF9 to the  DS

            >    UPDATE the underlying table from within MS Access

            >    SELECT qry from CF9 to the  DS (this does NOT reflect the change made in the step before)

            You need lockType=ACCESS connection property, then HXTT Access and MS Access can see each other.

            For instance,  JDBC URL: jdbc:access:/C:/Users/BKBK/Documents/myDB.accdb?lockType=ACCESS

            1 person found this helpful
            • 43. Re: accdb with CF9 under Win2008 R2 64bit
              BKBK Adobe Community Professional & MVP

              HXTT Support wrote:

               

              >>JDBC URL: jdbc:access:/C:/Users/BKBK/Documents/myDB.accdb

              >But this procedure does not work

              >    SELECT qry from CF9 to the  DS

              >    UPDATE the underlying table from within MS Access

              >    SELECT qry from CF9 to the  DS (this does NOT reflect the change made in the step before)

              You need lockType=ACCESS connection property, then HXTT Access and MS Access can see each other.

              For instance,  JDBC URL: jdbc:access:/C:/Users/BKBK/Documents/myDB.accdb?lockType=ACCESS

              Wow! HXTT Support! What a privilege!

              • 44. Re: accdb with CF9 under Win2008 R2 64bit
                Didi Level 1

                BKBK:

                good idea to isolate the problem! -Thanx for the input!

                 

                HXTT Support:

                Even better - now it works - triple Thanx for the solution!

                 

                hxtt-2.GIF

                 

                For those who recommend to change the DB (Owain, are you still there?   ):

                We made some performance tests and compared 'accdb plus HXTT' with SQL 2008 Express.

                'accdb plus HXTT' is incredibly fast. Regarding our application you cannot measure a difference in response time ..

                 

                -Didi

                • 45. Re: accdb with CF9 under Win2008 R2 64bit
                  Owain North Level 4

                  When you have one user and all the files are already cached, maybe

                   

                  Wait for a second user to hit your site, it'll be like a DDOS.

                  • 46. Re: accdb with CF9 under Win2008 R2 64bit
                    Didi Level 1

                    @ HXTT Support: are you still with us?

                     

                    As instructed by BKBK I installed the driver-library to

                     

                      "C:\ColdFusion\lib\Access_JDBC40.jar"

                     

                    However, when I replace Access_JDBC40.jar with the newer version Access_JDBC41.jar that was included with the package I received from you, it does not work.

                     

                    Do I need to configure a different Driver Class or JDBC URL ?

                     

                    Well, Access_JDBC40.jar works fine for me, but I guess, 41 has some advantages?

                     

                    -Didi

                    • 47. Re: accdb with CF9 under Win2008 R2 64bit
                      Didi Level 1

                      Owain North wrote:

                       

                      When you have one user and all the files are already cached, maybe

                       

                      Wait for a second user to hit your site, it'll be like a DDOS.

                      I absolutely agree, that accdb is not intended for a huge multiuser environment.

                      However, ColdFusion is the only user.

                      Since more than a decade I am told to trash MDBs since they will not perform.

                      On the other hand I have applications with half a million hits per day that do not even twinkle between two requests. Otherwise students learning for exam would rub through my doormat

                      As soon as performance drops, I definitely change ..

                      Besides some legacy stuff I can't get rid off on the fast lane (we have applications running from the 90s),  I somehow have started to regard this discussion about the lousy performing mdb as a kind of intellectual challenge

                       

                      -Didi

                      • 48. Re: accdb with CF9 under Win2008 R2 64bit
                        HXTT Support Level 1

                        >Well, Access_JDBC40.jar works fine for me, but I guess, 41 has some advantages?

                        You cannot use Access_JDBC41.jar, since JDBC 41 API is for JDK1.7.X, and your ColdFusion is using JDK1.6.X. Both of Access_JDBC40.jar and Access_JDBC41.jar are released as v5.1 for different JDBC API standard.

                        1 person found this helpful
                        • 49. Re: accdb with CF9 under Win2008 R2 64bit
                          HXTT Support Level 1

                          >   When you have one user and all the files are already cached, maybe

                          First, according to one customer's random access( which needn't  cached for recycle) report for  big file on CD-R, HXTT Access engine is faster than MS Access ODBC engine.

                          Secondly, on lockType=ACCESS mode, HXTT Access won't use cache, since MS Access and HXTT Access can't share cache for concurrent according to old MS Access lock mechanism. HXTT Access has a faster data format parser/loader, and can utilize existent index fully for most sql.

                          Thirdly, only without lockType=ACCESS mode, HXTT Access can use multi-level cache, for physical file, object query reslut, session, transaction. All core is smaller, and HXTT Access can run on mobile platform.

                          Forth, only with assigned delayecClose connection property, HXTT Access can choose to build temporary index for big table without existent index.

                          According to performance test, HXTT drivers is faster than most of popular databases.

                          • 50. Re: accdb with CF9 under Win2008 R2 64bit
                            Didi Level 1

                            HXTT Support wrote:

                             

                            You cannot use Access_JDBC41.jar, since JDBC 41 API is for JDK1.7.X, and your ColdFusion is using JDK1.6.X. Both of Access_JDBC40.jar and Access_JDBC41.jar are released as v5.1 for different JDBC API standard.

                            Thanx!!!

                            -Didi

                            • 51. Re: accdb with CF9 under Win2008 R2 64bit
                              Didi Level 1

                              HXTT Support wrote:

                               

                              >   When you have one user and all the files are already cached, maybe

                              First, according to one customer's random access( which needn't  cached for recycle) report for  big file on CD-R, HXTT Access engine is faster than MS Access ODBC engine.

                              Secondly, on lockType=ACCESS mode, HXTT Access won't use cache, since MS Access and HXTT Access can't share cache for concurrent according to old MS Access lock mechanism. HXTT Access has a faster data format parser/loader, and can utilize existent index fully for most sql.

                              Thirdly, only without lockType=ACCESS mode, HXTT Access can use multi-level cache, for physical file, object query reslut, session, transaction. All core is smaller, and HXTT Access can run on mobile platform.

                              Forth, only with assigned delayecClose connection property, HXTT Access can choose to build temporary index for big table without existent index.

                              According to performance test, HXTT drivers is faster than most of popular databases.

                               

                              aha!

                               

                              So,

                               

                                      jdbc:access:/C:/Users/BKBK/Documents/myDB.accdb?lockType=ACCESS

                               

                              is ok for a developer environment.

                               

                              So, what configuration would you (HXTT Support, not you Owain ) recommend for a productive installation?

                               

                                     jdbc:access:/C:/Users/BKBK/Documents/myDB.accdb? ... delayedClose .. maxCacheSize .. lockTimeout.. etc. ???

                               

                              Is this for CF9 still valid as for CF6.1 (as stated in your FAQ)?:

                               

                                     ?delayedClose=15;maxCacheSize=6144;lockTimeout=2000

                               

                              -Didi

                               

                               

                              PS: hey Owain, do not misunderstand me, it's not personal, just the challenge I mentioned above

                               

                               


                              • 52. Re: accdb with CF9 under Win2008 R2 64bit
                                HXTT Support Level 1

                                >So, what configuration would you (HXTT Support, not you Owain ) recommend for a productive installation?

                                It's only a jdbc url demo. You need only lockType=ACCESS since you need MS Access concurrent access. You can add other connection property if you need some special feature, for instance, ODBCTrimBehavior or caseInsensitive.

                                • 53. Re: accdb with CF9 under Win2008 R2 64bit
                                  itisdesign Most Valuable Participant

                                  Hi Didi,

                                   

                                  For MSAccess in 64-bit CF, you need the 32-bit drivers.

                                   

                                  Please follow these exact steps on the Win2008 R2 64bit CF9 machine:

                                  1) Install the 32-bit AccessDatabaseEngine.exe.  Note: If 64-bit AccessDatabaseEngine_x64.exe or any 64-bit MS Office Apps are already installed, then AccessDatabaseEngine.exe must be installed via the command line with the "/passive" argument (ex: AccessDatabaseEngine.exe /passive).

                                  2) Create DSN via CF Admin and ignore this error: "Unable to update the NT registry. Variable DRIVERPATH is undefined."

                                  3) Register a "System DSN" using same name as in Step 2, via 32-bit C:\Windows\SysWOW64\odbcad32.exe, and choose this driver: "Microsoft Access Driver (*.mdb, *.accdb)"

                                   

                                  Thanks,

                                  -Aaron

                                  • 54. Re: accdb with CF9 under Win2008 R2 64bit
                                    drdagwood Level 1

                                    Aaron,

                                        I followed your instructions above however I don't see the MDB db driver (at least that's what I named it when I created it in the SysWOW64)  so how do I make the "MDB" driver show in my CF Administrator DSN dropdown?

                                     

                                     

                                    Connection verification failed for data source: MBD

                                    java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error: Data source name not found and no default driver specified

                                    The root cause was that: java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error: Data source name not found and no default driver specified

                                     

                                    Thanks,

                                    Daren

                                    • 55. Re: accdb with CF9 under Win2008 R2 64bit
                                      itisdesign Most Valuable Participant

                                      Hi Daren,

                                       

                                      Step 2 was: 'Register a "System DSN"' (not "User DSN").  And that drop down on "CF Admin > Data sources" displays drivers, not data sources.  Here are the steps to correct the MSAccess/x64CF issue:

                                       

                                      1) Open C:\Windows\SysWOW64\odbcad32.exe

                                      2) Click the "User DSN" tab

                                      3) Select your data source (which you've named "MDB") and click "Remove"

                                      4) Click the "System DSN" tab

                                      5) Important: If your "MDB" data source exists here as well, then select it and click "Remove"

                                      6) While still on the "System DSN" tab, add the "MDB" data source

                                       

                                      Basically, your data source must be deleted from SysWOW64's odbcad32.exe on both the User DSN tab and the System DSN tab.  THEN, once it doesn't exist on either tab, it can be added on the System DSN tab.

                                       

                                      Thanks,

                                      -Aaron

                                      • 56. Re: accdb with CF9 under Win2008 R2 64bit
                                        drdagwood Level 1

                                        Aaron,

                                            I'm still having an issue...apparently I'm not smarter than the equipment I'm using. Here's what I did:

                                         

                                        1. I opened the C:\Windows\SysWOW64\odbcad32.exe and removed my old DSN under the "User DSN" tab
                                        2. Opened hte "System DSN"
                                        3. DSN = MBD
                                        4. System Database I selected "Database“ and mapped it to my MBD.mdb database
                                        5. Opened CF Administrator
                                        6. Under "Ädd New Data Source" I typed MDB
                                        7. Under "Driver" selected "MS Access"
                                        8. Clicked "Add"
                                        9. In "Database File" I mapped to my MBD.mdb (still receive error) and received the following error: (Connection verification failed for data source: MBD
                                          java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][SequeLink Server]Unable to retrieve error message from backend ODBC Driver.
                                          The root cause was that: java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][SequeLink Server]Unable to retrieve error message from backend ODBC Driver.)

                                         

                                        9a. In "System Database File" I mapped to my MBD.mdb (still receive error) and received the same error.

                                        When I go to my CF pages that pull data from the database I receive the following error: [Macromedia][SequeLink JDBC Driver][SequeLink Server]Unable to retrieve error message from backend ODBC Driver.

                                         

                                        Any idea what I’m doing wrong?

                                        • 57. Re: accdb with CF9 under Win2008 R2 64bit
                                          fede_ctfd Level 1

                                          Sorry to bring up this very old thread, but I'm experiencing lots of issues with (I believe) Access Unicode driver.
                                          I've a very old server (windows server 2003) I'm trying to migrate to a new machine (windows server 2012 + iis8.5)

                                          but since some months, data source access works intermittently on the "old" server,

                                          and -oddly enough-, now that I'm setting up the new server, the same issue shows there too!


                                          *intermittently*  >> works "fine" for a few days, than hangs for a full day/ a day and a half

                                          when it works, queries run very slow,

                                          and when it does not work, loading pages hangs browser for ages remaining full blank, sometimes ignoring (?) timeout settings too.


                                          Access data sources in coldfusion fail to update, and sometimes I have to restart the server to load the Data Sources page after "saving" (and modification was not saved).


                                          After making all sort of experiments (...),

                                          and I've come to strongly suspect the access driver is failing somewhat/somewhere,

                                          So I've run into this thread, and tried BKBK suggestion above with the HXTT driver trial version.
                                          It gives me errors - times out (instantly) on "linked" tables on another database,

                                          Importing those tables, gives me odd errors with syntax (which had been working just fine so far with the unicode driver).

                                           

                                          But the quickness of error responses is so encouraging I'm wishing to understand what might be wrong,
                                          and if I could tweak something to use this driver with success.


                                          I see this solution worked flawlessly here in at least two cases - but it was a different CF version,

                                          so perhaps something, somewhere has changed?
                                          Should I make some modification to make this work on my environment?

                                           

                                          Thank you very much for any input you may give

                                          (and yes, I'm already planning on switching to other databases,

                                          but I now need a quick "patch" solution to have at least one working server

                                          and give me time to perform this task with calm)

                                          • 58. Re: accdb with CF9 under Win2008 R2 64bit
                                            terribleted Level 1

                                            Didi is right on target.  I followed dozens of threads, this summer, to solve MS Access issues with ColdFusion and MS Server. Our old install of MX7 on Sever 2008 worked well with the SysWow64 workaround for ODBC drivers. But, our new 64bit versions of CF Server 2016 and MS Server 2016 would not cooperate.

                                             

                                             

                                            I tried older JDBC suggestions and the Ucanaccess JDBC driver setup with failed results.  Using the HXTT suggestions by Didi and HTXX support, I have successfully gotten my MS Access data files to work.

                                             

                                             

                                            Why bother with MS Access?  The multiple threads on just Adobe Forum show a significant number of us needing to use MS Access for a wide range of reasons.  My case,  old dude struggling with SQL conversion and need to get site updated with new software.

                                             


                                            Note: this thread contains several HXTT Support suggestions for tweaking a setup. 

                                            • 59. Re: accdb with CF9 under Win2008 R2 64bit
                                              BKBK Adobe Community Professional & MVP

                                              fede_ctfd  wrote

                                               

                                              Sorry to bring up this very old thread, ...

                                               

                                              @fede_ctfd,

                                              You should indeed start a new thread. Five years is a long time in software development. Some of the stuff in this thread may be outdated.

                                              • 60. Re: accdb with CF9 under Win2008 R2 64bit
                                                fede_ctfd Level 1

                                                I agree, not sure about best practice in this community since I'm rarely active here, sorry

                                                 

                                                Just as a followup: thanks to HXTT fantastic support I was able to use their powerful driver, issues were mainly due to a particularly "sloppy" syntax used in database queries, the driver was a bit less forgiving, and due to a couple limitations in the "demo" version of the driver. I since purchased the driver and optimized the code, it was a beneficial job for the whole system, needless to say.


                                                Anyway, for any other experiencing same issues with access drivers, like unexplicable connection loss and very very long response times, plus server slowdowns... doublecheck you are not under Dos/DDos attack

                                                I'm happy having found this thread and purchasing the (very fast and solid) HXTT driver,

                                                but in the end it turned out our issue was not with the old driver,

                                                since our problem persisted even after the change, and we finally found out we were under attack...
                                                banning those IPs completely revived our server performances.

                                                (found this out by checking Coldfusion logs, and seeing frequent and continuative access by same IPs in unusual times of day, and doublechecking who those IPs belonged to through online services)

                                                 

                                                Hope it can help someone else out there struggling same way we did

                                                1 2 Previous Next