I have suddenly been getting this error message when accessing a database at work
Warning: MS SQL message: Cannot open user default database. Using master database instead. (severity 11) in c:\apache\htdocs\project2\inc\dbase.php.inc on line 5
This problem has only occured since I changed the database name, to which i want to connect. The original dbase.php.inc file is:
<?php
function dbaseConnect(){
$link = mssql_connect("SQLSERVER", "EDWARDP", "EP");
mssql_select_db("PLAY", $link);
return $link;
}
function openBody(){
echo "<body>";
}
function closeBody(){
echo "</body>";
}
?>
The database 'PLAY' is a weekly backup of our main database. I have been using this one to test my webpages. We are wanting to go to the next level of testing, using the proper database, so all i did was change the database name from 'PLAY' to ATVR as so
<?php
function dbaseConnect(){
$link = mssql_connect("SQLSERVER", "EDWARDP", "EP");
mssql_select_db("ATVR", $link);
return $link;
}
function openBody(){
echo "<body>";
}
function closeBody(){
echo "</body>";
}
?>
Since i have done this, i am getting the error message (quoted near top of post) although the site is working as normal
What is the error message telling me? and does anyone have any ideas what can be done??
Regards
Eddie