PDA

View Full Version : ارتباط بین ADO با فایل پاراداکس



شفیعی
شنبه 22 اسفند 1383, 05:07 صبح
سلام
با ADO چطور می توان به فایل DB وصل شد من یک برنامه نوشته و داخل برنامه این کار را انجام می دهم ولی پیغام زیر را می دهد


[MICROSOF] [ODBC PARADOX DRIVER ] COUHD NOT OPEN PARADOX.NET.

شفیعی
یک شنبه 23 اسفند 1383, 03:57 صبح
سلام
دوستان لطفا کمک کنید :گیج:

vcldeveloper
یک شنبه 23 اسفند 1383, 04:54 صبح
شرمنده خودم حال پیدا کردن جواب رو نداشتم:
از کتاب Mastering Delphi 7 :


The Jet engine expects to be used with Access databases. To use it with any database other than Access, you need to tell it which IISAM driver to use. This is a painless process that involves setting the Extended Properties connection string argument in the connection string editor. Let's work through a quick example.

Add an ADOTable component to a form and invoke the connection string editor. Select the Jet 4.0 OLE DB Provider. Select the All page, locate the Extended Properties property, and double-click it to edit its value.

Enter Paradox 7.x in the Property Value, as illustrated in Figure 15.4, and click OK. Now go back to the Connection tab and enter the name of the directory containing the Paradox tables directly, because the Browse button won't help you (it lets you enter a filename, not a folder name). At this point you can select a table in the ADOTable's TableName and open it either at design time or at run time. You are now using Paradox through ADO, as demonstrated by the JetParadox example.