Scripts

Technical Article

Mark DTS Task As Complete

This is a VBScript that can be placed in an ActiveX Script Task.  The purpose of this script is to mark other tasks in the DTS package as complete before they execute.  In this way you can ensure a task does not execute.The Dim and Set lines give you access to the objects in the […]

You rated this post out of 5. Change rating

2002-07-18

227 reads

Technical Article

Kill Processes in a Database

This script kills all the processes using a given database.  It is useful for removing users from a database so it can be restored.To use this script change the server variable and the database variable at the top of the script.  Notifications are written to the windows application eventlog.Use this script at your own risk. […]

You rated this post out of 5. Change rating

2002-07-12

1,092 reads

Technical Article

Script to create a standby database server.

This script will do a full backup and transaction log backup of all the user database on the primary server and restore it over to the secondary server. The full backup/restore runs once every day and the transaction log backup/restore runs every minutes. Just provide the name of the primary and the secondary server and […]

You rated this post out of 5. Change rating

2002-07-12

492 reads

Technical Article

A new version of RowCount

Hello,Here is a (another one, but improved) stored procedure that returns rowcounts for all tables in the current database, or only for @tablename, if provided. Output can be ordered by name or by number of rows.Improvement : Rowcount is right aligned and formatted with thousand separator.To use it : - open a connection on your […]

You rated this post out of 5. Change rating

2002-07-11

306 reads

Blogs

Learning Database Design and Power BI Performance

By

I spend my days working on and managing SQL Server instances—working days at least,...

Free SQL Training: Dive into Databases This December!

By

Want to learn SQL and get some real practice this December? Check out the...

Monday Monitor Tips: CIS Compliant

By

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

Read the latest Blogs

Forums

Generative AI Services and the Future of Content Moderation Jobs

By inbathiru

Introduction to Generative AI Services Welcome to the cutting-edge world of Generative AI Services,...

need help with assigning a value to a variable

By water490

Hi I am trying to assign the value of the  variable using the output...

Merry Christmas 2025

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Merry Christmas 2025

Visit the forum

Question of the Day

The Reindeer Count

How many reindeer does Santa have pulling his sleigh? (according to the famous song) Hint, the answers are not base 10.

See possible answers