It's always great when you work with state-of-the-art technology. HoloLens is one such device. A unique, one of it's kind device. And more greatful when you share the knowledge with the community and mentor them.
I am part of technology community - K-MUG. Last month, we decided to take break from all seasoned topics and shifted gears to bring exciting and state-of-the-art technology to passionate audience. We hosted an exclusive event on Augmented Reality and Mixed Reality titled - Mixed Reality TechDay. I had unique opportunity to address an awesome crowd of technology enthusiasts - engineers, professionals, students and all passionate individuals.
We are overwhelmed to go house full.
An event that we dare claim went over the moon based on the feedback and the smiling faces of 60+ attendees.
More photos are available in our Facebook community page. Feel free to join and attend our next events.
When we have huge records in database, it is always wise to implement paging instead of querying all the data at once. Gone are the days were we wrote long line of code to implement paging. With SQL Server 2012, we can do that in just few lines. Here is a quick sample script to query 10 records after 50th record.
Declare @PageIndex Int -- current page index
Declare @PageSize Int -- fetch this much record
Declare @Offset Int -- number of rows to skip
Set @Offset = @PageIndex * @PageSize
Select * From DemoUser
Order By Id Offset @Offset Rows
Fetch Next @PageSize Rows Only
Reference: OFFSET FETCH Clause
Hope this helps.
Last day, I was playing with paging in SQL Server and had to create some test data to test the same. Here goes the script to generate test data.
DECLARE @UserTable TABLE (Id int, Name nvarchar(150))
;WITH cte AS
SELECT 1 Id
SELECT Id + 1
FROM cte WHERE Id + 1 <= 100000
INSERT INTO @UserTable(Id,Name)
SELECT Id, Concat('Name_', convert(int, convert (varbinary(4), NEWID(), 1))) AS Name FROM cte c
OPTION (MAXRECURSION 0)
SELECT u.Id, u.Name
FROM @UserTable u
Hope this helps.