#24032 [Fbk->Opn]: Impossible to access databases whose name contains a "-"

From: Date: Thu, 05 Jun 2003 07:59:14 +0000
Subject: #24032 [Fbk->Opn]: Impossible to access databases whose name contains a "-"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-41237@lists.php.net to get a copy of this message
 ID:               24032
 User updated by:  baloo at cinemasie dot com
 Reported By:      baloo at cinemasie dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         MSSQL related
 Operating System: Windows 2000 Server
 PHP Version:      4.3.2
 New Comment:

$s= @mssql_connect("192.10.2.5", "bmssa", "bmssa_pwd") or die
("Serveur
non joignable");

$d=@mssql_select_db("AxTebubio_30_tests", $s) or die ("Base impossible
à ouvrir");


=> always gives "BASE IMPOSSIBLE A OUVRIR"
("impossible to open the database")


Previous Comments:
------------------------------------------------------------------------

[2003-06-05 02:28:21] derick@php.net

Provide the shortest possible script that reproduces it.

------------------------------------------------------------------------

[2003-06-05 02:21:41] baloo at cinemasie dot com

I have installed PHP on a Windows 2000 Server with IIS 5.0.
I try to access to another server with Sql Server 2000.
Everything works fine, except that I can't open any database whose name
includes a "-" (with the "mssql_select_db" function). 

I thought it could be a problem with SQLServer, but some other
applications don't have any problem with those databases.

PHP is configured to work with ISS with the following parameter:
cgi.force_redirect = 0

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24032&edit=1



Thread (4 messages)

« previous php.bugs (#41237) next »