Viewing 15 posts - 50,401 through 50,415 (of 59,078 total)
Please... see the URL in my signature...
May 20, 2008 at 5:55 pm
First, not enough data... without an extra column (hopefully, a PK) to identify the sort order, there's no way to do an update because SQL Server will not know which...
May 20, 2008 at 5:54 pm
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...
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)...
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.
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...
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.
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.
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]
May 20, 2008 at 5:24 pm
Wouldn't INSERT/EXEC do the job you're looking for?
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...
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?
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...
May 20, 2008 at 8:16 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.
May 20, 2008 at 8:11 am
Viewing 15 posts - 50,401 through 50,415 (of 59,078 total)