🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1193

Re: Ado connection

#1193
From: Viatcheslav V. Vassiliev
Date: Wed, 15 Sep 2004 12:52
41 lines
2445 bytes
If you have password on database level, use "Jet OLEDB:Database password"
property without User ID and Password. If you use .mdw file, set its
location in "Jet OLEDB:System database" property.

Do not construct property this way. Build string and assign
ADOQuery->ConnectionString only once.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Chri" <chrip@libero.it> �������/�������� � �������� ���������:
news:4148027c$1@newsgroups.borland.com...
> I tried to open a protected db in this manner:
>
> ADOQuery->ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;";
> ADOQuery->ConnectionString = ADOQuery->ConnectionString
> +"SystemDatabase=MUR.mdw;";
> ADOQuery->ConnectionString = ADOQuery->ConnectionString +
"Password=pippo;";
> ADOQuery->ConnectionString = ADOQuery->ConnectionString + "User
ID=pippo;";
> ADOQuery->ConnectionString = ADOQuery->ConnectionString + "Data
> Source=MUR.mdb;";
> ADOQuery->ConnectionString = ADOQuery->ConnectionString + "Persist
Security
> Info=False;";
>
> I have MUR.mdb and MUR.mdw in the program folder! An error occour at the
run
> time with the message that it doesn't find the information file (i think
> it's .mdw)... I don't know how to do, i've protected my db and i want to
> access it with my password!!!
>
> Thanks, Chri.
>
>
Technical Details
Message-ID: <41483b16$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4148027c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,b70b50efa1f35b98
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4148027c$1@newsgroups.borland.com>
Subject: Re: Ado connection
Date: Wed, 15 Sep 2004 16:52:38 +0400
Lines: 43
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 213.234.218.42
Message-ID: <41483b16$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095252758 213.234.218.42 (15 Sep 2004 05:52:38 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail