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 you don’t need these, you can leave out the latter part of the last where […]
Tag: T-SQL
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 wanted to be able to search by first name, last name, age, social security number […]
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.
Selecting an arbitrary number of random rows from a table with T-SQL
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 least 10M fact rows and preferably at least one dimension with approximately 1M members. One approach […]
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 test (import 5.5 mio facts + 250K dimension elements into a dw model) rename the […]