Combining result strings in SQL Server

This is just a quick tip on combining (aggregating) result strings in SQL Server. Sometimes it's useful to add multivalued columns to results (or CSV files) but it's not all that simple.

For combining results of a JOIN to a single column you can use the STUFF function ...

more ...

Fixing misplaced SQL Server database files

SQL
Photo by John Carter

Recently I was moving a SQL Server model database log file to another disk. I made an ALTER DATABASE [model] MODIFY FILE... command a bit too fast and pasted the destination from a file browser window. Of course this set the log directory as the new ...

more ...

Searching and replacing text in T-SQL

Database

I recently started learning and using T-SQL for a database integration project I'm doing at work. T-SQL (or Transact-SQL) is Microsoft's extension to SQL that adds some transactional programming features to it. It's used in SQL Server.

I'm slowly getting the hang of it. Mostly I ...

more ...

Setting up this site with Pelican

Pelican
Pelican FTW!

I finally restarted my blog with an actual domain and a switch from Drupal to the Pelican static blog generator. The server uses Fedora 20 and is hosted by DigitalOcean. It's a good hosting company with excellent pricing.

This post is mostly just a list of the ...

more ...