php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24032 Impossible to access databases whose name contains a "-"
Submitted: 2003-06-05 02:21 UTC Modified: 2003-06-05 07:43 UTC
From: baloo at cinemasie dot com Assigned:
Status: Not a bug Package: MSSQL related
PHP Version: 4.3.2 OS: Windows 2000 Server
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: baloo at cinemasie dot com
New email:
PHP Version: OS:

 

 [2003-06-05 02:21 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-05 02:28 UTC] derick@php.net
Provide the shortest possible script that reproduces it.
 [2003-06-05 02:59 UTC] baloo at cinemasie dot com
$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")
 [2003-06-05 07:43 UTC] sniper@php.net
From bug #15338:

"If your database name contains '-' or ' ' you can select the database
like this:

mssql_select_db("[my database]");

or 

mssql_select_db("[my-database]");

That works fine.
"

Search bug database BEFORE you submit any reports. Thank you.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC