Expiring Databases and Policy-Based Management
Today on Twitter my friend Jes “Run Forrest Run” Schultz Borland (Blog | Twitter) asked the Community “How do you clean...
2011-10-06
1,268 reads
Today on Twitter my friend Jes “Run Forrest Run” Schultz Borland (Blog | Twitter) asked the Community “How do you clean...
2011-10-06
1,268 reads
There’s a bunch of stuff scheduled for the PASS Summit next week. You can see some of the events on...
2011-10-06
1,400 reads
First, I want to apologize to the three people that read my blog. Sorry for going dark for such a...
2011-10-06
3,664 reads
I made you something wonderful. It’s a cheatsheet for the PASS Summit, which has info about us (of course), about...
2011-10-06
628 reads
Wow, what an event. I had to run to Redmond right after this so I am sorry this post is...
2011-10-06
819 reads
Oh, dear! One more week until this year’s PASS Summit. If you haven’t registered yet, you’re really cutting it close. ...
2011-10-06
780 reads
By David Postlethwaite
The last two days of SQL Bits provide opportunities to hear short 50 minutes presentations from experts
on a...
2011-10-06
731 reads
I mentioned this in my SQLFun post last night and wanted to call out separately here, I typically do a...
2011-10-06
798 reads
The GiveCamp in Orlando needs volunteers to convert 25 reports from Crystal to Reporting Services. Food is provided, just need...
2011-10-06
548 reads
When trying to detect whether updates have been installed or not, there were several places we investigated:
HKLM\Software\Microsoft\Windows\CurrentVersion\UninstallHKLM\Software\Microsoft\WindowsNT\CurrentVersion\HotFixHKLM\Software\Microsoft\UpdatesSome updates still write to...
2011-10-06
2,719 reads
By Steve Jones
This is timely, as I’m currently on a boat in the Adriatic taking a...
You can find the slides and SQL scripts for my session “Spice up your...
By SQLPals
How to Clear the SSMS Cache (SSMS 21 and Later) Updated...
Telp/Wa 628218200203 Gedung Sutrado, Jl. Kenari 2 No.5 Lt. 1, RT.2/RW.3, Kenari, Kec. Senen,...
Telp/Wa 628218200203 Jl. Biak No.44 AB, RT.8/RW.11, Cideng, Kecamatan Gambir, Kota Jakarta Pusat, Daerah...
Telp/Wa 628217555651 Gedung Plaza Bank Index Ground, Jl. M.H. Thamrin No.57 Floor Suite GF-21,...
We have this code that sets some status values and then queries them using the CHOOSE() function in SQL Server 2025.
CREATE TABLE Status
(
StatusID INT,
StatusDescription VARCHAR(20)
);
GO
INSERT dbo.Status
(
StatusID,
StatusDescription
)
VALUES
(0, 'Uncategorized'),
(1, 'Active'),
(2, 'Inactive'),
(3, 'Temp');
GO
SELECT CHOOSE(StatusID, 'Unknown', 'Active', 'Inactive', 'Temporary')
FROM Status;
When the SELECT runs, what is returned? See possible answers