Starting in SQL Server 2016 a new service started showing up. It was the SQL Server Launchpad service. If you have ever wondered about it, I will explain what it is and why it exists. According to Microsoft Docs ( https://bit.ly/2Myg5Ph ) “ The SQL Server Launchpad is a service that manages and executes external scripts, similar to the way that the full-text indexing and query service launches a separate host for processing full-text queries. ” There, that explains everything. No? OK, to quote Inigo Montoya, “Let me explain. No, there is too much. Let me sum up.” The Launchpad runs as an external service in order to handle the native capabilities of SQL to execute R or Python scripts. When you make a call to R or Python in SQL Server, it does not run internally like a T-SQL call would. Instead, it makes a call to the Launchpad service and that service runs the R or Python script. Certainly, it appe...
Identity columns are nothing new in T-SQL. They are great when you want a unique number to be automatically assigned every time you insert a new record. The trouble is that while they are unique within the table, they are probably the same between tables. Every table with an identity column has a 1 for the first record, a 2 for the second, etc. Of course you can set the seed and increment for the identity column to something other than (1,1), but you still have to manually track which table has which seed. Trying to track that is destined for failure. What we really need is a way to have automatically assigned numbers for new records, but ones which are guaranteed to be unique across any table that uses them. Of course, you know I wouldn’t be writing this if there weren’t a solution. In SQL Server 2012, Microsoft introduced something called the SEQUENCE object that does this very thing. ENTER THE SEQUENCE… There are two steps involved here. First we create the SEQUENCE obje...