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 […]
2011-09-14 (first published: 2007-08-15)
2,767 reads
Delete files on a fileshare leaving behind files not older than n-days.
2011-09-13 (first published: 2008-04-02)
10,041 reads
Database server migration or SQL Server up gradation
2011-09-12 (first published: 2011-09-02)
1,501 reads
Script to backup 2000/2005 databases.
2011-09-09 (first published: 2007-11-19)
8,930 reads
Script one or all roles in a database. Includes users, obect permissions and column permissions.
2011-09-08 (first published: 2008-01-08)
5,263 reads
Generate the scripts that will allow you to compare tables pass/fail.
2011-09-07 (first published: 2007-12-28)
12,566 reads
Troubleshooting Service Broker (SSB)
2011-09-05 (first published: 2007-01-25)
3,920 reads
This script copies one object in another multiple schema.
2011-08-31 (first published: 2011-08-24)
2,511 reads
Lists all the tables in a database that do not contain any LOB columns(text, ntext, image, varchar (max), nvarchar (max), varbinary (max) and xml).
Useful when rebuilding indexes online.
2011-08-30 (first published: 2011-08-25)
756 reads
Detach all user databases on a SQL 2008 instance
2011-08-24 (first published: 2011-08-12)
1,161 reads