我用VB打开带密码的mdb数据库时,用了下面这语句:conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=test.mdb;Persist Security Info=False;Jet OLEDB:DataBase Password='aaaaaa'"
属性里面的Persist Security Info=False是什么意思?请大家指教,谢谢

解决方案 »

  1.   

    Keep Persist Security Info as False
    Setting Persist Security Info to true or yes will allow security-sensitive information, including the userid and password, to be obtained from the connection after the connection has been opened. If you are supplying a userid and password when making a connection, you are most protected if that information is used to open the connection, and then discarded. As a result, your option that helps to provide greater security is to set Persist Security Info to false or no.This is especially important if you are supplying an open connection to an untrusted source or persisting connection information to disk. Keeping Persist Security Info as false helps ensure that the untrusted source does not have access to the security-sensitive information for your connection and also helps ensure that no security-sensitive information is persisted to disk with your connection string information.Persist Security Info is false by default.
      

  2.   

    当一个连接打开的时候, 设置为true和false试试
    debug.print conn.Properties.Item("password").Value 另:在access中,他永远为false。
      

  3.   

    persist security info 默认为false  是否在将机密信息作为连接字符串的一部分返回
      

  4.   

    http://expert.csdn.net/Expert/topic/2930/2930660.xml?temp=.423382Persist Security Info 布尔类型,为True时,表明采用集成安全机制;若为False,则表明不采用集成安全机制。