#28192 [Opn->Bgs]: mssql_select_db() 30 chars

From: Date: Tue, 27 Apr 2004 22:11:14 +0000
Subject: #28192 [Opn->Bgs]: mssql_select_db() 30 chars
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58905@lists.php.net to get a copy of this message
ID: 28192 Updated by: fmk@php.net Reported By: docv00d00 at hotmail dot com -Status: Open +Status: Bogus Bug Type: MSSQL related Operating System: windows 2003 PHP Version: 4.3.6 New Comment: This is a limitation in the library (from Microsoft) that is used for the php extension. Microsoft has not updated the library since SQL Server 6.x where column, table and database names was limited to 30 chars. Previous Comments: ------------------------------------------------------------------------ [2004-04-27 22:30:34] docv00d00 at hotmail dot com Description: ------------ mssql_select_db() doesnt let you select a database thats longer than 30 characters? Reproduce code: --------------- $Server = "server\\server,1433"; $User = "sa"; $Pass = "password"; $DB = "Thirty_Characters_or_more_db_name_here"; $s = mssql_connect("$Server", "$User", "$Pass"); $d = mssql_select_db("$DB", $s)or die("Couldn't open database $DB"); Expected result: ---------------- unable to select 'Thirty_Characters_or_more_db_na' from sysbase table... Actual result: -------------- same as above ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28192&edit=1

« previous php.bugs (#58905) next »