Backup and restore

Technical Article

Restore 2000 DB to 2005

  • Script

This script was designed to restore a backup of a SQL Server 2000 database from disk file to SQL Server 2005.Unfortunatelly the RESTORE will leave land mines for you to find the hard way, this script was updated to fix all that I have found:Change CONCAT_NULL_YIELDS_NULL ON, PAGE_VERIFY CHECKSUM, Compatibility level to 90, remove the […]

(1)

You rated this post out of 5. Change rating

2007-09-14

4,524 reads

Technical Article

Check Full Recovery DBs Have Tran Log Backups

  • Script

A quick procedure to check which full recovery databases have not had a tran log backup in the given period (default is 7 days). This could mean that the recovery mode might need changing or the transaction log backup jobs need investigating.

(7)

You rated this post out of 5. Change rating

2011-09-22 (first published: )

1,708 reads

Technical Article

Shrink databases

  • Script

This procedure is used to shrink the databases. Many times we use shrink option to shrink the databases for backup. and we do it N number of times, when we take the back of databses or make free space of drive.instructions:- Follwo the step.1. run script.2. And execute the statement, exec shrink_databasesI m new, if […]

(1)

You rated this post out of 5. Change rating

2007-06-27

794 reads

Technical Article

Creating BCH Files for Veritas Direct to Tape

  • Script

This script was written to solve a problem where we needed to dynamically create bch files for Veritas Backups direct to tape backups.  We needed to parse the sysdatabases daily and create the bch files that veritas would use to backup each server and database.  This SQL Script uses xp_cmdshell to call a windows shell […]

You rated this post out of 5. Change rating

2007-10-02 (first published: )

454 reads

Technical Article

Backup SQL Server Database with Move/Copy File

  • Script

The following script performs log, differential or full backups of a single, or all databases on your SQL Server.  It then copies or moves the file(s) over to a network share drive.  It also removes old backups from both locations if needed.  Don't forget to set the local drive path and network share for each […]

(9)

You rated this post out of 5. Change rating

2007-09-14 (first published: )

19,157 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

Which Object Definitions Are Available?

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Which Object Definitions Are Available?

What's Your Theme Music?

By Steve Jones - SSC Editor

Comments posted to this topic are about the item What's Your Theme Music?

T-SQL in SQL Server 2025: The PRODUCT Function

By Steve Jones - SSC Editor

Comments posted to this topic are about the item T-SQL in SQL Server 2025:...

Visit the forum

Question of the Day

Which Object Definitions Are Available?

For which of these object types can I get the code when I run the OBJECT_DEFINITION() function in SQL Server 2025? (choose 3)

See possible answers