Shrink DBs - Job Script

I'm posting this job script because it gets used by my scheduler script. It simply enumerates through each database on the server, and then executes a DBCC SHRINKDATABASE. The only wrinkle here is that I have it do a quick check to make sure that certain jobs are not already running.

2002-01-04

1,124 reads

Transaction Logs - Job Script

I've included this job script, because it is used by the scheduler scripts that I've also posted. This job is a little more involved than most may need... It first checks to see if certain jobs are running. Is so, it waits for a while, and then checks again. After that it drops the existing […]

2002-01-04

1,084 reads

Check Jobs Current State

I created this script in an attempt to better automate many different jobs that run each morning, as part of a datawarehouse build. I use it to not only tell me what jobs are currently running (so that I can manage how many I would like to run at a time), but what happened to […]

5 (2)

2002-01-03

1,228 reads

Blogs

Graph – Shortest Path

By

‘Shortest path’ is by far the most feature of SQL Graph for now. What...

Last Week Reading (2019-09-22)

By

Hello #datafolks! Let’s review what happened last week in Data World. It’s hard to...

Simple Graph Queries

By

In this post we saw how to create some graph tables with data. In...

Read the latest Blogs

Forums

Is Data the Future of the Vibrant Web?

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Is Data the Future of...

memory not getting released to OS

By vsamantha35

Hi All, Need help here. Why is sql server is not releasing memory to...

Will the principal wait for acknowledgement from mirror?

By coolchaitu

Good Morning Experts, A transaction was sent to mirror database and immediately failover occured....

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers