Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting to Access Database
Message
From
06/05/2003 07:52:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00785246
Message ID:
00785266
Views:
42
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform