Logic Puzzle – Dice SubstituteCommented on: 6 years ago
(June 30, 2009)
My last attempt did not work well... :)
Here is another try with different format to present the logic:
1). flip coin 1
2). head > go to 4).
3). tail > go to 7).
4). flip coin 2
5). head > go to 10...
T-SQL Puzzle – Custom SequenceCommented on: 6 years ago
(January 26, 2009)
Here is SQL Server 2008 solution using composable DML:
INSERT INTO Invoices(invoiceid, custid, invdate, amt)
SELECT invoiceid, @custid, @invdate, @amt
FROM (UPDATE dbo.Sequence
Digital Magazine Archives
Browse back issues of SQL Server Pro, from January 2007 through the last issue published in April 2014. Find the back issues here.
Throughout this series of posts I’ve taken a somewhat pessimistic view of how SQL Server Agent jobs are managed within most organizations – meaning that most of the code and examples I’ve provided up until this point were based on assumptions about how CHANGE to jobs is managed. That pessimism, to date, has come in two forms:...More
In this series of posts I’ve called out some of the concerns related to SQL Server AlwaysOn Availability Groups and their interaction with SQL Server Agent jobs – both in the form of Batch Jobs (see post #3) and backups....More
When I initially decided to write about AlwaysOn Availability Groups and SQL Server Jobs, I knew I’d have a bunch of different posts on a variety of different topics. To that end, I initially planned on this series of posts being comprised of 3 main parts:...More