What's wrong with Linq to SQL
There's a lot of buzz in the development community about LINQ in general, and for those that do data access...
2008-02-04
471 reads
There's a lot of buzz in the development community about LINQ in general, and for those that do data access...
2008-02-04
471 reads
James Luetkehoelter has announced his book on SQL Server Disaster Recovery is complete. It is published by aPress and due...
2008-02-04
908 reads
This is a small surprise, mainly because it looked like only Visual Studio 2008 was actually going to make the...
2008-02-04
622 reads
I attended the South Florida Code Camp this past Saturday and it turned out to be quite an event. More...
2008-02-04
322 reads
In case you haven't seen this elsewhere, if you want Microsoft to release SP3 for SQL Server 2005. It's time...
2008-02-03
950 reads
SQL Server MVP Randy Dyess has a short webcast which provides the highlights of SQL Server 2008 security.He includes some...
2008-02-03
623 reads
SQL Server MVP Andy Leonard is on the latest edition of .NET Rocks! If you're not familiar with .NET Rocks!,...
2008-02-01
759 reads
Yesterday, as I was pulling into my driveway, my front left tire gave. Thankfully, I was going really slow and...
2008-01-31
1,672 reads
I've been dealing with a security product from a security company in recent days that breaks best practices with respect...
2008-01-30
2,312 reads
Saw this in the MSDN flash yesterday, MS has a new Silverlight site up (newest toy and all!) that focuses...
2008-01-29
1,404 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 Jl. Batu Ceper No.18 A-B, RT.1/RW.2, Kb. Klp., Kecamatan Gambir, Kota Jakarta...
Telp/Wa 628218200233 Komplek Apartemen Grand Kartini, Ruko. 18, Jl. Kartini Raya No.57, RT.3/RW.2, Kartini,...
Telp/Wa 628217555651 Wisma 46 Lantai Dasar, Jln. Jend. Sudirman Kav. 1, RT.5/RW.3, Senayan, Kec....
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