Viewing 15 posts - 48,916 through 48,930 (of 59,065 total)
The big thing missing from Aaron's blog is the code he used for each test. 😉 Didn't see much on accuracy, either...
I agree about the MONEY datatype, though......
August 4, 2008 at 11:56 pm
What an amazing article! Covers most everything from womb-to-tomb for such an "impossible" delete. I remember being amazed when Barry first posted his solution on the original thread....
August 4, 2008 at 11:30 pm
My first program was plugging wires into a "program board" for unit record equipment way back when there really were things like bit-buckets. Heh... might be dating myself there,...
August 4, 2008 at 11:11 pm
Uh huh... that's why I wanted to see the commands. And, I'd like to see the DDL for the source and destination tables, as well.
August 4, 2008 at 11:09 pm
Jack Corbett (8/4/2008)
[font="Courier New"]sp_msforeachdb @command1 = 'Select table_schema, table_name, column_name, data_type from INFORMATION_SCHEMA.COLUMNS'[/font]
Here's an article about...
August 4, 2008 at 9:56 pm
Heh... I just can't bring myself to use something that has a cursor in it like sp_msforeachdb does in the presence of VARCHAR(MAX)... 😛
--===== Code to return all table names...
August 4, 2008 at 9:46 pm
I'll just bet a plugged nickel that there isn't an IDENTITY column in the table...
CREATE TABLE #MyHead (RowNum INT, Something VARCHAR(20))
INSERT INTO #MyHead (Something)
VALUES ('Test row')
SELECT...
August 4, 2008 at 8:42 pm
Heh... I just saw this code posted on our very own forums as part of some dynamic SQL... link withheld to protect the guilty... 😉
,CASE schedule.[letter_box_yn] WHEN ''Y'' THEN...
August 4, 2008 at 8:35 pm
n.yarramreddy (8/4/2008)
August 4, 2008 at 8:10 pm
Very nicely done, Andy... great walkthrough on what to look for and when it takes affect.
August 4, 2008 at 8:07 pm
You bet. Thank you for the feedback.
August 4, 2008 at 7:42 pm
Carla Hepker (8/4/2008)
I assume each debit and credit is associated with a user identifier and has a post date time stamp. If that is the case, it seems to...
August 4, 2008 at 7:40 pm
Understood, but not exactly what I meant... I meant what they do behind the scenes to generate the running total... must be a "machine language" cursor of sorts to get...
August 4, 2008 at 7:36 pm
Actually, Gus' answer is the best answer... "It depends". This is the kind of thing that you need to test.
Gus, good point about the net gain on things like...
August 4, 2008 at 7:33 pm
GSquared (8/4/2008)
I just ran this test:
set statistics time on
go
declare @A char(1)
select @A = left(col4, 1)
from dbo.sometable
select @A = substring(col4, 1, 1)
from dbo.sometable
go 100
Execution time was identical for both commands.
Ah, thanks...
August 4, 2008 at 6:27 pm
Viewing 15 posts - 48,916 through 48,930 (of 59,065 total)