php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60124 Allow for Custom Application name in MSSQL connection
Submitted: 2011-10-24 16:19 UTC Modified: 2016-10-15 23:16 UTC
Votes:16
Avg. Score:4.5 ± 0.7
Reproduced:16 of 16 (100.0%)
Same Version:8 (50.0%)
Same OS:8 (50.0%)
From: bsdports at wayfair dot com Assigned:
Status: Wont fix Package: MSSQL related
PHP Version: 5.3.8 OS: FreeBSD (should work on any)
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: bsdports at wayfair dot com
New email:
PHP Version: OS:

 

 [2011-10-24 16:19 UTC] bsdports at wayfair dot com
Description:
------------
MSSQL (and FreeTDS) has the notion of Application Name on for the connection.
In the php5 mssql module it hard codes that to 'PHP 5'. Ideally this would be a user configurable setting. When multiple PHP applications are connecting to the same MSSQL database it makes it much easier to distinguish between connections by this Application Name.

Expected result:
----------------
By Applying this patch it allows the user to set an application for the connection and it is visible in the MSSQL profiler and other tools.

//Example Use:
$dbhandle = mssql_pconnect($server_name, $user, $password, $new_link, "My PHP App");



Patches

appname_mssql_php (last revision 2011-10-24 17:20 UTC by bsdports at wayfair dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-15 23:16 UTC] kalle@php.net
-Status: Open +Status: Wont fix
 [2016-10-15 23:16 UTC] kalle@php.net
With MSSQL being removed from PHP as of PHP7.0, and ext/mssql not having a maintainer, I'm gonna close this report as a Won't fix, until maybe one day it will find a new maintainer.

Alternatively you can use sqlsrv from Microsoft if you are on Windows, or pdo_dblib if you are on Unix.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Apr 28 14:01:33 2025 UTC