Tag Archives: T-SQL

How to generate the alphabet from ASCII codes in T-SQL

Just now I had the requirement to create a loop in SSIS, and have that loop the alphabet. In order to facilitate that, I generated a T-SQL statement, that provides the alphabet including the Danish Æ, Ø and Å. If … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Using a Custom Assembly to search an Analysis Services dimension

Problem A client of ours had the business requirement that they wanted to be able to search for members in certain dimensions in their cube. In particular two specific dimensions, patients and health care persons (doctors, dentists, nurses etc.). And they … Continue reading

Posted in Programming | Tagged , , | 2 Comments

Quick-tip: Default column type in SSMS

Looking for some other settings I stumbled upon this very nice, and very hidden, feature in SQL Server Management Studio (SSMS): The ability to set your default column type! That should save me a lot of time, from now on.

Posted in Programming | Tagged , , | Leave a comment

Selecting an arbitrary number of random rows from a table with T-SQL

p5rn7vb While searching for a fairly large dataset to use for performance baselining, I was looking at the option of duplicating data in the Adventure Works database to match our needs. In order to check for weak spots, I need at … Continue reading

Posted in Programming | Tagged , | Leave a comment

Renaming the name of the physical database and log file

During one of my current tasks, which was to run the same test on multiple copies of the same database, I needed to setup a flow where I could deploy the database from VS2010 or setup database w/ vsdbcmd run the … Continue reading

Posted in Programming | Tagged , , , | Leave a comment