none
Could not find installable ISAM

    Question

  • Hi,

    I have a problem with accessing a database after i gave it a password.

    I used this code for the password part:

     

     conmasini.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & My.Application.Info.DirectoryPath & "\Data\masini.accdb;Mode=Share Deny Read|Share Deny Write;"
     
     Dim str As String
     str = "ALTER DATABASE PASSWORD '" & pass & "' NULL ;"
     Dim cmd As New OleDbCommand(str, conmasini)
    
     
    After a restart of the frogram, to open the datapase i use
    
    MasiniConnection.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & My.Application.Info.DirectoryPath & "\Data\masini.accdb;ACE OLEDB:Database Password= " & My.Settings.DBPass & ";"
     
    
    What am i doing wrong?
    

     I've skipped all the cmd.executenonquery and connection.close


    You help and you get helped, that's karma.


    Monday, May 30, 2011 11:50 AM

Answers

All replies