-
ADO
What is the connectionstring to access MS ACCESS 97 database through ADO if
databse is protected with password.
-
Re: ADO
Here is an Example:
strConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;" & _
"Persist Security Info=False;" & _
"Data Source = " & strDataBase & _
"User ID = " & strUserId & _
"Password = " & strPassword
or you can Open the Database like this:
strConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;" & _
"Persist Security Info=False;" & _
"Data Source = " & strDataBase
cnnConection.open strConnectionString, strUser, strPassword
i will use the second.
"Irfan" <s_irfanuddin@usa.net> wrote:
>
>What is the connectionstring to access MS ACCESS 97 database through ADO
if
>databse is protected with password.
>
>
-
Re: ADO
Don't forget that you must specify the Workgroup Information File also. An
example is given here
http://www.able-consulting.com/ADO_C...orMicrosoftJet
--
Andrew Grillage
http://vbdata.iwarp.com
"poloart" <poloart@hotmail.com> wrote in message
news:38ef81dc$1@news.devx.com...
>
> Here is an Example:
>
> strConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;" & _
> "Persist Security Info=False;" & _
> "Data Source = " & strDataBase & _
> "User ID = " & strUserId & _
> "Password = " & strPassword
>
> or you can Open the Database like this:
>
> strConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;" & _
> "Persist Security Info=False;" & _
> "Data Source = " & strDataBase
>
> cnnConection.open strConnectionString, strUser, strPassword
>
> i will use the second.
>
> "Irfan" <s_irfanuddin@usa.net> wrote:
> >
> >What is the connectionstring to access MS ACCESS 97 database through ADO
> if
> >databse is protected with password.
> >
> >
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks