Error : Property Size is not available for Database "[tempdb]"
Today when I clicked Properties of tempdb in SSMS, I got the error message below:
At first I thought the database...
2014-01-23
6,517 reads
Today when I clicked Properties of tempdb in SSMS, I got the error message below:
At first I thought the database...
2014-01-23
6,517 reads
Application lock can be used to synchronize T-SQL code, you can control if the session is able to run the...
2013-11-15
5,086 reads
Several Situation will cause the log shipping restore job failed on secondary server
1. Restore job is not able to access the...
2013-11-09
11,324 reads
1. How to connect client to a Database Mirroring Session with failover aware
A: add FailoverPartner keyword in the connection string,...
2013-11-08
14,047 reads
Today I got a database mirror case, I was told the all databases were in disconnected\in recovery status on both...
2013-11-06
1,267 reads
Recently I saw a post regarding the count(1) and count(*)
http://www.sqlservercentral.com/articles/T-SQL/102474/
the post said "You know that doing COUNT(*) on a table with...
2013-10-28 (first published: 2013-10-20)
5,808 reads
Today my colleague come to me and ask me why her database restore query was hang. She was going to...
2013-10-01
1,275 reads
Find a useful system store procedure to list all mapping user of SQL login account.
sp_msloginmappings @Loginname , @Flags
@loginname: the login account name, If...
2013-09-27 (first published: 2013-09-24)
9,904 reads
1. SET STATISTICS TIME ON
It not only tell you the compile time of sql command, but also show you the...
2013-09-19
10,229 reads
I got an strange error when installing SQL Server 2012 Express
Environment:Window Server 2008 R2 Enterprise + SP1Microsoft Visual Studio 2012 installed.Net...
2013-08-07
1,943 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