|
|
|
 |
Find out what's happening in TempDB database |
|
Permalink
|
This script shows you what's happening behind the scenes of TempDB system database.
It priovides the following information:
Database Name, SQL Statement, Start_OffSet, Execution Count, Total Physical Reads, Total Logical Writes, etc.
Very helpful when troubleshooting queries
|
|
RATING:
|
|
|
|
 |
Get the details of all your databases (DB Report) |
|
Permalink
|
There are times when you would want to know how your databases are configured and setup across various drives. Imagine if you are having to rebuild the servers and you are restoring a file backup of all SQL Server data/log files and if you don't know where each of the data or log files were residing then that could cause the databases to go into suspect mode or will not start the database. In situations like that, it's always a good idea to generate a report of your database configuration and store it in a safe place should the server crash and you have to rebuild SQL Server from the backup files.
SQL_DBReport script allows you to view filegroup related information for any or all databases.
It returns the following information:
1) Database Name
2) Logical names of all the files (Data & Log (mdf, ldf & ndf))
3) Size of each files in mega bytes (MB)
4) Drive letter on which each of the files are residing
5) Type of file/filegroup (Primary, Secondary, Log, etc)
6) Location (full path) of each of those files
Syntax: SQL_DBReport <@DatabaseName>
Example: To view DB report for a specific database (ex: OpsDB database)
Exec SQL_DBReport 'OpsDB'
Example: To view DB report for all the databases residing on the local SQL Server
Exec SQL_DBReport '*'
Example: To obtain help
Exec SQL_DBReport 'HELP'
|
|
RATING:
|
|
|
|
|
|
 |
Script to find out wheather you must Defrag or Reindex |
|
Permalink
|
There are times when you will need to find out if you should simply defrag an index or rebuild an index.This script will help you make the right decision based on the volume of data fragmentation for your tables. This script allows you to obtain fragmentation information from tables and indexes of your local SQL Server.'
It also provides you with recommendation based on the amount of fragmentation detected in tables/indexes. It also has a feature that lets you generate a script for rebuilding or re-organizing all the indexes.
This script has been used for many properties across Microsoft and has been extremely helpful. Give it a try today...
This script allows you to quickly get the facts on how much percentage of fragmentation you have in tables/indexes for a single database or for all the databases. This tool even takes away the pain of reading the cryptic values returned by DMV's to identify the amount of fragmentation you have on your SQL Server system. Not just that but it even tells you what action you can take to fix the problem.
|
|
RATING:
|
|
|