Viewing 15 posts - 11,806 through 11,820 (of 26,486 total)
dwain.c (5/21/2012)
Lynn Pettis (5/21/2012)
I have run several tests of both over a heap table with 1,000,000 rows of data
You're starting to sound like Jeff!
That's a compliment. More people should...
May 21, 2012 at 9:33 pm
Well, I have run several tests of both over a heap table with 1,000,000 rows of data and both run around 2.5 seconds with no clear advantage to either one....
May 21, 2012 at 9:20 pm
Here's why Dwain:
CREATE FUNCTION dbo.itvfn_FormatTimeHHMMSS(
@TimeInSeconds INT
)
RETURNS TABLE WITH SCHEMABINDING
AS RETURN
(SELECT
CAST(@TimeInSeconds / 3600 AS VARCHAR) + ':' +
RIGHT('0' +...
May 21, 2012 at 7:58 pm
Lynn Pettis (5/21/2012)
May 21, 2012 at 2:52 pm
Siten0308 (5/21/2012)
insert Match2
select '1', '1','firstname' union all
select '1', '6', 'firstname' union all
select '4', '2', 'address' union all
select '5',...
May 21, 2012 at 2:50 pm
Also, you now need to explain, usig the sample data, how each row in #Match statisfies the match requirements as I don't see it based n the provided data.
May 21, 2012 at 2:46 pm
Siten0308 (5/21/2012)
insert Match
select '1', '1', 'firstname'
select '1', '6', 'firstname'
select '4', '2', 'address'
select '5', '1', 'firstname'
sorry for the confusion I put a # sign before matching...
May 21, 2012 at 2:41 pm
Again, make sure the code you post works as expected. Problem with the code for populating #Match.
Also, the results have no correlation to the sample data that is inserted...
May 21, 2012 at 2:26 pm
Best way, restore it to test, dev or sandbox server. Anything else could just give you a false sense of security.
May 21, 2012 at 1:31 pm
Siten0308 (5/21/2012)
May 21, 2012 at 1:25 pm
By the way, the code you posted above has a few issues. You really need to test your code before posting it. Here is what I have after...
May 21, 2012 at 1:19 pm
What is your expected output based on the sample data?
May 21, 2012 at 1:14 pm
Once you post the DDL (CREATE TABLE statement) for your tables, sample data (INSERT INTO statements, about 6 to 10 rows of data) for the tables, and the expected...
May 21, 2012 at 1:13 pm
Save you execution plan as a .sqlplan file and attach that to your post insterad of inserting the XML version in your post. Sorry, but reading the XML is...
May 21, 2012 at 1:07 pm
I was looking at this and got a bit confused. It appears that the word description of the problem doesn't quite match to the OPs code in the initial...
May 21, 2012 at 1:05 pm
Viewing 15 posts - 11,806 through 11,820 (of 26,486 total)