Wednesday, October 26, 2011

Di tulisan tetang Koneksi data dengan Adodc , Kita gunakan provider Microsoft.ACE.OLEDB.12.0, provider ini untuk akses database office 2007. Untuk versi 2003 kebawa sering menggunakan Jet 4.0

contoh - contoh penggunaan Jet 4.0:

  • Untuk Ascess 2003



Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\undi.mdb;Persist Security Info=False"


  • Untuk akses file excel 2003


Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=c:\somepath\ExcelFile.xls;" & _
"Extended Properties=""Excel 8.0;HDR=Yes;"";"


  • Untuk database Paradox


 
cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=c:\somepath;" & _
"Extended Properties=Paradox 5.x;"

sumber : http://support.microsoft.com/kb/326548
Categories:

0 comments:

Post a Comment