Tampilkan postingan dengan label Ms Access. Tampilkan semua postingan
Tampilkan postingan dengan label Ms Access. Tampilkan semua postingan
1

Cara Sharing Database Microsoft Access

Yap X Liong Kamis, 06 Januari 2011 ,
Saat ini pemakaian database MS-Access masih terbatas pada penggunaan aplikasi-aplikasi tunggal yang sederhana. Masih belum terpikirkan untuk manggunakannya sebagai database server.

Penggunan MS-Access yang cukup mudah dan sederhana, dibandingkan dengan VB yang lebih banyak membutuhkan penulisan perintah, menjadikannya sebagai pilihan untuk menangani data-data yang relatif kecil, walaupun tidak menutup kemungkinan untuk data yang lebih besar. Permasalahan akan timbul saat data-data yang disimpan ternyata dibutuhkan oleh orang lain. Transfer data secara manual, disamping tidak efisien, aktualitas datanya juga akan menimbulkan permasalahan tersendiri.
Database MS-Access bisa digunakan sebagai database server sehingga bersifat multiuser, tapi sebatas untuk menyimpan data saja atau sering disebut back-end database. Sedangkan obyek-obyek lain seperti form, query, module, macro, dan report disimpan di masing-masing komputer lokal yang disebut sebagai front-end database. Fasilitas ini memungkinkan database MS-Access digunakan oleh lebih dari satu orang pada saat yang sama. Keuntungan lainnya dari penggunaan fasilitas ini adalah meringankan beban jaringan dan server karena yang beredar di jaringan hanyalah datanya saja. Sedangkan proses query dilakukan di komputer lokal. Selain itu dapat menghindari kemungkinan berubahnya struktur tabel, karena database berada dikomputer yang lain.


Memecah Database MS-Access
Ada dua cara memecah database MS-Access menjadi back-end dan front-end database.
0

Ms Access File sharing lock count exceeded

When one or more users process many transactions in a multi-user environment, the transactions may fail with the following error message: File sharing lock count exceeded. Increase MaxLocksPerFile registry entry.

Method 1: Set the registry key to MaxLocksPerFile to increase the maximum number of locks per file

  1. Click Start, and then click Run.
  2. Type regedit, and then click OK.
  3. Use the appropriate method:
    • In Microsoft Access 2000, in Microsoft Access 2002, and in Microsoft Office Access 2003 that are running on a 32-bit Windows operating system, use Registry Editor to locate the following registry key:
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Jet 4.0

      In Microsoft Access 2000, in Microsoft Access 2002, and in Microsoft Office Access 2003 that are running on a 64-bit Windows operating system, use Registry Editor to locate the following registry key:
      HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\Jet 4.0
    • In Microsoft Office Access 2007 that is running on a 32-bit Windows operating system, use Registry Editor to locate the following registry key:
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Access Connectivity Engine\Engines\ACE

      In Microsoft Office Access 2007 that is running on a 64-bit Windows operating system, use Registry Editor to locate the following registry key:
      HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Access Connectivity Engine\Engines\ACE
  4. In the right pane of Registry Editor, double click MaxLocksPerFile.
  5. On the Edit DWORD Value dialog box, click Decimal.
  6. Modify the value of the Value data box as required, and then click OK.
Note This method changes the Windows registry setting for all applications that use the Microsoft Jet database engine version 4.0.

Method 2: Use the SetOption method to temporarily change MaxLocksPerFile

Note The sample code in this article uses Microsoft Data Access Objects. For this code to run correctly, you must reference the Microsoft DAO 3.6 Object Library. To do so, click References on the Tools menu in the Visual Basic Editor, and make sure that the Microsoft DAO 3.6 Object Library check box is selected.

The SetOption method temporarily overrides the default number of locks per file. You set the default number of locks per file when you set the MaxLocksPerFile registry key. You set the new value by using the SetOption method. The new value is valid until you close the DBEngine object. To use Method 2, follow these steps:
  1. Open Microsoft Access.
  2. Open a database, and then press Alt+F11 to launch the Visual Basic editor.
  3. On the Microsoft Visual Basic -<Database Name>-[<Module Name> (Code)] window, click Immediate Window in the View menu.
  4. In Immediate Window, enter the following code.
    DAO.DBEngine.SetOption dbmaxlocksperfile,15000
  5. Press the ENTER key to run the line of code.

    Note This temporarily sets the MaxLocksPerFile value to 15,000.
To process large transactions, set the MaxLocksPerFile value to meet your requirement, and then run the transactions in the session.

Changes you make to the MaxLocksPerFile setting by using the SetOption method are available only for the current session.


Ini pengalaman pribadi saat melakukan import dari file excel ke database Ms Access 2007. :)
 
Copyright 2010 catatan si b4r12y
Flash Blue Blogger template by b4r12y