SQL Server 2012 T-SQL at a Glance – OFFSET/FETCHCommented on: 3 years ago
(November 21, 2010)
For 1st puzzle, i think we can use your prev. trick of (select 1) only.. SELECT * from tblNumbers order by (select 1) offset 0 rows FETCH First 1 ROW ONLY;
For 2nd : We can take a...
More about Calculating Concurrent SessionsCommented on: 4 years ago
(November 29, 2009)
Is this logic is correct??? This is my first reply to your blog....
select APP,MAX(cnt) as NoOfSessions from
( select s1.app,s.stime,COUNT(*) as cnt from (select app,starttime as sTime...
SQL Server Management Studio is a complex application that does a ton of wonderful things and, with SSMS 2014, there are still a couple of quirks or issues that I hope that Microsoft addresses or corrects someday....More
Windows Server 2012 or Windows Server 2012 R2 Standard Edition is a great way to save thousands on licensing—and save yourself some serious headaches when deploying SQL Server AlwaysOn Availabiliity Groups....More
While I believe that NoSQL can have some places where it legitimately makes sense, I also believe that NoSQL is also the patently wrong choice for a number of different types of applications or use cases....More