Viewing 15 posts - 91 through 105 (of 143 total)
@sergiy: No, if these are inline UDFs they should be expanded in place, similar to a C macro and shouldn't incur a RBAR-like performance hit.
Regards,
Jacob
April 10, 2008 at 8:07 pm
I'd create 4 seperate inline UDFs, one for each DataField column. Each function would take in two parameters (RecordType & DataToBeParsed) and return a varchar(10) value, and would encapsulate...
April 10, 2008 at 2:41 am
The same is true (though to a lesser extent) with any of the algorithms supported by HashBytes(). There is no guarantee that two of your rows that have the...
April 9, 2008 at 7:44 pm
D'OH! Jan already posted while I composed my reply - ignore this....
Check out either CHECKSUM() or HashBytes() in BOL. CHECKSUM's been around for ages and computes a CRC (CRC32...
April 9, 2008 at 3:41 am
Ouch! Yep, that does the trick. I wonder if there will ever be a situation where the merge join would be suboptimal. Thinking about it, probably only if there...
April 8, 2008 at 10:01 pm
I can verify your results: changing to the dynamic SQL version runs at 1.2 sec at @PageNum = 8000 on my test data/server.
Now to speculate on why...
I can't compare the...
April 8, 2008 at 9:29 pm
@ Matt:
and THAT should be damn near linear....
Yep - ran the same test as above in my reply to Jeff, same data, same server except using your test code. Avg...
April 8, 2008 at 8:09 pm
@ Jeff: Is this
...still pretty happy with getting the last 100 line page in a 1.2 million row table in about 485 milliseconds.
a real-world figure? I put...
April 8, 2008 at 7:59 pm
You can manually merge cells in RS (just like Excel), but not dynamically afaik. Probably not what you want...?
Regards,
Jacob
April 8, 2008 at 4:33 am
@ Jeff:
Just need RowNum on the middle select don't you (as opposed to *)?:
...
SELECT t.*
FROM dbo.Test t,
(
...
April 8, 2008 at 3:25 am
OK - first of all you can't do this:
...WHERE a.ParentPartCode IN (@PART)
unless you manually expand @PART into it's value using dynamic SQL. Have a read of Erland Sommarskog's excellent...
April 6, 2008 at 6:14 pm
A CLR-based approach to this may be best - build a work-breaker function that takes your Source A and Source B strings as input. I'm making an assumption that...
April 3, 2008 at 5:21 pm
Ummm... add a second report parameter?
:ermm:
Regards,
Jacob
April 3, 2008 at 12:33 am
100% agree with ironpants. You should start with RI enforced always, and only ever consider removing it in special cases (usually for performance issues that can't be solved any other...
March 31, 2008 at 9:51 pm
What Steve Jones said, except that I wouldn't entirely rule out RAID5 - it's suitable for a workload heavily biased towards reads with little/no write activity and lower recovery SLAs,...
March 25, 2008 at 1:42 am
Viewing 15 posts - 91 through 105 (of 143 total)