Viewing 15 posts - 3,211 through 3,225 (of 6,036 total)
Lynn Pettis (1/8/2008)
_____________
Code for TallyGenerator
January 8, 2008 at 4:42 pm
Lynn, do you know the difference between "the maximum order id" and "the order id of the latest order"?
To get the the order id of the latest order you need...
_____________
Code for TallyGenerator
January 8, 2008 at 4:13 pm
Michael Valentine Jones (1/7/2008)
_____________
Code for TallyGenerator
January 7, 2008 at 5:49 pm
Michael Valentine Jones (1/7/2008)
Your checks are not valid for SQL 7.0 and 2000. (This is the SQL Server 7,2000 T-SQL forum)
It's because undocumented parameter Jeff used.
Follow BOL prescriptions an...
_____________
Code for TallyGenerator
January 7, 2008 at 5:15 pm
Clustered index must be the one used for range selections.
I really doubt there is any case when you select empid BETWEEN @a AND @b-2.
So, there is no point to have...
_____________
Code for TallyGenerator
January 7, 2008 at 4:28 pm
Loner (1/7/2008)
You can also do a RTRIM(LTRIM(.....)), this will eliminate any white space.
RTRIM(LTRIM(.....)) will eliminate only leading and trailing spaces, not the ones in the middle of the string.
_____________
Code for TallyGenerator
January 7, 2008 at 2:34 pm
Loner (1/7/2008)
I always use SYSOBJECT but you suggested to use information_schema.tables. What's wrong with using SYSOBJECT?
Maybe I really need to beef up my DBA skills, I guess being a...
_____________
Code for TallyGenerator
January 7, 2008 at 2:16 pm
Arun T Jayapal (1/7/2008)
if (object_id('tempdb..#tblTemp','u') > 0)
print 'exists'
else
print 'not exists'
...its not...
_____________
Code for TallyGenerator
January 7, 2008 at 2:14 pm
January 6, 2008 at 7:31 pm
satguru.saran (1/6/2008)
INSERT INTO...
_____________
Code for TallyGenerator
January 6, 2008 at 4:00 pm
Jeff Moden (1/5/2008)
I guess we also need to know the number of rows in the two tables, please.
I guess execution plan shows the numbers:
3.5631036E+7 in [pos_transaction] and 1.0039982E+8 in [postrans_sku]
_____________
Code for TallyGenerator
January 5, 2008 at 8:27 pm
Steve,
index on a column used in "range" selection ("BETWEEN", ">" or/and "<", TRANS_DATE in your case) must be clustered.
Fix it and the SP will be always fast.
_____________
Code for TallyGenerator
January 5, 2008 at 8:05 pm
Jeff Moden (12/23/2007) if it's GUI code that's making hundreds or thousands of hits per second, then you should probably avoid SELECT INTO and use CREATE TABLE. In fact,...
_____________
Code for TallyGenerator
December 25, 2007 at 6:02 am
In BOL, in "Index" tab find the topic "compatibility issues, between SQL Server 2000 and SQL Server 7.0".
If you have further questions ask it here.
_____________
Code for TallyGenerator
December 20, 2007 at 3:27 pm
Dynamic SQL is not allowed inside of functions.
_____________
Code for TallyGenerator
December 20, 2007 at 3:19 pm
Viewing 15 posts - 3,211 through 3,225 (of 6,036 total)