Viewing 15 posts - 541 through 555 (of 4,081 total)
That will work but it's pricey in performance compared to just adding the column.
June 6, 2014 at 8:19 am
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...
June 5, 2014 at 5:08 pm
The 😉 was intended to denote sarcasm, guys.
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...
June 5, 2014 at 12:54 pm
Grant Fritchey (6/5/2014)
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 =...
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...
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...
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?
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...
June 2, 2014 at 9:38 am
May 30, 2014 at 8:24 am
Looks like it's been cleaned up already.
May 28, 2014 at 1:15 pm
Wow. Talk about a blast from the past..... 🙂
May 28, 2014 at 10:35 am
+1 Good topic, good article, and good discussion. 🙂
May 8, 2014 at 12:35 pm
Viewing 15 posts - 541 through 555 (of 4,081 total)