Attempt to locate entry in Sysdatabases for database '%.*s' by name failedľno entry found under that name. Make sure that name is entered properly.
This error occurs when attempting to use (with the USE statement) a database that does not exist or when the default database set up for a login does not exist. In the latter case, the user login then attempts to access the master database.
You may want to obtain a list of databases by using the sp_helpdb system stored procedure, or by issuing the following command:
SELECT name from master..sysdatabases
The list returned will contain the databases that exist on the SQL Server. You must create a missing database or connect to an existing one. You might also need to use the sp_defaultdb system stored procedure to correct login-level errors.