Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open Access Database with password in VFP
Message
De
15/11/2001 08:50:16
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00581981
Message ID:
00581995
Vues:
14
>Does anybody have experience of opening a passworded Access database in VFP to allow my application to import the data? Any feedback much appreciated.

Check faq#8039

This is extracted from there :
lcMDBDir = < DirectoryOfMDB >
lcMDBName = < FileNameOfMDB >
lnConnHandle = SQLSTRINGCONNECT('DSN=MS Access Database;DBQ='+;
  lcMDBDir+'\'+lcMDBName+';DefaultDir='+;
  lcMDBDir+';FIL=MS Access;UID=< userid >;PWD=< password >;')
  
? lnConnHandle
  lcSQL = 'select * from < TableName >'
  SQLEXEC(lnConnHandle,lcSQL,'myCursor')
	SQLDISCONNECT(lnConnHandle)
  Select myCursor
  brow
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform