Miscellaneous

Technical Article

Scheduler SP with Sample Log Creation/Exec Scripts

  • Script

I created this SP for use with our morning DW builds. I use it to manage the execution of multiple jobs. It first starts up to a configureable number of jobs, monitors these jobs until one (or more) complete, and then starts additional jobs as needed. If any jobs fail, it will run the "transaction […]

You rated this post out of 5. Change rating

2002-01-06

247 reads

Technical Article

Shrink DBs - Job Script

  • 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.

You rated this post out of 5. Change rating

2002-01-04

1,198 reads

Technical Article

Transaction Logs - Job Script

  • 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 […]

You rated this post out of 5. Change rating

2002-01-04

1,154 reads

Technical Article

Check Jobs Current State

  • Script

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 […]

(2)

You rated this post out of 5. Change rating

2002-01-03

1,293 reads

Technical Article

Port from Oracle's TRANSLATE Function

  • Script

Here is a port from the Oracle's TRANSLATE function to T-SQL. It gets three arguments: a string to be searched, a string with a set of characters to be found and replaced, and another set of characters as the replacements. Example: SELECT dbo.TRANSLATE('ABCDE', 'BD', 'CE') It will return 'ACCEE'.

(2)

You rated this post out of 5. Change rating

2002-01-03

488 reads

Blogs

Azure – HorizonDB

By

As Open Source – PostgreSQL and AI is a growing and powerful DB system,...

A New Chapter: Why I Made the Move from Dayforce to ESO

By

A New Chapter: Why I Made the Move from Dayforce to ESO Over the...

Lean Six Sigma – Brief

By

When you have a project or system, it has to be optimized, tuned, and...

Read the latest Blogs

Forums

ALAMAT KANTOR BCA KCU METRO TLP/WA 0817825533

By layanan_Bca88

Hub Cs:0817825533 Jl. Jendral Sudirman No.106, Imopuro, Metro, Kota Metro, Lampung 34111

ALAMAT BCA KCU BANDAR LAMPUNG TLP/WA 0817825533

By m4rt1n4

Hub Cs:0817825533 Jl. Yos Sudarso No.100, Bumi Waras, Kec. Bumi Waras, Kota Bandar Lampung,...

ALAMAT KANTOR BCA KCU JAMBI TLP/WA 0817825533

By R4nt4u

Hub Cs:0817825533 Jl. Dokter Sutomo No.50-50A, Ps. Jambi, Kec. Ps. Jambi, Kota Jambi, Jambi...

Visit the forum

Question of the Day

DBCC CHECKDB Limits II

I have a SQL Server 2025 database that I want to check for corruption every night. One of the things we do is disable indexes used for ETL loads during the weekend and re-enable them on Monday morning. If we run DBCC over the weekend, are our disabled indexes checked for consistency?

See possible answers