Viewing 15 posts - 16 through 30 (of 532 total)
Looks like you want someone to do your homework.
If you want help, post what you're trying and specifics of how your efforts are not getting you the data you're expecting.
October 3, 2012 at 3:44 pm
The Dictionary.com definition of kludge:
a software or hardware configuration that, while inelegant, inefficient, clumsy, or patched together, succeeds in solving a specific problem or performing a particular task
I would not...
October 3, 2012 at 3:40 pm
GSquared (10/3/2012)
However, on a process like this, if you...
October 3, 2012 at 3:05 pm
while 1 = 1 loops just fine. It will break out of the loop when applicable because of the break statement.
My bad on @@ROWCOUNT ... that value should be...
October 3, 2012 at 2:55 pm
Wow, they built a billion record heap? Ouch. Sorry man.
October 3, 2012 at 12:53 pm
sql-lover (10/3/2012)
That's a very nice piece of code, thank you so much. However, I wonder how many locks (if one) it will create. Like I said, the production server has...
October 3, 2012 at 12:36 pm
Maddave (10/3/2012)
October 3, 2012 at 12:04 pm
aaron.reese (10/3/2012)
October 3, 2012 at 11:45 am
The term for the issue in your query that you're dealing with is that it is "non-deterministic". Although you experienced the same order of results in the past, there...
October 3, 2012 at 11:11 am
This is the kind of code I was referring to if you choose to go with a chunking process rather than BCP. We've had similar projects as yours and...
October 3, 2012 at 10:59 am
Depending on your timeline, you could do this with virtually zero downtime. Rather than doing a bulk copy, you could easily chunk this up since you're not looking for...
October 2, 2012 at 5:32 pm
ScottPletcher (10/2/2012)
Maybe I'm missing something.Why not just ALTER the column to be a bigint instead of an int?
He said these are very big tables. Altering the column means that...
October 2, 2012 at 4:29 pm
I'm not sure how logical this project is, but it seemed interesting to do this without looping. It was fun.
declare @b-2 bigint = 31;
declare @out varbinary(128) =...
October 2, 2012 at 3:49 pm
declare @input int = 113804
-- these are the different parts that will be used
select @input / 10000
select (@input / 100) % 100
select @input % 100
-- SQL Server 2008 Query
select convert(time,...
October 2, 2012 at 12:40 pm
One minor point ... even if you decide to use what they've established, you can make the inserts quite a bit more efficient by ditching the cursor loop. The...
October 2, 2012 at 12:19 pm
Viewing 15 posts - 16 through 30 (of 532 total)