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...
In managing a database or sometimes numerous databases, we often get caught up in the day-to-day maintenance and lose sight of the other principles we know are critical to ensuring optimal performance. Here’s a quick refresher....More
Alerts represent a great way to take a proactive stance on being notified or alerted when something ugly, potentially ugly, or important happens on a SQL Server. On most servers that I manage, I typically deploy a whole bevy of different alerts....More