Sign in to follow this  
Followers 0
LOULOU

DSNLESS AND DB DATABASE

6 posts in this topic

Who can help me to open a dsnless database and after querying with com object I don't arrive

Thanks

Share this post


Link to post
Share on other sites



What type of database are you trying to open?

SQL

MYSQL

Access

???


Share this post


Link to post
Share on other sites

I want konws access too.

Share this post


Link to post
Share on other sites
:P huh?

Share this post


Link to post
Share on other sites

The following is an example of connecting and communicating with an access database:

$adoCon = ObjCreate("ADODB.Connection")
$adoCon.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=test.mdb;")
$adoRS = ObjCreate("ADODB.Recordset")
$adoRS.CursorType = 2
$adoRS.LockType = 3
$adoRS.Open("SELECT * FROM tblData", $adoCon)
$adoRS.AddNew
$adoRS.Fields("fldData").Value = 'your value here'
$adoRS.Fields("fldInfo").Value = 'your value here'
$adoRS.Update
$adoRS.Close
$adoCon.Close

It writes data to 'fldData' and fldInfo' in the table 'tblData'

You can find tons of examples of this type by just searching the forum :P

***Note this uses the latest beta***


We have enough youth. How about a fountain of SMART?

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