Miscellaneous

Technical Article

How to get last restore date and orginal DBName.

  • Script

This script will output the Orignal DB Name, Destination DB Name and Last Restore date for the databases. You get a specific database just add a where clause against the appropriate field. It makes use of the restorehistory and backupset tables in the MSDB database.

4.83 (6)

You rated this post out of 5. Change rating

2002-04-11

2,554 reads

Technical Article

Converting money to the word value.

  • Script

With this script you can supply an money value such as $12525.83 and it will return the word value "Twelve Thousand Five Hundred And Twenty-Five Dollars And Eighty-Three Cents".It is comprised of a table for Number to Name and a procedure to parse into it's piecesNOTE: This only goes to billions at this point, but […]

You rated this post out of 5. Change rating

2002-04-11

425 reads

Technical Article

Database structure queries

  • Script

Gets most important information of database structure. This includes all user tables, their fields, datatypes, defaults (including default constraint names), etc, primary keys and their fields, unique constraints and their fields, check constraints (including their conditions), foreign key constraints and their fields aswell as any other indexes and their fields. Should be quite useful for […]

5 (2)

You rated this post out of 5. Change rating

2002-04-08

3,039 reads

Blogs

Advice I Like: Experience and Aptitude

By

Experience is overrated. Most breakthrough accomplishments were done by people doing them for the...

Plan Time for Self-Development

By

As you begin the new year, if you don't already have time set aside...

BK’s Bookshelf: Never Split the Difference

By

I picked up Never Split the Difference: Negotiating As If Your Life Depended On...

Read the latest Blogs

Forums

Insiders Selling Data

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Insiders Selling Data

Join 2 tables

By mtz676

Table A ServerName ColB ServerA C ServerA I ServerA L ServerA M ServerA N...

Impact of Not Including Foreign Keys in an SQL Archive Database

By abdalah.mehdoini

Hello everyone, I am about to start a data archiving project that will affect...

Visit the forum

Question of the Day

Quiesce

What does it mean to quiesce a system?

See possible answers