MSDB Database - User Tables

Hi,

I have a 'smart' rebuilding index mechanism based on fragmentation, and for it to work I need to have a control table, but this table isn't specific to any user DB, it should be considered as a system table.

So the question is, is it safe to create user tables on msdb/master without the risk of being swiped away at any moment? Is there any impact on backups?

(should I use msdb/master? or any other?)

Thanks in Advance,

Jos

July 17th, 2015 10:17am

(should I use msdb/master? or any other?)

I would say: Any other. Why not creating a new database as "your System DB" with that table, it's easier to manage?

Lets say you are going to move SQL Server to a new Server, you would install first SQL Server with it's all system database; but would you restore all System DB's of the old Server to the new one, just to get back your control table?

With a separate user database it is an eas

Free Windows Admin Tool Kit Click here and download it now
July 17th, 2015 10:24am

I am not aware about any risk as such when you create a table in master DB. I have seen many systems doing it. Its safer to be on master DB
July 17th, 2015 10:43am

Master database is totally fine for creating control tables, stored procedures.

Also take a look at

https://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html

Free, good flexible solution for index and stats maintenance, and it actually creates all of the executable in Master db :)

Let me know if it helps

Free Windows Admin Tool Kit Click here and download it now
July 21st, 2015 11:15pm

you can use either master or msdb database for creating a table or stored procedure.

It is preferable to use a separate user database. 

July 21st, 2015 11:29pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics