Resolve SQL Server Identity Jumping 1000 Issue, resolve with DENTITY_CACHE

In SQL Server time we faced an issue with the Identity field, It directly jumps with 1000 numbers. So in this article, we resolve this issue. What to do suppose your last entry put with Jumped value. Copy your last row data somewhere in notepad Remove last row The above code will reset your seed … Read more

SQL Server table reset seed | RESEED | reseed table data

Some time table identity value comes wrong sake of we delete manual entries, we added wrong data in edit mode or it takes next value of identity or some time automatically comes. So in this case many developer are delete data or re-design to table structure (schema). No need to do this you just clear … Read more

Where clause on json data in SQL Server | JSON_VALUE

A very rare example of this. But I find out suppose you have a list of key values, or you want to search value corresponding of the key, you will pass key and get the value of that from JSON list. Using the below example you can easy to achieve this. I have this json … Read more

SQL Server recursive query, Which returns all ancestors of an item

We will create a recursive query when getting data as per parent and its level. Mostly we use this query in MLM software (Multilevel marketing software). Using this you can easy to get who is my parent till the level we wanted to find. for more info follow this URL: https://stackoverflow.com/questions/16749095/sql-recursive-query-that-gets-all-ancestors-of-an-item Create new stored procedure … Read more

What are sub query and its properties?

A sub-query is a query that can be nested inside the main query like Select, Update, Insert, or Delete statements. This can be used when the expression is allowed. Properties of sub query you can follow points sub query should be placed on the right-hand side of the comparison operator of the main query sub … Read more