Sean Gorman


MOM 2005 Datawarehousing Catchup

I wrote this script because our MOM Datawarehousing got so damn behind.Every time the windows Scheduled task tried to run to warehouse the dataout of OnePoint, it would puke because the SQL log would fill up. Thisallows you to start so many days out and it will increment it down by the number of days […]

2007-10-18 (first published: )

1,382 reads

MOM SCDWgroom Enhancement

It might not be useful now, but if you ever wanted to downsize the amount of data that you keep in your datawarehouse, good luck.  This will help you do that.  This job is set to shrink it down to 120 days, but you can adjust it as you like.  Runs again in 5 day […]

2007-10-16 (first published: )

529 reads

Script to generate replication procs for article

This script is basically a front-end for the sp_"scriptproc" stored procedures that ship with MSSQL.  This will allow you to create ALL of your procs (INS, UPD and DEL) on the fly using the article name instead of having to first search for the article ID.  It also uses sp_scriptdynamicupdproc where appropriate.  This facilitates quick […]

5 (1)

2007-04-23 (first published: )

1,656 reads

Script to aid in Indexing Strategy

When AUTOSTATS is used in a database, we can sometimes use these automatically generated statistics to find columns where SQL Server has built statistics on non-indexed columns that may benefit from an index. This script finds these columns and displays the selectivity of them. This script can be useful in troubleshooting poorly performing databases by […]

5 (1)

2007-04-09 (first published: )

1,735 reads

Maintenance Plan Cleanup Proc

If you use 2 different maintenance plans (one for full-recovery databases and one for simple-mode databases) this proc can help keep the databases in the right plan. You can schedule this as a job and if anyone changes the recovery mode of a database or adds/removes a database, this proc will ensure that the changes […]

2007-04-06 (first published: )

1,611 reads

Blogs

I’ll be speaking at SQL Server Virtual Conference from C# Corner

By

I’ll be speaking at the SQL Server Virtual Conference from C# Corner, Friday Jan...

What is a model database?

By

Do you ever take a look at SSMS in the System Databases section? People...

Daily Coping 26 Jan 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Read the latest Blogs

Forums

How to set the value of a parameter that is passed via a URL

By mikek4030

I may have had this originally in the wrong forum. I found this category,...

How to create a gantt chart for event rooms during a day

By PatrikW

Hi all, This will be my first ever post in a forum like this....

[ODBC Error]

By DBA_007

When backup job runs we are receiving the below error and database connection closes....

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers