Scripts

Technical Article

Script to Attach Multiple MDF

Copies mdf files located in a directory on a client and attaches them to the connected server. This is the winning solution to the contest that was presented in an article posted at http://www.sqlservercentral.com/columnists/awarren/reattachingdatabases-somecodeandacontest!.asp. That article shows how to do the same thing using DMO. Wynn Muse is the author of this stored procedure.

You rated this post out of 5. Change rating

2001-09-23

3,523 reads

Technical Article

Trim Backup Files

This script runs within a DTS package. It searches the backup directory stored as a global variable in the script and trims all backup files older than some number of days. the script includes logging to the C: drive so you can trace the effects of the script. You need to create the global variables […]

1 (1)

You rated this post out of 5. Change rating

2001-09-12

1,503 reads

Technical Article

Automatic Backups

Creates the backup devices where sql server is installed, creates an error message above 50001, an alert, and an adittional job in case the scripts fails. In the first time backups all databases and then backups the logs until two days past from the last full backup. Then backups the databases again and so on. […]

2 (1)

You rated this post out of 5. Change rating

2001-09-07

1,226 reads

Technical Article

Backup Transaction Logs on all Databases

Here we go again. This is the last in my backup series that I use to do backups of the databases. As far as I know this should only kick out errors when there really is one. This stored procedure is designed to take 4 parameters @bksrv : This is the name or the IP […]

5 (1)

You rated this post out of 5. Change rating

2001-09-06

853 reads

Technical Article

Differential Backups of all Databases

This is the SP I schedule to do diff backups on the DB's that I can. I still need to add errorchecking to see if there is a full available before I do a diff. I'll add that when I get time. This stored procedure is designed to take 4 parameters @bksrv : This is […]

5 (2)

You rated this post out of 5. Change rating

2001-09-06

1,526 reads

Blogs

Large System Databases on SQL Server

By

This one is an oldie in my blog drafts, but a goodie! So, I...

Free Advanced SQL Course for June: Don’t Miss Out!

By

Summer is here, and it's the perfect opportunity to enhance your SQL expertise with...

How to give developers access to Query Store

By

Let’s have devs look at their own query performance. Yes, please, sign me up...

Read the latest Blogs

Forums

How to sum the CountDistinct in the detail rows

By danyeungw

The SSRS report has a CountDistinct in the detail row grouping by Facility. It...

Ledger Feature In Sql Server 2022

By rogue1009

Hi All, Wonder if someone can clear something up for me and let me...

The name of column index 9 is empty ADF

By erics44

Hi I am brand new to Data Factory I am getting the following error...

Visit the forum

Question of the Day

The SQL Assessment API

What is the SQL Assessment API?

See possible answers