Backup and restore

Technical Article

Restore Backup and all TRANLOGS in a specific DIR

  • Script

Many DBA's have a Maintenance plan running that creates a backup every night and a transaction log backup every hour.Restoring them to another server (for whatever reason) can be a tedious job. That is why I wrote this T-SQL script.It will read the contents of a backup directory created by the maintenance plan and create […]

(1)

You rated this post out of 5. Change rating

2004-06-25

912 reads

Technical Article

Backup all Databases Using SQL LiteSpeed

  • Script

This script backs up all databases or a specified database to a disk location. Databases can be explicitly excluded from backup as well.  Can be used for Full, Differential or Transaction Log Backups.  Can also dynamically create sub directories for each database, as well as perform DBCC and restore verify operations.  Includes LiteSpeed support for […]

You rated this post out of 5. Change rating

2004-04-15

1,488 reads

Technical Article

Custom Log Shipping

  • Script

There are mainly two components. One job that is managing the full database backup - restore and a second job that manage the transaction log backup - restore. At this two a new one similar with the full database backup - restore can be added for the differential backups if is the case. I will […]

You rated this post out of 5. Change rating

2005-02-15 (first published: )

1,036 reads

Technical Article

List SQL backups

  • Script

During the process of developing a script to make copies of local SQL database and transaction log backups, I needed to come up with an easy way of locating the backup files. This script queries the SQL2000 backup tables in the msdb database and returns backup start dates, types (D=database, L=Log, I=Differential) and the location […]

You rated this post out of 5. Change rating

2004-02-25

611 reads

Technical Article

MSP_Restore

  • Script

Simple Procedure to rapidly rebuild a copy of Development TEST1 DB...Lovely and fast when Tard Developers have highlevels of access  and you just need them out to restore / refresh a db...KILL KILL KILL !!! Remember to reset / resolve users and permissions after this is run. I use a DTS RUN statment with a […]

You rated this post out of 5. Change rating

2003-12-18

176 reads

Blogs

Dry-run xp_delete_file Before Actually Deleting Files?

By

Dry-run xp_delete_file Before Actually Deleting Files? xp_delete_file doesn’t really have a...

Happy Thanksgiving! (USA Holiday)

By

In the United States, today is Thanksgiving. The intent behind the holiday is to...

Getting SQL Server 2025 RTM Running in Containers on macOS

By

SQL Server 2025 RTM is here, and if you’re running Docker on macOS, you...

Read the latest Blogs

Forums

Cannot execute SQL cursor in Azure Query Editor (Preview)

By omkarp88

Apologies if this is posted in the wrong forum, but I am trying to...

SQl Server 2014 linked server remote server

By johnnyrmtl

Hello all, I have a linked server created on an instance which only has...

Find all the tables in a database containing particular column value

By RCRock

Hi, I want to find all the tables name under a database where tables...

Visit the forum

Question of the Day

The Ending Substring

In Azure SQL Database and SQL Server 2025, if I run this, what is returned?

SELECT '[' + SUBSTRING('Steve Jones', 7) + ']'

See possible answers