2015-02-06
213 reads
2015-02-06
213 reads
In my continuing series entitled “On Failure”, I want to talk about skiing.
I’m not a great skier. It would probably...
2015-02-16 (first published: 2015-02-06)
5,960 reads
It’s Friday, time to look back at the most popular RealSQLGuy posts of the week. Because it’s Friday and you’re...
2015-02-06
422 reads
2015 should be a very busy year for most DBAs, due to the end of support of SQL server 2005...
2015-02-06
332 reads
According to MSDN: If the SQL Server service is running as a built-in account, such as Local System, Local Service,...
2015-02-06
644 reads
**Update** I have noticed that these cmd files are missing from recent ssdt builds, to enable logging see Kevin's comment:
http://blogs.msdn.com/b/ssdt/archive/2014/07/15/sql-server-data-tools-ju…
**/update I was helping someone get a deployment filter working...
2015-02-05
21 reads
**Update** I have noticed that these cmd files are missing from recent ssdt builds, to enable logging see Kevin’s comment:
http://blogs.msdn.com/b/ssdt/archive/2014/07/15/sql-server-data-tools-ju…
**/update...
2015-02-05
76 reads
**Update** I have noticed that these cmd files are missing from recent ssdt builds, to enable logging see Kevin’s comment:
http://blogs.msdn.com/b/ssdt/archive/2014/07/15/sql-server-data-tools-ju…
**/update...
2015-02-05
139 reads
T-SQL is not the best language in the world for formatting strings. It can be done, but typically you are...
2015-02-16 (first published: 2015-02-05)
6,295 reads
Friends,
Sometimes it might be possible that you have to run dos command from SQL SERVER. In such situation you have...
2015-02-05
26,927 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...
Comments posted to this topic are about the item Using CHOOSE()
Comments posted to this topic are about the item Re-Seeding a Broken Log Shipping...
Comments posted to this topic are about the item The DBA is Dead! Long...
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