Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connecting to Access Database
Message
De
06/05/2003 07:52:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00785246
Message ID:
00785266
Vues:
27
>Hi Cetin,
> Thanks for the reply. Now i have a problem cause when i used your code the system gave me an error telling me :
>
>OLE IDispatch exception code 0 from Microsoft JET Database Engine: You do not have the necessary permissions to use the 'C:\leaveTranfile.mde' object. Have your system administrator or the person who created this object establish the appropriate permissiion...
>
>How can i supply the ADO Connection with a username and password. Moreover the MDE file is using the file C:\securelog.mdw to information about the database security.
>
>Through ODBC is was simply passing the String :
>
>"...;SystemDB=C:\SecureLog.mdw;UID=leavelog;PWD=leavelogadmin"
>
>How can i obtain the same results using ADO Oledb.
>
>Thanks BeforeHand.

Oh I only kept it short. OLEDB provider also has many more properties :
'...;System database = '+;
'"C:\SecureLog.mdw";User ID=leavelog;Password="leavelogadmin"'

PS: I'm not sure about doublequotes. Try with and w/o them.
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