2006/04/18 | Delphi 连接 DBF
类别(语言类学习笔记) | 评论(0) | 阅读(480) | 发表于 16:04
sVfpStr1 ='Provider=MSDASQL.1;Persist Security Info=False;Extended Properties="Driver={Microsoft Visual FoxPro Driver};'
+'UID=;SourceDB=%S;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;"';

sVfpStr2 ='Provider=MSDASQL.1;Extended Properties="Driver={Microsoft Visual Foxpro Driver};SourceType=DBF;SourceDB=%S;"';

sVfpStr3 = 'Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=.;Mode=Share Deny None;Extended Properties=dBASE 5.0;Jet OLEDB:System database=""; '+
'Jet OLEDB:Registry Path="";Jet OLEDB:Database Password="";Jet OLEDB:Engine Type=18;Jet OLEDB:Database Locking Mode=0;Jet OLEDB:Global Partial Bulk Ops=2;'+//Jet OLEDB:Don't Copy Locale on Compact=False
'Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password="";Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False';

sVfpStr4= 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source="%s";Extended Properties=dbase 5.0;';
0

评论Comments