Jump to content
Sign in to follow this  
TNguyen

[Help] Connect MS Access 2003 Security

Recommended Posts

TNguyen

How to connect MS Access 2003 when Persist Security Info=True; ?

This my code:

#cs

db name: db.mdb

UID: Admin

Pass: 123456

#ce

$dbName="db.mdb"

$adoConn = ObjCreate("ADODB.Connection")

$adoConn("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & $dbName & "; Persist Security Info=True; User ID=Admin; Password=123456;")

$sql_insert = "insert into info(firstName,lastName) values('Nguyen','Hoang Tu')"

$adoConn.Execute($sql_insert)

$adoConn.Close

Exit

Thanks!

Download Attachment

Connect_MSAccess2003.zip

Edited by TNguyen

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.