Log in
::
Register
::
Not logged in
Search:
Home
Articles
Editorials
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Advertise
Write for us
Scripts with tag
Maintenance
Refine your search with one of the following additional tags (with number of items):
T-SQL
(21)
data file management
(4)
sys.dm_os_buffer_descriptors
(2)
Rebuilding indexes
(1)
Administration
(20)
FOR XML PATH
(4)
sys.partitions
(2)
report
(1)
Maintenance and Management
(20)
index
(4)
Troubleshooting
(2)
Running aggregate
(1)
SQL Server 2005
(20)
routine database growth
(4)
Aggregates
(1)
Running Totals
(1)
Utility
(16)
routine growth
(4)
archive
(1)
Security
(1)
Index Management
(11)
sys.allocation_units
(4)
Backup
(1)
Selectivity
(1)
Performance Tuning
(10)
Space Usage
(3)
Backups
(1)
Staging
(1)
Admin
(9)
SQL Server 7, 2000
(3)
Database Roles
(1)
statistics
(1)
Indexes
(9)
Automation
(2)
Defragment
(1)
sys.dm_db_index_usage_stats
(1)
Indexing
(9)
Buffer Cache
(2)
delete
(1)
sys.dm_db_missing_index_details
(1)
T-SQL Aids
(9)
Fragmentation
(2)
Development
(1)
sys.dm_exec_connections
(1)
automated DBA
(7)
Index Usage
(2)
Duplicate Indexes
(1)
sys.dm_exec_cursors
(1)
Storage
(7)
Lock and Connection Management
(2)
growth trend
(1)
sys.dm_tran_session_transactions
(1)
sys.dm_db_partition_stats
(7)
Search
(2)
Index Tuning
(1)
sys.foreign_key_columns
(1)
List Indexes
(5)
sys.dm_exec_query_plan
(2)
Log File Maintenance
(1)
sys.foreign_keys
(1)
pivot
(5)
sys.dm_exec_requests
(2)
Maintenance Plans
(1)
sys.sql_modules
(1)
auto-growth
(4)
sys.dm_exec_sessions
(2)
Management
(1)
xp_cmdshell
(1)
Crosstab
(4)
sys.dm_exec_sql_text
(2)
Missing Indexes
(1)
Search for
any
content tagged
Maintenance
Add a script
Items 1 to 20 of 38
Next 20 >>
Identify Obsolete Indexes
Drop indexes no longer being used.
Read more...
By
RCC-JAXDBA
2009/10/19
|
Source:
SQLServerCentral.com
|
Category:
index
Rating:
|
Discuss
|
Briefcase
|
641 reads
Shrink Log File to Target Percentage
Performs a checkpoint or a transaction log backup followed by a DBCC SHRINKFILE on the transaction log to the target percentage specified relative to the total data file(s) size.
Read more...
By
Tommy Bollhofer
0001/01/01
|
Source:
SQLServerCentral.com
|
Category:
Maintenance
Rating:
|
Discuss
|
Briefcase
|
1,024 reads
Defragmenting and rebuilding indexes
Following code snippet will selectively rebuild indexes that have been thrashed after a big indert
Read more...
By
Cool
2009/08/26
|
Source:
SQLServerCentral.com
|
Category:
Rebuilding indexes
Rating:
|
Discuss
|
Briefcase
|
1,029 reads
Three Sample reports for the Automated DBA: Space Usage SnapShotter
1100 largest indexes by total buffer cache usage; 100 largest tables by total reserved pages; Largest tables in each database with running total of space usage and growth since last snapshot
Read more...
By
Jesse Roberge
2009/07/13
|
Source:
SQLServerCentral.com
|
Category:
Admin
Rating:
(not yet rated)
|
Discuss
|
Briefcase
|
1,157 reads
The Automated DBA: Batch Database File Grower - SQL2000 ReportOnly Ver
Grows all of the data files in a database based on the greater of a fixed minimum free space amount or a dynamic percentage of the size of the largest table in the filegroup.
Read more...
By
Jesse Roberge
2009/06/19
|
Source:
SQLServerCentral.com
|
Category:
T-SQL
Rating:
(not yet rated)
|
Discuss
|
Briefcase
|
349 reads
The Automated DBA: Batch Database File Grower - SQL2005 ReportOnly Ver
Grows all of the data files in a database based on the greater of a fixed minimum free space amount or a dynamic percentage of the size of the largest table in the filegroup.
Read more...
By
Jesse Roberge
2009/06/22
|
Source:
SQLServerCentral.com
|
Category:
T-SQL
Rating:
(not yet rated)
|
Discuss
|
Briefcase
|
516 reads
The Automated DBA: Batch Database File Grower - SQL 2000 Version
Grows all of the data files in a database based on the greater of a fixed minimum free space amount or a dynamic percentage of the size of the largest table in the filegroup.
Read more...
By
Jesse Roberge
2009/06/25
|
Source:
SQLServerCentral.com
|
Category:
T-SQL
Rating:
(not yet rated)
|
Discuss
|
Briefcase
|
337 reads
The Automated DBA: Batch Database File Grower - SQL 2005 Version
Grows all of the data files in a database based on the greater of a fixed minimum free space amount or a dynamic percentage of the size of the largest table in the filegroup.
Read more...
By
Jesse Roberge
2009/06/23
|
Source:
SQLServerCentral.com
|
Category:
T-SQL
Rating:
(not yet rated)
|
Discuss
|
Briefcase
|
556 reads
The Automated DBA: Space Usage Snapshotter Lite (non-sysadmin dbo)
Records snapshots of space usage stats by partition, index, table, schema, filegroup, and database. Stats include Reserved, Used, and Data for row, lob, and overflow.
Read more...
By
Jesse Roberge
2009/06/15
|
Source:
SQLServerCentral.com
|
Category:
Administration
Rating:
(not yet rated)
|
Discuss
|
Briefcase
|
660 reads
The Automated DBA: Space Usage Snapshotter (sysadmin; central DB)
Records snapshots of space usage & buffer cache usage stats by partition, index, table, schema, filegroup, & database. Stats incl Reserved, Used, Data, buffer cache for row, lob, & overflow.
Read more...
By
Jesse Roberge
2009/06/17
|
Source:
SQLServerCentral.com
|
Category:
Administration
Rating:
|
Discuss
|
Briefcase
|
1,083 reads
Automate drive space monitoring for all production servers
Monitoring space in production server is one of the top priority tasks for a DBA. This script will automate it
Read more...
By
Roshan Joe Joseph
2009/06/12
|
Source:
SQLServerCentral.com
|
Category:
Administration
Rating:
|
Discuss
|
Briefcase
|
1,262 reads
Drop user statistics
This procedure drops all manually added statistics (field user_created=1)
Read more...
By
Wilfred van Dijk
2009/06/11
|
Source:
SQLServerCentral.com
|
Category:
Maintenance
Rating:
(not yet rated)
|
Discuss
|
Briefcase
|
254 reads
Custom Maintenance Plans - the T-SQL way
The non-SSIS/GUI method I use to deploy standardized Database Maintenance Plans
Read more...
By
Mark Marinovic
2009/06/08
|
Source:
SQLServerCentral.com
|
Category:
Maintenance
Rating:
|
Discuss
|
Briefcase
|
853 reads
The Ultimate Running Requests Reporter
Reports all running requests along with the request's identifying information (SPID, login etc), current resource consumption, query batch text, statement text, and XML query plan.
Read more...
By
Jesse Roberge
0001/01/01
|
Source:
SQLServerCentral.com
|
Category:
T-SQL
Rating:
|
Discuss
|
Briefcase
|
2,324 reads
The Ultimate Index Width Stats Reporter
Reports index length stats for indexes who's lengths exceeding parametrized thresholds (defaults to 0 - get all) for total length and seek length, optionally filtering schemas and tables.
Read more...
By
Jesse Roberge
2009/01/28
|
Source:
SQLServerCentral.com
|
Category:
T-SQL
Rating:
|
Discuss
|
Briefcase
|
1,113 reads
Deleting old files (with/without archive bit)
A hopefully useful script to delete old files, not just backups, and make use of the archive bit.
Read more...
By
Gaby Abed
2009/01/01
|
Source:
SQLServerCentral.com
|
Category:
archive
Rating:
|
Discuss
|
Briefcase
|
805 reads
2008 Index Fragmentation Maintenance
Just a stab at automating index maintainenance in SQL Server 2008
Read more...
By
Grant Fritchey
2008/12/09
|
Source:
SQLServerCentral.com
|
Category:
Fragmentation
Rating:
|
Discuss
|
Briefcase
|
1,205 reads
Reindex all indexes online or offline depending on day of week.
This script will reindex (online) any index eligible to be reindexed online. Accepts a day of week parameter for full offline reindexing.
Read more...
By
Kenneth Singer
2008/11/12
|
Source:
SQLServerCentral.com
|
Category:
SQL Server 2005
Rating:
(not yet rated)
|
Discuss
|
Briefcase
|
2,244 reads
The Ultimate Connection Summarizer and Trouble Finder
Reports summaries, in 3 levels of detail, connections, running requests, open transactions + cursors, and blocking. Provides query text + plan for the piggiest running request of each group.
Read more...
By
Jesse Roberge
0001/01/01
|
Source:
SQLServerCentral.com
|
Category:
Lock and Connection Management
Rating:
|
Discuss
|
Briefcase
|
4,374 reads
Compare SQL code of 2 objects.
Compare SQL code of sp, functions, or triggers. Can run across DB and/or servers. Generates report similar to windif. See details in comments
Read more...
By
llt
2008/10/31
|
Source:
SQLServerCentral.com
|
Category:
Maintenance
Rating:
(not yet rated)
|
Discuss
|
Briefcase
|
764 reads
Items 1 to 20 of 38
Next 20 >>
Most popular
The Ultimate Missing Index Finder
Reports stats on what the query optimizer records in the DMVs as missing indexes and what it says the cost savings will be if they were present. Can limit by table / schema name patterns.
Read more...
By
Jesse Roberge
2008/10/06
|
Source:
SQLServerCentral.com
|
Category:
Index Management
Rating:
|
Discuss
|
Briefcase
|
10,649 reads
The Ultimate Running Requests Reporter
Reports all running requests along with the request's identifying information (SPID, login etc), current resource consumption, query batch text, statement text, and XML query plan.
Read more...
By
Jesse Roberge
0001/01/01
|
Source:
SQLServerCentral.com
|
Category:
T-SQL
Rating:
|
Discuss
|
Briefcase
|
2,324 reads
Shrink Log File to Target Percentage
Performs a checkpoint or a transaction log backup followed by a DBCC SHRINKFILE on the transaction log to the target percentage specified relative to the total data file(s) size.
Read more...
By
Tommy Bollhofer
0001/01/01
|
Source:
SQLServerCentral.com
|
Category:
Maintenance
Rating:
|
Discuss
|
Briefcase
|
1,024 reads
Copyright © 2002-2009 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use