PHP 4.0 Bug #9196: Cannot create ADO objects with MDAC 2.6

From: Date: Fri, 09 Feb 2001 18:45:11 +0000
Subject: PHP 4.0 Bug #9196: Cannot create ADO objects with MDAC 2.6
Groups: php.dev 
Request: Send a blank email to php-dev+get-46102@lists.php.net to get a copy of this message
From: peter.johnson@unified.co.uk Operating system: Win2K Winnt4 PHP version: 4.0.4pl1 PHP Bug Type: COM related Bug description: Cannot create ADO objects with MDAC 2.6 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; ?> -- Edit Bug report at: http://bugs.php.net/?id=9196&edit=1

« previous php.dev (#46102) next »