10 things you CAN NOT do in SQL Server.


There are few things you cannot do in SQL server. Surprised?? Try some of following points. Please add your comments to the blog after trying.

  1. You cannot add data and log files in master and model database.
  2. You cannot add User Defined File Groups in master, model and tempdb database.
  3. You cannot change the recovery model of tempdb database.
  4. You cannot take transaction log backups of master database even if the recovery model of master database is changed to Full.
  5. You cannot take any backup of tempdb database.
  6. You cannot rename any system database.
  7. You cannot allocate Transaction log files under File Groups
  8. You cannot change the file group of a file once it is set.
  9. You cannot create a new database if model database is in use
  10. You cannot change the owner of master, model, tempdb or distribution databas

Why we can't execute a stored procedure from a User Defined function(UDF)

Functions cannot "touch" any database but read them only. Stored procedures can do anything and everything with databases. You ...