Warning: mssql_connect() 'function.mssql-connect' message: Cannot open user default database. Using master database instead. (severity 11) in C:\Inetpub\wwwroot\index1.php Warning: mssql_select_db() 'function.mssql-select-db' message: Could not locate entry in sysdatabases for database 'db1'. No entry found with that name. Make sure that the name is entered correctly. (severity 16) inC:\Inetpub\wwwroot\index1.php Warning: mssql_select_db() 'function.mssql-select-db' message: Unable to select database: [db1] in C:\Inetpub\wwwroot\index1.php Couldn't open database db1 <?php $myServer = "serv\sqlexpress"; $myUser = "serg"; $myPass = "serg"; $myDB = "db1"; $s = mssql_connect($myServer, $myUser, $myPass) or die("Couldn't connect to SQL Server on $myServer"); $d = mssql_select_db('['.$myDB.']', $s) or die("Couldn't open database $myDB"); $q= "select convert(varchar(20), [date], 104) + ' ' + convert(varchar(5), [date], 8), text from soob order by id desc"; $rs= mssql_query($q); while ($line = mssql_fetch_array($rs)) echo "$line[0] $line[1] "; mssql_close ($s); ?> Причем, вначале все работало потом стала вылетать вот такая ошибка After installing PHP it produces always 'PHP has encountered an Access Violation at 7333F15A' а потом вот описаное выше.