#5682 [Opn->Csd]: Allow connection string in place of DSN for ODBC connections

From: Date: Sat, 10 Aug 2002 14:24:42 +0000
Subject: #5682 [Opn->Csd]: Allow connection string in place of DSN for ODBC connections
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16442@lists.php.net to get a copy of this message
ID: 5682 Updated by: kalowsky@php.net Reported By: mathias98@aol.com -Status: Open +Status: Closed Bug Type: Feature/Change Request Operating System: Win NT 4.0 / 2000 PHP Version: 4.0.1pl2 New Comment: Thats dependent upon your driver really. Some drivers allow this, some don't. Previous Comments: ------------------------------------------------------------------------ [2000-07-19 20:51:43] mathias98@aol.com In order to faciliate easier connections to a Microsoft Access DB why not allow ODBC connections to use a connection string rather than a DSN? Trying to create DSNs for each Access DB when you have a lot of dynamically generated ones is a pain, and if you could do something like: odbc_connectionstring_pconnect( "uid=myname;pwd=mypw;driver={MSAccess};server=myserver;database=pubs;dsn=''" ); that would be great. It would also allow for PHP to connect to different types of servers on the fly without any prior knowledge of the server existing (and having a DSN) before. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=5682&edit=1

« previous php.bugs (#16442) next »