SQL Server range Articles
Building Ranges using T-SQL
We often use excel for any running repetitive calculations since it is a very convenient user friendly interface which allows us to just enter a formula in a cell and simply drag and drop the formulas to generate a complete output. For example, I had a Products listing, with ID and Quantity for each product. [...]
Manage and Monitor Identity Ranges in SQL Server Transactional Replication
Problem When using transactional replication to replicate data in a one way topology from a publisher to a read-only subscriber(s) there is no need to manage identity ranges. However, when using transactional replication to replicate data in a two way replication topology – between two or more servers there is a need to manage identity [...]
Identity Property Range Checking in SQL Server
The IDENTITY property for a column of a numerical data type is a frequently used method to achieve system-generated “uniqueness” for each row in a table. Such a column then in turn is a quite popular choice for the PRIMARY KEY constraint. Most of the times one would choose the data type int for the [...]
Improving 2D Range Query Performance in SQL Server
When using the BETWEEN operator on multiple columns, you are likely using a 2D range query. Such queries perform very poorly in SQL Server. This article will tell you how you can often use additional information to rewrite such queries for much better performance. We’ll conclude by rewriting an actual BETWEEN query in a manner [...]


