Viewing 15 posts - 46 through 60 (of 283 total)
Jeff Moden (8/27/2008)
Heh... or use a tremendously underutilized bit of code that starts with "--" 😉
Do I hear an "Amen!"?
August 27, 2008 at 7:59 pm
Jeff Moden (8/27/2008)
I'll probably have a million row table in tow kinda like Tom did...
I'll make you a deal. You don't call me Tom and I won't call you Jef....
August 27, 2008 at 7:53 pm
rbarryyoung (8/27/2008)
August 27, 2008 at 7:50 pm
rbarryyoung (8/27/2008)
August 27, 2008 at 5:54 pm
To really make a test, I loaded up the table. After loading in the first 25 rows of the supplied data (I left out the rows that didn't change amounts),...
August 27, 2008 at 5:00 pm
Jeff, you are correct. However, I have to avoid things like CTEs. Not because I have anything against them but because 90% of my dbs are still SS2k, not to...
August 27, 2008 at 1:52 pm
jofa (8/27/2008)
The expressionTimeNumber/10000*3600 + (TimeNumber%10000)/100*60 + TimeNumber%100
can be simplified to
TimeNumber - TimeNumber/100*40 - TimeNumber/10000*2400
Actually, the code was "60 * 60" not "3600", meaning 60 minutes per hour times 60 seconds...
August 27, 2008 at 1:15 pm
I don't know if this is any faster than Jeff's (he being the King of Nasty Fast), but it doesn't use any string manipulation (which I try to avoid if...
August 26, 2008 at 1:11 pm
Here is my contribution:
declare @ShiftCountersRawData table(
RecID int IDENTITY(1,1) NOT NULL,
...
August 26, 2008 at 12:23 pm
john.arnott (8/22/2008)
August 25, 2008 at 11:03 am
Interesting problem.
declare @Table table(
RowID int Identity(1,1),
CustNo ...
August 21, 2008 at 7:21 pm
declare @Table table(
ID int not null,
Dep money,
Accum ...
August 21, 2008 at 5:48 pm
I've always said that if I was charged with developing a top-notch Accounting application, I would hire a top-notch Accountant who knew squat about programming and a top-notch Programmer who...
August 21, 2008 at 5:15 pm
SQL Noob (8/21/2008)
common sense would say that if you create a table that will hold thousands of rows you need an index or two
Why? I'm assuming the table had a...
August 21, 2008 at 1:31 pm
You looked just at the "create table" script and decided that the table needed indexes? That is impressive. I generally have to look at the queries to make that determination.
And...
August 21, 2008 at 11:05 am
Viewing 15 posts - 46 through 60 (of 283 total)