Sign in to follow this  
Followers 0
TNguyen

[Help] Connect MS Access 2003 Security

1 post in this topic

#1 ·  Posted (edited)

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  
Followers 0