|  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
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: bsdports at wayfair dot com
New email:
PHP Version: OS:


 [2011-10-24 16:19 UTC] bsdports at wayfair dot com
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");


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

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-15 23:16 UTC]
-Status: Open +Status: Wont fix
 [2016-10-15 23:16 UTC]
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-2020 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 02:01:23 2020 UTC