Viewing 15 posts - 18,781 through 18,795 (of 26,489 total)
Jeff,
Test this one out:
USE [SandBox]
GO
/****** Object: UserDefinedFunction [dbo].[ufn_Tally2] Script Date: 09/22/2009 09:06:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
alter function [dbo].[ufn_Tally2](
@pStartValue bigint = 1,
...
September 22, 2009 at 4:21 pm
I incorporated the changes that both Gus and Jeff suggested and using the simple SET STATISTICS TIME ON method of testing, the routine generates 1,000,000 rows in approximately 900ms.
Here is...
September 22, 2009 at 3:13 pm
See, and now we are finding some very interesting errors in the code that I missed. Thanks, I do appreciate it. 🙂
September 22, 2009 at 2:59 pm
Jeff Moden (9/22/2009)
Lynn Pettis (9/22/2009)
September 22, 2009 at 2:20 pm
Jeff Moden (9/22/2009)
Lynn Pettis (9/22/2009)
laughingskeptic (9/22/2009)
declare @i bigint
set...
September 22, 2009 at 1:47 pm
To get the best help in response to your request for help, read and follow the instructions in the first article i have referenced in my signature block regarding asking...
September 22, 2009 at 1:30 pm
laughingskeptic (9/22/2009)
declare @i bigint
set @i = 0
select @i=@i+1...
September 22, 2009 at 1:18 pm
Jeff,
First, leave it to you squeeze another 33% out of a routine, awesome. I'll have to incorporate that change into my code. I think Steve needs to add...
September 22, 2009 at 12:51 pm
Jeff Moden (9/22/2009)
Lynn Pettis (9/22/2009)
Jeff Moden (9/22/2009)
MrAkki (9/22/2009)
Another way would be:
DECLARE @Start BIGINT, @Step BIGINT, @max-2 BIGINT
SELECT @Start = 1, @Step = 10 , @max-2 =...
September 22, 2009 at 10:57 am
Jeff Moden (9/22/2009)
MrAkki (9/22/2009)
Another way would be:
DECLARE @Start BIGINT, @Step BIGINT, @max-2 BIGINT
SELECT @Start = 1, @Step = 10 , @max-2 = 10000000
SELECT...
September 22, 2009 at 10:35 am
Matt, Thank you for the link. I was not aware of this either and have been looking at it for a couple of projects that are currently on the...
September 22, 2009 at 10:30 am
MrAkki (9/22/2009)
Another way would be:
DECLARE @Start BIGINT, @Step BIGINT, @max-2 BIGINT
SELECT @Start = 1, @Step = 10 , @max-2 = 10000000
SELECT (Number *...
September 22, 2009 at 10:15 am
peter-757102 (9/22/2009)
September 22, 2009 at 9:22 am
dbishop (9/22/2009)
September 22, 2009 at 8:44 am
Viewing 15 posts - 18,781 through 18,795 (of 26,489 total)