Miscellaneous

Technical Article

Search for a value in a numeric variable list

  • Script

When you have a variable that hold a comma separated numbers like '1,2,3' and you have a table with a column that has the value that should match a number in that list, you can use this script to avoid building a string and then executing it.You have to convert the columnID to varchar, the […]

You rated this post out of 5. Change rating

2002-05-20

375 reads

Technical Article

Get total file size of backup for last full backup

  • Script

The information for backup size is stored in the backup_size column of the backupset table in the msdb database as the total bytes for that backup. This script allow you to look at the total back to tape or file so you can plan space needs for those devices. This is a simple piece of […]

5 (1)

You rated this post out of 5. Change rating

2002-05-14

4,576 reads

Technical Article

Procedure for Random Numbers

  • Script

Here is handy procedure to generate random number.I find it useful when I generate large amount of test data in a database.For example if you need to create a Customer Data and what they have purchased in the last month to run perfrmance tests on large amount of data an set up necessary indexes.You can […]

You rated this post out of 5. Change rating

2002-05-13

649 reads

Technical Article

Parse a delimited string, return n-th value

  • Script

This UDF will parse a string delimited by the character you specify and return the value in the n-th position you requested.Example:select dbo.fn_parse('this string', ' ', 1) --> 'this'select dbo.fn_parse('this string', ' ', 2) --> 'string'select dbo.fn_parse('this string', ' ', 3) --> NULLselect dbo.fn_parse('this  string', ' ', 2) --> ''

1 (1)

You rated this post out of 5. Change rating

2002-05-10

485 reads

Blogs

Using Flyway Prepare for State-Based Deployments

By

One of the neat enhancements made to Flyway was the addition of state-based workflows...

How I Migrated to Azure PostgreSQL Flex from Single Server

By

I did a couple of posts previously on dumping/restoring Azure PostgreSQL databases and also...

Have a Plan for Your Personal Downtime

By

Most of us know that spending a lot of time on social media and...

Read the latest Blogs

Forums

Unknown Token Received From SQL Server

By RonMexico

I have an issue when a stored procedure is executed from the SQL Server...

SSRS error on sign in ERR_UNEXPECTED

By janvan

Hi All, I have an error coming up when anyone tries signing into our...

Hash Joins IV

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Hash Joins IV

Visit the forum

Question of the Day

Hash Joins IV

What is a hash bailout?

See possible answers