LessThanDot Site Logo

LessThanDot

A decade of helpful technical content

This is an archive of the posts published to LessThanDot from 2008 to 2018, over a decade of useful content. While we're no longer adding new content, we still receive a lot of visitors and wanted to make sure the content didn't disappear forever.

Rule "Previous releases of Microsoft Visual Studio 2008" failed

I recently tried to install SQL Server 2008 Express Edition, only to receive a nice error message: I found this rather strange, as I already have VS2008 SP1 installed: I found a few posts where other people were having the same problem, but most fixes usually involved uninstalling Visual Studio first and I really didn’t want to go through this. Other workarounds suggested it would work if you unticked SSMS, but this wasn’t something I wanted either!

Read More...

cidaemon.exe process CPU usage on Windows Server 2003 R2

One of my Windows Server 2003 R2 boxes started showing CPU bumps of 0 to 10% late last night. In investigating this a process cidaemon.exe was found to be the process causing the small but consistent utilization. This process is associated with full text indexing on Windows. Even if you don’t use full text indexing, Windows does. I found 3 catalogs setup on the server. One of the defaults being the system volume.

Read More...

SQL Server 2008 sp1 Download

SQL Server 2008, Service Pack 1 has been released. download it here: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=66ab3dbb-bf3e-4f46-9559-ccc6a4f9dc19 *** If you have a SQL related question try our Microsoft SQL Server Programming forum or our Microsoft SQL Server Admin forum

Read More...

SQL Server: When 8000 Characters Is Not Enough

MS SQL Server 2000 has a limitation of 8000 characters in a varchar variable. The historical reason for this limitation, I believe, is related to the 8k size of data pages, where in-row data can’t exceed something like 8060 bytes (actual numbers vary a little). But what if you need to work with data that is longer than 8000 characters? When storing data in a table, you can use the text datatype which is stored out-of-row (though there are options about storing strings shorter than 8k characters in-row and then moving them out-of-row if they grow).

Read More...

Simple advice for choosing an ESB

I thought I would share a recent question that was raised on LinkedIn, which asked: Starting the Holy Wars on ESB? Who brings the best package deal to the table i.e IBM, MSFT…… Look at this way “ A mid sized cash crunched has to implement ESB what are the options it has” or rather who should it be married to. Any thoughts Tons of ESB from various players are in the market IBM, MSFT, Oracle , SAP but remember its a cash crunched company which requires the ESB.

Read More...

Use Joins, Not IN

While untangling a pretty nasty correlated subquery someone had written at work that was going three layers deep with IN (select X from Y) type of stuff, I used twitter to vent some of my rage SQL Training Wheels. This found its way to facebook, where one of my friends (and fellow LessThanDot members) asked “How So”. Well, the answer is simple. Like training wheels, they are easy. Damn easy. But, also like training wheels, they can really get in the way.

Read More...

SQL Friday, The Best SQL Server Links Of The Past Week Episode 16

Time for another episode of the SQL Friday, The Best SQL Server Links Of The Past Week show. I skipped last week because of some mysterious reason. Here is what I found interesting this past week in SQL Land: The death of datetime? Bart Duncan explains why you should almost always use DateTimeOffset instead of Datetime Who is Active? v8.40 – Now With Delta Power! Adam Machanic has updated his Who is Active with a huge number of changes, fixes, and enhancements

Read More...

Show message for SSRS reports that do not return data

It is good practice to show the user a message if your report does not return any data. There are a few methods to do this and here is a simple one that can be added to most existing reports that are subscription based. Create a blank report. Add a dataset that returns some data. You can use the following query to create your example… select 1 col1,2 col2,3 col3,4 col4,5 col5 union all select 1 col1,2 col2,3 col3,4 col4,5 col5 union all select 1 col1,2 col2,3 col3,4 col4,5 col5 union all select 1 col1,2 col2,3 col3,4 col4,5 col5 union all select 1 col1,2 col2,3 col3,4 col4,5 col5 union all select 1 col1,2 col2,3 col3,4 col4,5 col5 union all select 1 col1,2 col2,3 col3,4 col4,5 col5 Of course you need a data source to create a report so just create one to a test system or local instance.

Read More...

VB6 Remove date part of DateTime

Have you ever needed to remove the time part of a date variable, or remove the date part of a date variable? I recently had a requirement to do this, and my first reaction was to use the format function because it is very flexible and quite simple to use. Unfortunately, it does’t perform very well. First, the format method for removing the time part. Debug.Print Format(Now, "Short Date") 4/1/2009 Debug.

Read More...

ExecutionLog Table in SSRS 2008 Gone

You may notice that now in SSRS 2008 you are missing a critical reporting table named ExecutionLog. Well, you really aren’t missing it. This table was the bread and butter of trending for administrators. If you weren’t using it to gauge your reporting services activity then you should. A simple query like select Count(*) cnt,[Name] ReportName from executionlog a join catalog b on a.reportid = b.itemid Where convert(varchar(10),timeend,101) >= @st And convert(varchar(10),timeend,101) <= @end And [Status] = 'rsSuccess' group by reportid,[Name] order by [name] Could buy you a new reporting server.

Read More...