|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-11 09:57 UTC] sniper@php.net
[2003-02-11 15:36 UTC] webber123456 at hotmail dot com
[2003-02-11 15:39 UTC] sniper@php.net
[2003-02-11 16:21 UTC] webber123456 at hotmail dot com
[2003-02-20 05:34 UTC] phanto@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 13:00:01 2025 UTC |
creating a disconnected recordset with access_db/ADO/COM does not work /////////////////////////////////////////////////// # to disconnect a recordset it must be created explicitly $DB_RS = new COM("ADODB.Connection") or die("Cannot start ADO"); $DB_RS->Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath($DB_Path)); $rstemp= new COM("ADODB.Recordset") or die("Cannot create Recordset");; $rstemp->cursorlocation=3; $rstemp->ActiveConnection = $DB_RS; $rstemp->Open ($SQL,$DB_RS,2,1,0) ; # this line below disconnects the recordset $rstemp->ActiveConnection=null; /////////////////////////////////////////////////// error from this line $rstemp->ActiveConnection = $DB_RS;