Viewing 15 posts - 50,416 through 50,430 (of 59,091 total)
jcrawf02 (5/20/2008)
In case anyone else wants to use Jeff's example and is lazy like me:copy/save as a template (.tql) under C:\Program Files\Microsoft SQL Server\80\Tools\Templates\SQL Query Analyzer--------------------------------------------------------------------
Sigh... if only everyone were...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 5:47 pm
JohnG (2/22/2008)
What we also need to eliminate are:
1. The postings where the poster didn't even bother to look at the online documentation (Books Online aka BOL)...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 5:45 pm
J (2/1/2008)
And I also liked the bit on the CSV generator.
Just gotta have more than 1 tip per article... thanks for the feedback, J.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 5:43 pm
Table_A should have the clustered index on the ID column for the tables you have shown. Otherwise, not enough info...
Write the query you want and tune it by looking...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 5:36 pm
I test all code I post so the answer is, "YES", the code is correct. Please post the error you are getting.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 5:33 pm
Same goes in 2000... in fact, our standards recommend trying the WHERE NOT IN before trying the OUTER JOIN fore exclusions of this nature.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 5:31 pm
Or, you can go straight in...
[font="Courier New"]DECLARE @SomeDate VARCHAR(20)
SET @SomeDate = '19-05-2008 09:46:35 AM'
SELECT CONVERT(VARCHAR(20),CONVERT(DATETIME,@SomeDate,105),126)+'.00Z'[/font]
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 5:24 pm
Wouldn't INSERT/EXEC do the job you're looking for?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 5:12 pm
System date format needs to be set to dmy server wide. I can't, for the life of me, remember how to set it server wide, but a trip...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 8:26 am
Does the production machine use VM by any chance? Does it have auto-shrink turned on, especially on TempDB by any chance?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 8:20 am
I agree... adding an IDENTITY column to the table will take care of it.
And, Sequence tables are notorious for causing deadlocks in SQL Server because most folks don't write the...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 8:16 am
37 to 65 milliseconds.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 8:13 am
If you're using WinZip, you'll need the "pro" version, which comes with command-line abilitites, and a trip to the "shell", what ever it's called in SSIS.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 8:11 am
Piotr Rodak (5/20/2008)
I gave it a bash, see if this can work for you:
That will work fine on small chunks of data, but recursion is inherently RBAR and therefor slow.
The...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 8:10 am
I agree... clustered index with an index hint on it or and order by is required and you've been lucky with the order so far.
What are you doing that requires...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 20, 2008 at 8:07 am
Viewing 15 posts - 50,416 through 50,430 (of 59,091 total)