Quantcast
Channel: Louis Davidson : t-sql
Browsing latest articles
Browse All 39 View Live

Image may be NSFW.
Clik here to view.

Is It Ever Better to Not Name Constraints?

This is part 1 of my Tips and Tricks blogs for my upcoming book project . For all of my professional writing career, I have been forced to be on the top of my formatting game when writing code....

View Article



Image may be NSFW.
Clik here to view.

Row Level Security – Part 1–Simple Read operations

This is part 1 of my Row Level Security blogs for my upcoming book project . Row Level Security is a very interesting feature. Unlike Dynamic Data Masking (link), which looks interesting on it's face,...

View Article

Image may be NSFW.
Clik here to view.

Presenting on Concurrency Three Times This Month…Though Not Concurrently

Tomorrow night, March 15, I will be at the Hampton Roads SQL Server User Group’s March meeting, then at SQL Saturday Richmond on Saturday the 19th, then finally back at home on the 25th for my home...

View Article

Image may be NSFW.
Clik here to view.

Row Level Security-Part 3-A few more advanced scenarios

In this final entry (for now!) in my series on Row Level Security ( Part 1 , Part 2 ) I am going to show a couple of slightly more complex scenarios. I will only scratch the surface of what you could...

View Article

Image may be NSFW.
Clik here to view.

Curious - How does STRING_SPLIT (2016) handle empty/NULL Input?

If you haven't seen STRING_SPLIT, it is pretty awesome, and something we have all been working with for many years, which you can read about in Erland Sommarskog's great article here along with many...

View Article


Image may be NSFW.
Clik here to view.

T-SQL Tuesday #86 My all-time favorite personal SQL Server Enhancement...

I have heard the name T-SQL Tuesday for (like,) ever; but I have always been so into my own bundle of insanity that never took the time to figure out what it is. This changes today because I read a...

View Article

Image may be NSFW.
Clik here to view.

Saving a Few Lines of Code by Performing Multiple Operations in a Single Command

I was in Mike Byrd's session on in-memory technologies the other day and I saw him do something I had never seen and it prompted me to write this blog today. It has nothing to do with in-memory, as the...

View Article

Image may be NSFW.
Clik here to view.

A new (to me, and possibly you) SSMS feature - Query Plan Comparing

Wow, Microsoft has really changed in culture recently. This new rapid release cycle for SSMS is seemingly paying dividends in a major way. In a recent build of SSMS (okay, perhaps not "recent", more...

View Article


Image may be NSFW.
Clik here to view.

Creating FOREIGN KEY constraints as enabled, trusted, non-trusted, and/or...

I am in the middle of building a utility (for work, and for my next SQLBLOG post), that will help when you need to drop the foreign key constraints on a table, but then replace them without having to...

View Article


Image may be NSFW.
Clik here to view.

Utility to script a FOREIGN KEY Constraint

Note: Amended to cascading and NOT FOR REPLICATION. As noted in my previous post , I am in the middle of building a utility (for work, and for my next SQLBLOG post), that will help when you need to...

View Article

Image may be NSFW.
Clik here to view.

Utility to temporarily drop FOREIGN KEY constraints on a set of tables

I was working on a database a few weeks back (maybe longer, I am kind of busy with several projects right now), and I wanted to truncate a set of tables. There was one central table, and 8 tables...

View Article

Image may be NSFW.
Clik here to view.

Row Level Security and Indexed Views

I was giving my Row Level Security session last weekend for the Richmond User Group ( @RichmondSQL   http://rva.pass.org/) and a question came up (ok, so I technically asked the question). How does the...

View Article

Image may be NSFW.
Clik here to view.

Using AT TIME ZONE to manipulate and convert time zones

I have a series of blogs about temporal tables in SQL Server 2016, which you can see here . However, one thing I never had mentioned was that the Temporal Row Start and End Times are always stored in...

View Article


Image may be NSFW.
Clik here to view.

Temporal Tables - Part 6 - Start and End Times in UTC Time Zone

In my first 5 blogs on Temporal , I failed to note something pretty important about their usage. The start and end times for the row (and it follows, the historical rows) are likely not in your local...

View Article

Image may be NSFW.
Clik here to view.

How the rowversion datatype works when adding and deleting columns

For years, I had thought (and was probably taught in SQL.AlongTimeAgoInAPlaceFarFarAway) that the timestamp column (well before rowversion was a thing,) was not guaranteed to be an ever increasing...

View Article

Browsing latest articles
Browse All 39 View Live




Latest Images