stuff >
>mssql_select_db($dbname);
>
>worked perfectly. Again, Thanks!
>
>- Robert
>
>-Original Message-
>From: Beau Lebens [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 07, 2001 11:46 PM
>To: 'Robert D. Young'; '[EMAIL PROTECTED]'
>Subj
fectly. Again, Thanks!
>
>- Robert
>
>-Original Message-
>From: Beau Lebens [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 07, 2001 11:46 PM
>To: 'Robert D. Young'; '[EMAIL PROTECTED]'
>Subject: RE: [PHP-DB] MSSQL: Spaces in database name
sible)
-Original Message-
From: Graeme Merrall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 8:19 PM
To: Robert D. Young
Cc: 'Beau Lebens'; '[EMAIL PROTECTED]'
Subject: RE: [PHP-DB] MSSQL: Spaces in database name
Quoting "Robert D. Young" <[EM
Quoting "Robert D. Young" <[EMAIL PROTECTED]>:
> That did it! Using:
>
> <... stuff >
> $dbname = "[Test Database]";
> <... more stuff >
> mssql_select_db($dbname);
>
> worked perfectly. Again, Thanks!
This is standard Microsoft (and maybe ODBC?) syntax. Using square brackets will
work on mo
7;Robert D. Young'; '[EMAIL PROTECTED]'
Subject: RE: [PHP-DB] MSSQL: Spaces in database name
i noticed in teh sql of working with some apps that it does things like
[Test Database].fieldname
that might work :)
HTH
Beau
// -Original Message-
// From: Robert D. Young [mailt
ject: [PHP-DB] MSSQL: Spaces in database name
//
//
// How can I get mssql_select_db to accept a database name with
// spaces in it?
// For example, this:
//
// <... stuff >
// $dbname = "Test Database";
// <... more stuff >
// mssql_select_db($dbname);
//
// doesn'
How can I get mssql_select_db to accept a database name with spaces in it?
For example, this:
<... stuff >
$dbname = "Test Database";
<... more stuff >
mssql_select_db($dbname);
doesn't work. But if I change to a database with no space in the name (like
"Test_Database") it works fine. Other app