Viewing 15 posts - 541 through 555 (of 4,080 total)
I agree with Sean that the easiest solution for you is to add the additional column to store the old ID.
The OUTPUT clause can only access columns from the table...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
June 5, 2014 at 5:08 pm
The 😉 was intended to denote sarcasm, guys.
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
June 5, 2014 at 2:15 pm
Grant Fritchey (6/5/2014)
Sean Lange (6/5/2014)
http://www.sqlusa.com/bestpractices/%5B/url%5D
Don't worry there is soap for your eyes. Then if you read some of the content you may want...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
June 5, 2014 at 12:54 pm
Grant Fritchey (6/5/2014)
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
June 5, 2014 at 12:47 pm
Koen Verbeeck (6/3/2014)
jasona.work (6/3/2014)
How do people find all these "undocumented" options for various SQL commands?
dbcc autopilot???
create index... WITH STATISTICS_ONLY =...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
June 5, 2014 at 12:43 pm
GilaMonster (6/2/2014)
Lynn Pettis (6/2/2014)
Between NOLOCK and no gaps in invoice numbers how much more fun can we have??Replacing EXISTS with (something) because Some Person said it's slow.
As Stevie Wonder once...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
June 2, 2014 at 3:03 pm
The composable DML looks interesting. I'm curious to look at it's execution plan and see how it performs with large batches.
An alternative I've seen involved a...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
June 2, 2014 at 10:09 am
Eirikur Eiriksson (5/29/2014)
I have found that one should generally (as much as I dislike generalization) avoid AUTO_GRID.😎
Would you care to elaborate why?
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
June 2, 2014 at 9:46 am
create table #TestData (Col1 varchar(20))
insert into #TestData
select 'aaa' union all
select 'bbb' union all
select 'ccc'
select stuff((select ','+Col1
from #TestData
order by col1
for xml path(''))
,1,1,'') as delimitedlist
Edited:
Whups, you were too...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
June 2, 2014 at 9:38 am
Have a great summer, Steve.
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
May 30, 2014 at 10:37 am
Open the pod bay door, Hal....
http://www.visual-memory.co.uk/amk/doc/zg.html

__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
May 30, 2014 at 8:24 am
Looks like it's been cleaned up already.
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
May 28, 2014 at 1:15 pm
Wow. Talk about a blast from the past..... 🙂
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
May 28, 2014 at 10:35 am
+1 Good topic, good article, and good discussion. 🙂
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
May 8, 2014 at 12:35 pm
I agree this is best as a series of small articles.
Some of my favorite techniques:
1) Use a tally table and SUBSTRING() to represent character string as a table...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 11, 2014 at 4:38 pm
Viewing 15 posts - 541 through 555 (of 4,080 total)