Viewing 15 posts - 58,156 through 58,170 (of 59,053 total)
Thanks dee-oh-gee... little hint... document as you go and you'll never get behind.
June 5, 2006 at 8:02 pm
| Our DBA had a job to check for "orphaned" temp tables and delete them. |
If you mean find the...
June 5, 2006 at 6:41 am
| I don't see why you would say that. Table variables are certainly no panecea, but they can be... |
June 3, 2006 at 2:59 pm
This usually works... I'm sure this will be followed by warnings of injection attacks...
CREATE PROCEDURE dbo.SampleProc
@CSVParams VARCHAR(8000) -- List of params with comma delimiters
AS
June 2, 2006 at 11:31 pm
If you'd rather just have the last day of the month, substitute any valid date for GETDATE() in the following...
SELECT DATEADD(mm,DATEDIFF(mm,0,GETDATE())+1,0)-1
If you really want the number of days...
June 2, 2006 at 11:15 pm
http://support.microsoft.com/default.aspx?scid=kb;en-us;305977&Product=sql2k
You may never use a table variable outside a function ever again if you study Q3, Q4, and Q5 a bit...
June 2, 2006 at 10:44 pm
Dang... didn't read down far enough...
DogBot... here's how to create a Tally table without using a cursor or loop...
/****************************************************************************************
THIS IS A TABLE CREATION SCRIPT
Purpose:
This script creates...
June 2, 2006 at 10:30 pm
DogBot,
Thanks for the feedback and sorry for my absence... been doing the OT thing alot, lately.
When I run...
EXEC FindMatchesN @a='a',@b='b',@c='c'
...against the data in my posting (which I was...
June 2, 2006 at 10:00 pm
Really, really bad idea to have the table in the format you do... highly denormalized and for more reasons than I can count, you will have more problems with it...
May 30, 2006 at 10:53 pm
Ok Tim... hang on... gott wipe some egg off my face ![]()
I gotta admit, for self join updates, the Update <alias> is the way...
May 29, 2006 at 7:55 pm
Have you got any test data setup that you might want to share or do I have to do this the hard way? ![]()
May 29, 2006 at 5:36 pm
Ryan is like that... writing good stuff, I mean. ![]()
Thanks for the feedback, Janno.
May 29, 2006 at 3:40 pm
Well done... but, all that being said, the following works and there is no ambiguity that is not resolved by the optimizer... (maybe I just misunderstood what Seqiy posted and...
May 29, 2006 at 2:38 pm
>>You UPDATE ALIAS and always only alias, don't repeat the table name twice.
What's the reason for that? Never had a problem with naming the table twice... and makes lengthy...
May 28, 2006 at 8:47 pm
Viewing 15 posts - 58,156 through 58,170 (of 59,053 total)