php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #5682 Allow connection string in place of DSN for ODBC connections
Submitted: 2000-07-19 20:51 UTC Modified: 2002-08-10 10:24 UTC
From: mathias98 at aol dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.1pl2 OS: Win NT 4.0 / 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mathias98 at aol dot com
New email:
PHP Version: OS:

 

 [2000-07-19 20:51 UTC] mathias98 at aol dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-10 10:24 UTC] kalowsky@php.net
Thats dependent upon your driver really.  Some drivers allow this, some don't.  
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 19:01:28 2024 UTC