Scripts

Technical Article

OccursAny

Returns the number of times any word in comma delimeted character expression occurs within another character expression.cSearchExpression -- Specifies a comma delimeted character expression that OccursAny( ) searches for within cExpressionSearched. cExpressionSearched -- Specifies the character expression OccursAny( ) searches for cSearchExpression.OccursAny( ) returns 0 (zero) if cSearchExpression isn't found within cExpressionSearched.Example:OccursAny('the,dog','The quick brown fox […]

You rated this post out of 5. Change rating

2003-12-03

75 reads

Technical Article

Set logging properties for group of DTS packages

This script will set the Logging properties for a group of DTS packages. To run this script stand-alone, you'll need to set 6 variables. sSvr, sDb, sUid, sPwd, iSec and sPkgMatch. If you use this script in a DTS package, you can assign the values from Global Variables. The sPkgMatch variable is used as a […]

You rated this post out of 5. Change rating

2003-12-01

436 reads

Technical Article

SQL Server Job Status Report

This script generates an HTML report on the status of all jobs on a specific SQL Server instance. The report consists of several sections: a summary report of jobs that have passed, failed, been cancelled, or whose status is unknown; a detailed report of the status of each job.The script is designed to be included […]

You rated this post out of 5. Change rating

2003-12-01

926 reads

Technical Article

Monitor space used for disks, DBs, tables and filegroups

I pieced this script together from solutions I found on this and from Brian Knight's excellent book. It creates 3 tables: - tblDriveLogs. Collects free drivespace info for each drive for each time the script is run. - tblIndexLogs. Collects info on spaceused for each index and table. Please note that when only af single […]

(1)

You rated this post out of 5. Change rating

2003-11-26

905 reads

Blogs

Microsoft Purview data governance best practices

By

Microsoft Purview can be the best data governance tool in the world, but it...

AI Insights for Database Monitoring: A DBA’s Perspective

By

Second in a series on Ai and databases. One Story, three signals – I...

Crash-Consistent MongoDB Snapshot and Restore with Everpure Fusion

By

I’ve been working on a project that combines two things I spend a lot...

Read the latest Blogs

Forums

PolyBase Trace Flags

By Leo.Miller

Are there any good articles on all the trace flags that are enabled on...

The Data Model Matters

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The Data Model Matters

Understanding SQL Server PARTITION BY with Examples

By Imran2629

Comments posted to this topic are about the item Understanding SQL Server PARTITION BY...

Visit the forum

Question of the Day

Running SQLCMD I

I run the SQLCMD utility as follows:

lcmd -S localhost -E
I then type this (the 1> is the prompt):
1> select @@version go
If I hit enter, what happens?

See possible answers