Results 1 to 2 of 2

Thread: Secured Database

  1. #1

    Thread Starter
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565

    Question

    Can somebody tell me how to connect to a secured Access97 database with ADO please.
    VB6 sp5, SQL Server 2000, C#

    There are no stupid questions. Only stupid people.

  2. #2
    Member
    Join Date
    Aug 2000
    Posts
    60
    This is what your connection string should look like when connecting to a database with the database password set.

    cnQ.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" _
    & "Data Source=" & App.Path & "\MyDbase.mdb;" & _
    "Mode=Read|Write|Share Deny None;" & _
    "Persist Security Info=True;" & _
    "Jet OLEDB:Database Password=MyPassword"

    If you are connecting to a database using Access Workgroup information you'll have to do it on the open event.
    cnQ.Open myConnectionString, myUserName, myPassword
    Barend
    JHB-SA

    Nothing is impossible, except skiing through a revolving door.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width