Viewing 15 posts - 6,301 through 6,315 (of 8,753 total)
As implied, the concept has been around for a long time, tends to be shaped somewhat by whichever technology is in at the time. In my opinion, tossing in another...
January 10, 2015 at 11:29 am
For completeness (and some fun :-)) here are two other solutions for 2012 and later
😎
Almost direct translation to window function version, uses LAG instead of aggregation for the cross row...
January 10, 2015 at 5:14 am
Quick but slightly verbose solution, does only scan the table once but that comes at an additional cost, would be a perfect case for LAG/LEAD on SQL Server 2012 or...
January 10, 2015 at 2:55 am
Dee Dee-422077 (1/9/2015)
My example data as this:
ID code1 code2
1 a ...
January 9, 2015 at 10:29 pm
Got it printed in a folder along with your's (about three years back) and Phil Factor's last years RBARR / RBAR-RAND one;-)
😎
January 9, 2015 at 1:05 pm
Jeff Moden (1/9/2015)
January 9, 2015 at 12:46 pm
JP10 (1/9/2015)
Now I want to be able to create an "update" statement like "UPATE tbl2...
January 9, 2015 at 12:10 pm
Jeff Moden (1/9/2015)
Eirikur Eiriksson (1/9/2015)
January 9, 2015 at 12:07 pm
My thought is that some of the random function implementations in SQL Server are more caused by the limitations of this particular function ( RAND() ) rather than anything else....
January 9, 2015 at 10:04 am
Quick thought, an alternative way of getting an execution plan for this kind of simple statements is to use a CTE, has less inpact/noise in the plan as it's normally...
January 9, 2015 at 7:48 am
Luis Cazares (1/8/2015)
spaghettidba (1/8/2015)
Steve Jones - SSC Editor (1/8/2015)
It's probably not that site posting SPAM, but someone with an affiliate code, or perhaps just a vandal.
Maybe. Meanwhile, no response from...
January 8, 2015 at 12:33 pm
spaghettidba (1/8/2015)
Are the spammers getting worse?Fight fire with fire: let's spam their contact form!
Now all you have to do is to create a SQL Job that posts random text to...
January 8, 2015 at 12:03 pm
Meatloaf (1/7/2015)
Dim objConn, objRS, strQuery,strConnection
set objConn = Server.CreateObject("ADODB.Connection")
set objRS = Server.CreateObject("ADODB.RecordSet")
strConnection = "User ID=xx;Password=xxxxxxxxxx;"
strConnection = strConnection & "Driver={SQL Server};Server=DB_Server_NAME;Database=MY_DB;"...
January 7, 2015 at 8:28 am
Meatloaf (1/7/2015)
January 7, 2015 at 6:17 am
ScottPletcher (1/6/2015)
Eirikur Eiriksson (1/6/2015)
ScottPletcher (1/6/2015)
Jeff Moden (1/4/2015)
asita (1/3/2015)
Nolock is ignore the locks (please ignore it)
Trust me Dhani, we know what it does and folks in-the-know can't just ignore it. ...
January 6, 2015 at 2:30 pm
Viewing 15 posts - 6,301 through 6,315 (of 8,753 total)