Viewing 15 posts - 1 through 15 (of 18 total)
Thanks for your input. I'll give it a try and see how it works out
April 3, 2007 at 7:20 am
I'm a little confused. What is it that you're trying to accomplish in the end?
January 29, 2007 at 9:59 am
Tried that and unfortunately doesn't work.... Thanks for the suggestion
December 18, 2006 at 3:42 pm
SET QUOTED_IDENTIFIER OFF
SELECT "Now ' you can use '' quotes ' in your '' strings"
SET QUOTED_IDENTIFIER ON
December 14, 2006 at 7:40 am
If you're using sql 2000 there is something called Object Search that will let you search for objects of a certain type by name. Not sure if this feature is...
December 13, 2006 at 7:11 am
Are you using 2005? If so, you can wrap it in a TRY...CATCH block
December 12, 2006 at 12:58 pm
Looks like first he is deleting anything with a row_number > 1 (since we're partitioning by value this will give you a result set something like:
RegionID | RN
1 1
2 1
3 ...
December 12, 2006 at 9:16 am
You're absolutely right. That looks like it would work without having to create the temp table. I wouldn't have even thought of doing it that way.
December 12, 2006 at 9:00 am
If you want to mess around with it I suggest that you grab the express version. http://msdn.microsoft.com/vstudio/express/sql/ . Lots of cool new stuff
December 12, 2006 at 7:26 am
So I just spent 10 minutes writing a response explaining it and somehow lost all my text.... Well, I really don't want to rewrite it, so heres a quick summary. ...
December 11, 2006 at 3:02 pm
Excellent... Thanks PW, it worked flawlessly. And Ninja, in my case it didn't really matter what row was updated, just as long as each row was updated with a unique...
December 11, 2006 at 2:04 pm
Thanks.. That might work for me, although, I might need to tweak it a bit since the problem I'm having is not just dupes in one table, but dupes in...
December 11, 2006 at 12:45 pm
I thought it was always good practice not to use SELECT * b/c there was an extra performance hit b/c it had to go and lookup the column names?
December 11, 2006 at 11:58 am
If you are trying to have a column that has the current date/time whenever a new record is inserted, you can just have a column with a default value of...
December 11, 2006 at 10:39 am
If you are doing the count only to check if a record matching your criteria exists, you are better off using EXISTS.. Do the exact same thing as suggested above,...
December 8, 2006 at 7:45 am
Viewing 15 posts - 1 through 15 (of 18 total)