(Kris Wenzel) Both TOP and OFFSET & FETCH can be used to limit the number of rows returned. OFFSET and FETCH can return similar results to top, but there are differences which may influence which method is best for you to use in your given situation.
Tag: sql server
How to Get NULLs Horribly Wrong in SQL Server
(Robert Sheldon) NULLs in SQL are a mixed blessing. The Three-Valued Logic of SQL has its uses but can cause difficulties to anyone who assumes that NULL has a ‘value’.
SQL SERVER – FIX: Msg 3102, Level 16, State 1 – RESTORE cannot process database ‘Name’ because it is in use by this session
(Pinal Dave) Some of the simple learnings can come from unexpected places and this blog post is a classic example to that statement. Recently I got an email from one of my readers about the below error message:
Deleting Historical Data from a Large Highly Concurrent SQL Server Database Table
(Daniel Farina) I have a large table with millions of historical records. I was asked to remove millions of old records from this table, but this table is accessed by our system 24×7, so there isn’t a good time to do massive deletes without impacting the system. In this tip I will show you an unconv
SQL SERVER – FIX – Msg 3702, Level 16, State 3 – Cannot Drop Database ‘DB_Name’ Because it is Currently in Use
(Pinal Dave) We learn from mistakes and we improvise with experience. I couldn’t think of a better example than the one below for this. I have been watching many sessions by various speakers and found that many times they have struggled to get rid of below error message.
How to Dramatically Decrease Data Warehouse Load Times with Memory-Optimized Tables
(Tyler Chessman) Recently, I needed to optimize a nightly batch process for a SQL Server data warehouse that involved loading over 250,000 flat files.
Row Level Security in SQL Server 2016 CTP2
(Derik Hammer) Earlier this year Microsoft Azure implemented Row-Level Security (Brent’s announcement). In following Microsoft’s cloud-first release concept, this great feature is now part of SQL Server 2016 CTP2, and expected to be included in the RTM version.
Prototyping Layout and Design with Datazen
(Melissa Coates) In looking at Datazen recently, there is one feature that jumped out at me as being very useful for prototyping. Datazen calls it the ‘Design-First’ methodology.
SQL Server Analysis Services Rank and Row Number Ordering
(Scott Murray) Does SQL Server Analysis Services SSAS MDX have Row Number, Rank and Dense Rank functions like the SQL Server database engine?
What is Microsoft Azure Stream Analytics?
(James Serra) Microsoft Azure Stream Analytics (ASA) is a fully managed cloud service for real-time processing of streaming data. ASA makes it easy to set up real-time analytic computations on data flowing in from devices, sensors, web sites, applications and infrastructure systems.
