Build your own SQL 2012 Demo Machine – Part 7 – Performance Tweaks
Step 8: Tweak Windows Server 2008R2 In the final (optional) part we’ll apply some performance tweaks from BlackViper, just to lighten the VM and make it run a bit more smoothly. TAKE A BACKUP NOW! You...
View ArticleInsert an Image into a SQL Server table
Need to store an image into a SQL Server table? Easy. First make sure you have a varbinary(max) column to store it. Then do something along these lines: UPDATE YourTable SET ImageColumn= ( SELECT *...
View ArticleThe Geometry Data Type and SSRS Floorplan Reports
I was looking for a solution on how to build dynamic floorplans in SSRS, expecting to have to battle Visio to do such a thing. It turned out that a new data type, the Geometry spatial data type was...
View ArticleTroubleshooting Service Broker Stored Procedures
A quick post on troubleshooting the Stored Procedures that can get called to handle the messages in a Service Broker queue. The stored procedures are pretty vanilla – see step 4 in this link for an...
View ArticleSQL Server Data Warehouse Training in Sydney – July 28
The eagle eyed among you may have noticed I’ve added a big countdown banner to the right of the page announcing a course “Build your Data Warehouse in SQL Server & SSIS with the BI Monkey“, running...
View ArticleHow to do complex aggregations through Window functions in SQL Server
The BI Monkey has a confession – his partner is also somewhat of a data geek – though more buried in doing real analytics – but I have persuaded them of the benefits of using SQL instead of SAS...
View ArticleSize every table in your database in a flash – Part 2
A looooong time a go I had a post on how to “Count the number of rows in every Table in a Database in no time!” which did an approximate row count and sizing of every table in a database using DMV’s....
View ArticleGimme a table, but hold the indexes there buddy!
I’ve just wrapped up a quick bit of work with a client who was just getting moving on their DW journey, and I found some fun things that the rookies had done. I was also partly inspired to talk about...
View ArticleTrick of a tiny database: cut down 1GB of your database every day by simply...
Even if you use an adblocker, I bet you’ve all seen this: Trick of a tiny database Well, the good news is if you have a chubby Enterprise Edition SQL Server, you too can get it on a fast weight loss...
View ArticleCreating effective date ranges from multiple sources using Window Functions
Sometimes dimension data is managed across multiple tables. Just to complicate things sometimes this data has independent effective date ranges on these sources. So when we try to tie our data...
View Article