Scripts

Technical Article

Find Duplicated rows

This is a very simple and small stored procedure which will help you identify repeated rows on any given table.  This is specially useful for situations when you want to clean up a table and add a primary key on it, but you cannot until all duplication is eliminated.  Only two parameter are necessary; table […]

You rated this post out of 5. Change rating

2002-07-08

1,080 reads

Technical Article

Dynamically Alter all your Tables.....

This script allows you to dynamically alter all the tables in your database.  In the script i am building up an alter statement that adds a 'TimeStamp' column a table.If anyone knows a better way to do this kind of thing, feel free to drop me a mail (jamie.moffat@infographics.co.uk)

You rated this post out of 5. Change rating

2002-07-04

747 reads

Technical Article

Index Locking Strategy

This script returns the index locking strategy informationfor all user tables in a database. It also generates the required TSQL statement to alter locking strategies if required. These statements require CTRL-C and CTRL-V individually into query analyser for execution. Results are best viewed in text only. This TSQL can be wrapped in a stored procedure […]

4 (1)

You rated this post out of 5. Change rating

2002-07-04

1,383 reads

Technical Article

VB6/ADO Stored Procedure Call Generator

Generates a VB6/ADO procedure prototype, procedure call, and ADO Command Object Parameters.Append calls.  To use, simply set the @spname variable equal to the name of your stored procedure, run, and cut and paste the output into you VB program.  The generated code may require some slight modifications, but this should save you a lot of […]

5 (1)

You rated this post out of 5. Change rating

2002-07-04

1,055 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

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

The Reindeer Count

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The Reindeer Count

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