|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-02-10 12:55 UTC] peter dot johnson at unified dot co dot uk
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 12:00:01 2025 UTC |
The code snippet below fails on the line which sets the Active Connection of the Command Object. It works OK with MDAC 2.5 SP1, but not MDAC 2.6 - weird... <? require "adovbs.php"; $conGFA = new COM("ADODB.Connection") or die("Unable to instantiate GFA DB Connection"); $conGFA -> ConnectionString = "Provider=SQLOLEDB;OLE DB Services=0;Persist Security Info=False;User ID=UserID;Password=Password;Initial Catalog=gfa;Data Source=DBSERVER;"; $conGFA -> Open; $cmdGFA = new COM("ADODB.Command") or die("Unable to instantiate GFA DB Command Object"); $cmdGFA -> ActiveConnection = $conGFA -> ConnectionString; ?>