Categories
DBA

Readonly database restoration failed

In one of my project I was working on SQL Server 2000 to SQL Server 2008 upgradation. It’s a side by side upgrade so I need to restore the database from SQL Server 2000 to SQL Server 2008, in which some of the databases are readonly. I know I will be able to restore readonly database however in this case when I tried to restore the database in SQL Server 2008 I got the error below

Categories
Scripts

Determine which objects exist in a particular filegroup

This script will help you to determine the objects existence in a filegroup. You can get on which file group does a object exists. Change dbname before using the script.

Categories
Performance Tunning

Moving Index to a separate Filegroup

To improve the query performance we decided to have separate filegroup for indexes. We decided to move the indexes of very large tables indexes to the new filegroup. Our intention was to separate the index from the data i.e. have the table data (Clustered index) in one filegroup and Nonclustered indexes in another separate filegroup to improve I/O.