DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3

Thread: ADO

  1. #1
    Irfan Guest

    ADO


    What is the connectionstring to access MS ACCESS 97 database through ADO if
    databse is protected with password.



  2. #2
    poloart Guest

    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.
    >
    >



  3. #3
    Andrew Grillage Guest

    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.
    > >
    > >

    >




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links