Miscellaneous

Technical Article

Display disk space stats for each table

  • Script

Here is my replacement for sp_spaceused, I have altered it so that if no table is past in using the @objname parameter it loops through all the tables which is alot easyer than running the old one for each table and it displays the data one result set. So should be easyer to create a […]

5 (2)

You rated this post out of 5. Change rating

2007-08-23

1,028 reads

Technical Article

Locate primary key - foreign key relations

  • Script

Recently one of my friend was doing some investigation in a new/unknown database and had really hard time locating the primary key – foreign key relations. Like it’s really tough to locate these relations when not enforced at database level in terms of primary key and foreign key constraints. But generally all database developers keep […]

4.14 (7)

You rated this post out of 5. Change rating

2011-09-14 (first published: )

2,748 reads

Technical Article

Create Log tables and Triggers

  • Script

Usually in business applications it is necessary to maintain the history of the data being modified for auditing purposes or for later analysis. Proven way to achieve this is to create a log table for each datatable with an additional column "Action" to indicate what the user has done on the data (either insert, update […]

1.17 (6)

You rated this post out of 5. Change rating

2007-10-26 (first published: )

6,086 reads

Blogs

Focus on Core Skills

By

Core skills depends on the position, but the point is that ensuring you have...

A New Word: Zverism

By

zverism – n.  the wish that people could suspend their civility and indulge in...

SQL Server Source Control on a $0 Budget

By

The Source Control Dilemma Every DBA has been there. Trying to keep track of...

Read the latest Blogs

Forums

Fantasy baseball and old habits

By Ryan Booz

Comments posted to this topic are about the item Fantasy baseball and old habits

Move Files SSIS Task

By water490

Hi I have a task in my SSIS package that moves files from source...

Migrating mission critical database from SQL on Prem to Azure SQL

By Mikael Åkerblom

We are migrating our environments to Azure, it will be a mix of SQL...

Visit the forum

Question of the Day

The Backup Space Needed

How do I calculate the amount of space needed for I/O buffers during a backup operation?

See possible answers