Viewing 15 posts - 5,761 through 5,775 (of 6,486 total)
I understand, but the first query gives me an incrementing (the inner join)...
but anyway, you're right - sounds like this is somewhere we should be exercising "equine medicine" to it....
November 13, 2007 at 9:08 am
Are you looking for some way to identify packed data? Mainframe data stored as hex with a subsequent sign of some kind?
You might need to read some of these...
November 13, 2007 at 9:04 am
It's odd - because the CTE is giving me nothing but 1's in the ENGCount (not incrementing).
And I don't doubt you're not since I've seen you use CTE's a lot,...
November 13, 2007 at 8:49 am
Or, you might care to FORCE the recompile each time it's run, so that it will optimize for the branch that will actually run....
That's adding a WITH RECOMPILE to the...
November 13, 2007 at 8:44 am
True - but if records with ID 40-60 are gone, then record with ID=100 isn't the 100th record anymore...
November 13, 2007 at 8:40 am
Sorry to jump in AFTER the final post - but unless I'm missing something - the CTE code posted is not even equivalent to either the cross join or the...
November 13, 2007 at 8:23 am
You need to use the CROSS APPLY predicate on the function call - that should get you what you want.
CROSS APPLY allows you to create an "implicit join" between a...
November 13, 2007 at 7:30 am
That was the same line of thinking I used when I threw in the ROW_NUMBER() solution. At least you know you won't get a gap that way.
November 13, 2007 at 7:25 am
you could also use a table with said 15 values. With an index I'd imagine that would be the fastest of all (with an inner join).
November 12, 2007 at 12:27 pm
Nothing jumps out - but have you tried casting the date field to a varchar or a char? I've had to do that on occasion to get the conversion not...
November 12, 2007 at 9:49 am
My example is not the greatest, however the part that still stands is that it won't allow the use of non-shared or non-clustered resources.
November 10, 2007 at 4:10 pm
If it's a process THIS expensive, you should consider making this a permanent table. Meaning - keep the existing table just as it is, and have another to track...
November 9, 2007 at 10:10 pm
November 9, 2007 at 9:49 pm
If the column is an identity field, you can't insert a specific value into that field unless you set the identity_insert flag to on for the specific table.
The preferred method...
November 9, 2007 at 9:36 pm
We could help a whole lot more effectively if you were to post the body of the stored procedure (the one giving you the error). That error is one...
November 9, 2007 at 9:19 pm
Viewing 15 posts - 5,761 through 5,775 (of 6,486 total)