Viewing 15 posts - 286 through 300 (of 1,124 total)
I don't know how the replace function behaves in different collations, but I know the problem is related with different collations.
Let' see it..
DECLARE @str VARCHAR(100)
SET @str = '1234567890'
SELECT REPLACE( @str,...
April 8, 2009 at 8:47 am
Chris Morris (4/8/2009)
Peso (4/8/2009)
Using Ramesh's test cases, I get these timings:Ramesh' Version : 526 ms
ChrisM' Version 3 ("condensed" version 2) : 23480 ms
Peso : 236 ms
Ooookaaaaayyyy proof of the pudding...run...
April 8, 2009 at 8:19 am
Peso (4/8/2009)
And I am little suspicous about your algorithms. For both you and Chris all 6250 records in the final resultset are ordered by original ID.
My suggestion are...
April 8, 2009 at 8:07 am
Or this way too...
DECLARE @SomeFile VARCHAR(255)
SET @SomeFile = 'C:\WINDOWS\system32\FileName.xls'
SELECT RIGHT( @SomeFile, CHARINDEX( '\', REVERSE( @SomeFile ) + '\' ) - 1 )
April 8, 2009 at 7:52 am
Chris Morris (4/8/2009)
36376 ms? What are you running this test on, Ramesh - a twin-floppy 80's luggable? 😀876 ms is awesome:cool:
Not that old enough:-D...
I am working on wretched servers with...
April 8, 2009 at 7:39 am
Peso (4/8/2009)
Using Ramesh's test cases, I get these timings:Ramesh' Version : 526 ms
ChrisM' Version 3 ("condensed" version 2) : 23480 ms
Peso : 236 ms
236 ms! looks great! Can I...
April 8, 2009 at 7:33 am
Chris Morris (4/8/2009)
Very elegant! Makes my CASEy stuff look like a dustbin full of spaghetti!Who's gonna test with 40,000 rows then? 😀
Fortunately, I had enough time to test for 5000...
April 8, 2009 at 7:16 am
Peso,
I think the results of your query seems to be incorrect. Here are the results...
-- Expected Results
idcol1col2col3col4col5col6col7col8
12.353.013.494.254.795.365.826.31
2NULL3.594.32NULL5.21NULLNULL7.12
3NULLNULLNULL5.235.416.336.897.99
4NULL5.315.465.92NULL6.877.34NULL
55.125.666.316.92NULL7.878.34NULL
-- Actual Results
IDcol1col2col3col4col5col6col7col8
12.353.013.494.254.795.365.826.31
2NULL3.594.32NULL5.21NULLNULL7.12
55.125.666.316.92NULL7.878.34NULL
3NULLNULLNULL5.235.416.336.897.99
4NULL5.315.465.92NULL6.877.34NULL
April 8, 2009 at 7:06 am
Chris Morris (4/7/2009)
Ramesh (4/7/2009)
April 8, 2009 at 5:20 am
Since you are not referring to any outer table columns in your inner table, the optimizer smartly generates an execution plan that reads the inner table only once. That's...
April 7, 2009 at 9:08 am
Guys, It looks like an interesting problem for me and I would like to try my hands on it. But the problem is that I still not completely understood...
April 7, 2009 at 8:48 am
You are always welcome. And I'm glad that I could help you.
Probably, SSIS' Execute SQL Task enforces the explicit conversion of data types for performance issues. Its fine...
April 7, 2009 at 8:29 am
Service Packs are issued against the product and not against the individual services or components within the product. See the below link for all latest builds of all versions...
April 7, 2009 at 5:24 am
Does these links help?
http://social.msdn.microsoft.com/forums/en-US/sqlintegrationservices/thread/90eed185-751e-4f36-89b1-35b2224e5819/%5B/url%5D
http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/c131a0a8-ed27-4dbb-9ecc-fbf624b057fb/%5B/url%5D
April 7, 2009 at 12:18 am
Viewing 15 posts - 286 through 300 (of 1,124 total)