Viewing 15 posts - 1 through 15 (of 522 total)
Hugo Kornelis (1/7/2015)
COUNT, as any other aggregate, ignores NULL values.
COUNT(*) is special. The...
Best Regards,
Chris Büttner
January 8, 2015 at 1:27 am
🙁 I had guessed that this was a question about case sensitivity and "duplicate" rows that only differ in case (e.g. Master vs. master). I also assumed the table "databases"...
Best Regards,
Chris Büttner
April 14, 2014 at 1:10 am
Yes, the question is a little ambiguous, but that has no impact on the answer, since the service itself is not listed as an option (with no switches).
Definitively not a...
Best Regards,
Chris Büttner
January 16, 2014 at 6:41 am
For SQL Server 2008 R2 there is no valid answer, as sys.dm_exec_sessions does not contain the open tran count. But thanks to this, I have learned that this column is...
Best Regards,
Chris Büttner
January 13, 2014 at 1:35 am
Thanks for the question!
Best Regards,
Chris Büttner
November 17, 2013 at 11:55 pm
Nice Question, but I dont understand this:
Before answering the question:
Analytical functions available in SQL 2005
By Rob Stebbens, 2013/11/08
And after answering the question:
Analytical functions available in SQL 2005
By Amit...
Best Regards,
Chris Büttner
November 11, 2013 at 1:36 am
sknox (9/23/2013)
So the correct answer should be "It depends on the security requirements"?
The...
Best Regards,
Chris Büttner
September 23, 2013 at 9:10 am
PHYData DBA (8/1/2013)
DECLARE @var money = 123456789101118.12345
DECLARE @varchar nvarchar(35)
DECLARE @char nchar(22)
--Select 1
SELECT LEN('123456789101118.12345'), DATALENGTH('123456789101118.12345') ,'123456789101118.12345'
--Select 2
SELECT LEN(@var), DATALENGTH(@var), @var
--Select 3
SELECT @varchar = convert(nvarchar(25), @var)
SELECT LEN(@varchar), DATALENGTH(@varchar), @varchar
--Select...
Best Regards,
Chris Büttner
August 1, 2013 at 7:13 am
john.arnott (7/31/2013)
L' Eomot Inversé (7/30/2013)
Best Regards,
Chris Büttner
August 1, 2013 at 1:24 am
raulggonzalez (7/15/2013)
It's funny, though, that if you alias the column, both names can be used (original & alias) in the ORDER BY clause
Try to think of the column alias as...
Best Regards,
Chris Büttner
July 15, 2013 at 5:33 am
Viewing 15 posts - 1 through 15 (of 522 total)