How to Update @@SERVERNAME to Actual Machine Name?
The @@SERVERNAME Global Variable
The system global variable @@SERVERNAMEcan be used to return the name of the machine the SQL Server...
2017-12-19 (first published: 2017-12-07)
4,788 reads
The @@SERVERNAME Global Variable
The system global variable @@SERVERNAMEcan be used to return the name of the machine the SQL Server...
2017-12-19 (first published: 2017-12-07)
4,788 reads
(Part 1 of 2 -about and for Speakers.) The SQL Server community stands out as one of the most open, sharing, and giving technology communities. Around the world, there...
2017-12-07
14 reads
(Part 1 of 2 -about and for Speakers.) The SQL Server community stands out as one of the most open, sharing, and giving technology communities. Around the world, there...
2017-12-07
28 reads
(Part 1 of 2 -about and for Speakers.) The SQL Server community stands out as one of the most open,...
2017-12-07
469 reads
I have been working with ARM templates for a little while and have found it really annoying to test functions...
2017-12-18 (first published: 2017-12-06)
1,177 reads
I have been working with ARM templates for a little while and have found it really annoying to test functions inside the templates, you see if you have an...
2017-12-06
20 reads
I have been working with ARM templates for a little while and have found it really annoying to test functions...
2017-12-06
19 reads
I have been working with ARM templates for a little while and have found it really annoying to test functions...
2017-12-06
44 reads
I have been working with ARM templates for a little while and have found it really annoying to test functions...
2017-12-06
59 reads
The Data Migration Assistant is a great tool developed to assess your SQL Server environment for a migration to a...
2017-12-06
988 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 Risk Vs Reward, The never...
Telp/Wa 628218200203 Jl. Cideng Timur No.11 F, RT.5/RW.4, Petojo Utara, Kecamatan Gambir, Kota Jakarta...
Telp/Wa 628218200233 Kem Tower, Jl. Landas Pacu Barat No.Kav 2 Blok B, RW.10, Gn....
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