Scripts

Technical Article

Get maintenance plans info and It's by effect jobs

I have been wonder how to get info (by query NOT EM) of all the Maintenance Plans and it's by effect jobs plus schedule. I also see people asking the same questions in different forums. Finally, I start exploring myself (with helps from others of course), here's the result.You can run it as a ad-hoc […]

You rated this post out of 5. Change rating

2006-01-27 (first published: )

297 reads

Technical Article

Global System UDF to return ISO Date string

Updated for Permission assignment change 1/11/1006. Ok, I'll bet that you are asking, What is a Global System UDF, right? By Global I mean that the UDF is available from any database on the server. By System I mean that the two part naming rule does not apply to this scalar function. The UDF conversion […]

5 (1)

You rated this post out of 5. Change rating

2006-01-26 (first published: )

438 reads

Technical Article

Script Tbl Data to Insert Stmts. - Handles Unicode

Script Table Data to Insert Statements - Handles Unicode datatypes (nchar, nvarchar, ntext). This script works with SQL 2000 and has been improved to handle properly the nchar, nvarchar, and ntext data types for Unicode, as well as handle apostrophes in data correctly. Usage is to run the script to create the stored proc in […]

1 (1)

You rated this post out of 5. Change rating

2006-01-24 (first published: )

581 reads

Technical Article

MS Word VBA to Format T-SQL Text as Rich Text

This VBA script was written for MS Word. It formats the text and sets default colors for keywords. SQL 2005's Management Studio now does this by default but the previous Query Analyzer did not offer this functionality. This is useful if you prefer to print and review code from time to time (not recommended for […]

You rated this post out of 5. Change rating

2006-01-23 (first published: )

444 reads

Technical Article

Verify that your backups are archived.

If you backup your databases to a disk file, you should make sure that these disk files are then being archived to tape. Without this, your ability to recover the database is compromised in the event of a disaster. This script will examine the "archive" flag on all of the backup files to make sure […]

You rated this post out of 5. Change rating

2006-01-22 (first published: )

296 reads

Technical Article

Delete Old backup Files

The following script deletes files in the specified folder, older than specified no of days and outputs the details to the specified file location. I use this VB script to delete some old backup files those can't be deleted with the regular maintenance plans. All you need to do is to supply the backup folder […]

5 (2)

You rated this post out of 5. Change rating

2006-01-20 (first published: )

1,738 reads

Technical Article

Calculate upcoming business day from date (Updated)

Calculates the next business day based upon the work weeklength, number of days from the start date and a list of holiday dates kept in a table called HolidayDate.Created this script for determining the next banking day from 2 days after a request for wiring funds. Can be used for things like calculating shipping dates […]

5 (1)

You rated this post out of 5. Change rating

2006-01-19 (first published: )

1,516 reads

Blogs

Spark Connect Dotnet November 2024 Where are we?

By

All Spark Connect Posts Introduction There have been quite a few changes in the last...

A New Word: Ochisia

By

ochisia – n. the fear that the role you once occupied in someone’s life...

Create a Numbers Table in Power Query

By

This is a quick blog post, mainly so I have the code available if...

Read the latest Blogs

Forums

Package to Project model conversion

By blom0344

Hi All, With previous customer range we were always required to work in the...

Issue with DBMail

By richardmgreen1

Hi all   We've got 3 servers with the same setup for dbmail. They...

Counting values with hysteresis in Report Builder

By UltraFan47

Hi, I have a set of data (for instance sine wave) and I need...

Visit the forum

Question of the Day

What's the Ceiling?

What do I get as the results from this code?

SELECT CEILING (999.999), CEILING (-999.999);

See possible answers