Maintenance and Management

Technical Article

Alter Index with online rebuild - SQL 2005

  • Script

This is an Alter Index script i made up from the one found in BOL and some other scripts we had. You need to create a table to hold the fragmentation data and it has a date column so you can track historical data. You can also add a db_mail part at the end to […]

5 (1)

You rated this post out of 5. Change rating

2007-08-10 (first published: )

2,119 reads

Technical Article

Database,Drive,Data file growth monitor

  • Script

This script is to monitor drive\database file space. There are variations of this script. The one posted has 2 parts. The frist is one that loops through the databases on a particular server calling the second which is the proc that gathers the information.

You rated this post out of 5. Change rating

2007-08-01 (first published: )

1,175 reads

Technical Article

FULL SERVER DOCUMENTATION -- HTML  and revised

  • Script

Revise note: 1. reformat the result into HTML page.2. added script to find sql server service account, sqlserver agent account.3. added script to find sql server authentication mode.4. added script to find sql server startup parameters5. added table of contents and hyperlinks.6. add DOS batch script to run the script on all servers.     TRY […]

5 (1)

You rated this post out of 5. Change rating

2007-02-20 (first published: )

1,428 reads

Technical Article

Show when all jobs were running

  • Script

This script returns a result set showing which jobs were running at what point during a given day.One column is returned for each Job, and one row for each discrete portion of the day (configured by @TimeGranuality). A value of 1 indicates that the job was running at that point in time, 0 otherwise.Particularly useful […]

4.5 (2)

You rated this post out of 5. Change rating

2007-07-26 (first published: )

529 reads

Technical Article

Remove Exec Permissions To Extended Stored Procs

  • Script

I created this script to simplify the process of restricting access to high risk extended stored procedures. It will find any user or role which has execute permissions on any of the stored procedures in the "#High_Risk_Stored_Procs" temp table and will generate the relevant revoke statements to remove those permissions.The current list of stored procedures […]

5 (1)

You rated this post out of 5. Change rating

2006-11-27 (first published: )

613 reads

Technical Article

LongestRunningQueries.vbs

  • Script

This SQL 2005-only VBS script will show the longest-running queries on a given server, complete with graphical .sqlplan when clicked. Results go to a web page, viewed from the local machines's temp directory.Each row of the resulting table has the session ID, the currently running statement of the batch, a link to a text file […]

5 (1)

You rated this post out of 5. Change rating

2007-07-24 (first published: )

365 reads

Technical Article

User Tables with Size  all DBs (SQL 2005 Only)

  • Script

Hope this is helpful to someone.  This script will create a table and a stored procedure in the master database to gather and store table info for all datbases. The sp uses a temp table to hold the results returned by sp_spaceused, then transfers the information to the permanent table DatabaseTableSizes and adds the database […]

5 (1)

You rated this post out of 5. Change rating

2007-07-16 (first published: )

279 reads

Blogs

Monday Monitor Tips: CIS Compliant

By

A new feature added to Redgate Monitor Enterprise automatically. CIS compliance is something many...

My 2024 in Data: Music

By

This is my last week of the year working (I guess I come back...

A New Word: Suente

By

suente– n. the state of being so familiar with someone that you can be...

Read the latest Blogs

Forums

Events of System_health extended event serious or not

By IT researcher

I have listed the event names present in my system_health extended event report. Based...

Are You Looking to loss weight ??

By thomas45kay

A Box Contains 100Capsules   Buy DNP Online, DNP (2,4-Dinitrophenol), an industrial chemical with...

String Variable and sp_executesql

By stevec883

I am not understanding why this command completes "successfully" and it seems correct to...

Visit the forum

Question of the Day

Superseded Indexes

Which of these indexes is superseded by another?

See possible answers