Warning: mssql_connect() [function.mssql-connect]: message: Cannot open user default database. Using master database instead. (severity 11) in E:\MPS\staffweb\MPS\StaffWeb\include.php on line 4

Warning: mssql_select_db() [function.mssql-select-db]: message: Database 'DbMps' cannot be opened because it is offline. (severity 14) in E:\MPS\staffweb\MPS\StaffWeb\include.php on line 5

Warning: mssql_select_db() [function.mssql-select-db]: Unable to select database: DbMps in E:\MPS\staffweb\MPS\StaffWeb\include.php on line 5

Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'tblStaffWeb'. (severity 16) in E:\MPS\staffweb\MPS\index.php on line 27

Warning: mssql_query() [function.mssql-query]: message: Database 'DbMpsUser' cannot be opened because it is offline. (severity 14) in E:\MPS\staffweb\MPS\index.php on line 27

Warning: mssql_query() [function.mssql-query]: Query failed in E:\MPS\staffweb\MPS\index.php on line 27
Query failed:
SELECT DISTINCT
	sw.*, 
	u.FirstName, 
	u.LastName,
	s.intSchoolID,
	s.strName
FROM
	tblStaffWeb sw LEFT JOIN 
	dbMPSUser..vwEmployee u ON sw.strUsername=u.UserName LEFT JOIN
	TblSchools s ON u.BaseLoc = s.intSchoolID
WHERE
	u.Status='A'ORDER BY
	u.LastName, 
	u.FirstName,
	s.strName