mt
unread,Apr 15, 2014, 5:30:27 AM4/15/14You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Nemam iskustva s Visual FoxPro bazama pa ako moze pomoc.
- Instalirao sam Microsoft Visual FoxPro Driver v. 6.01.8629.01.
- U ODBC Data Source Administrator u sekciji User DSN
dodao sam Microsoft Visual FoxPro Driver,
odabrao Free Table directory i izabrao mapu s .dbf bazama.
- CodeGearT RAD Studio 2009:
cStr1 := 'Provider=vfpoledb.1;Data Source=C:\temp;Collating
Sequence=general';
cStr2 := 'Provider=MSDASQL.1;Extended Properties=
"Driver={Microsoft Visual FoxPro
Driver};SourceType=DBF;SourceDB=C:\temp"';
ADOConn.ConnectionString := cStr1; // ili cStr2
ADOConn.LoginPrompt := False;
ADOConn.Open;
Otvaranju konekcije prolazi bez problema (i cStr1 i cStr2).
ADOQuery.Connection := ADOConn;
ADOQuery.SQL.Text := 'SELECT * FROM products.dbf';
ADOQuery.Open;
Pri otvaranju baze dolazi do greske:
- za cStr1: Memo file c:\temp\custdata.dct is missing or is invalid
- za cStr2: [Microsoft][ODBC Visual FoxPro Driver]Memo file
c:\temp\custdata.dct is missing or is invalid
Products.dbf je Visual FoxPro 3 baza (ver.48) i nema memo polja.
Custdata.dct ne postoji.
Ako Products.dbf spremim (pomocu DbfView-a) kao dBase III (ver.131)
- preko cStr1: otvara se bez greske
- preko cStr2: Data provider or other service returned an E_FAIL status
Ovo je samo za info, jer opcija konverzije baze ne dolazi u obzir.
Ocito negdje grijesim u pristupu pa ako je netko voljan pomoci.