Default SQL 2005 Management Reports

For those of you that are using the new SQL Server 2005 you should be using the Microsoft SQL Server Management Studio.  If you go ahead and select a database from Object Explorer, the report button should be highlighted.  From there you can run reports like “Server Dashboard”, “Configuration Changes History” and other performance and activity reports.

Go ahead and open up Management Studio, select your default database, “Report” should be highlighted.  Now click “Server Dashboard”.

HA!  Chances are that you got the following error “sql_handle” is not a recognized table hints option. If it is intended as a parameter to a table-valued function, ensure that your database compatibiity mode is set to 90.

If you believe the error, then you may think that is has something to do with a “sql_handle” or your compatiblity mode.  Don’t worry, it has nothing to do with either.

The problem is with your default database.  Chances are that it is set to “Master”.  You need to set it to a different database that you have created.  Why?  I don’t know.  It may create some temporary tables or run a procedure or function that you can only run from a user created database.  You should never change anything in the Master database yourself.

To change a user’s default database, you need to select and expand the Database in SQL Management Studio.  Then expand the “Security” folder.  Then right-click on the user and go to properties.  Then right on the user’s “Login Properties” window you should see “Default database:”.  Click on the dropdown box and select a database that the user has access to.  Now when you run the reports they should now work.

0 thoughts on “Default SQL 2005 Management Reports”

  1. Your master database in stuck in 70 or 80 compatibilty mode (most likely because the server was upgraded to SQL 2005 in-place from one of those earlier versions). Run this, and you won’t need to change your login’s default database:

    EXEC sp_dbcmptlevel ‘master’, 90

  2. Thank you very much. You just saved my weekend with the sql_handle error. Had no idea about what to do.

    Thanks again!!!

Leave a Reply

Your email address will not be published. Required fields are marked *


9 − = one

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>