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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
18 - 7 = ?
Subscribe to this entry?

 
 [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)

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 02:01:29 2024 UTC