Viewing 15 posts - 2,611 through 2,625 (of 6,486 total)
Felix De Herrera (9/10/2008)
September 10, 2008 at 1:49 pm
If the data is needed for DRI - you can't leave it up to the front-end to make those calls, nor can you enforce that from your front-end alone (as...
September 10, 2008 at 12:23 pm
I wouldn't know about characterizing it as "normal practice", but I certainly do use it.
I use that setup for things that are required from an end-user, but are needed from...
September 10, 2008 at 12:04 pm
Gary Johnson (9/9/2008)
September 9, 2008 at 2:51 pm
Then use the starting point Chris gave you with the Tally, and use that as a "base table", excluding the first and last "new rows" based on the initial rowID....
September 9, 2008 at 10:15 am
shuzi (9/8/2008)
can you tell me what tally table is? thanks
Sure - here's a good article on it:
http://www.sqlservercentral.com/articles/TSQL/62867/%5B/url%5D
September 8, 2008 at 3:34 pm
Interestingly enough, most of the "non-enforceable" non-compete agreements are too vague and essentially lock someone out of doing work in their primary area of expertise. That's the main reason...
September 8, 2008 at 11:44 am
Have you looked at the reports included in SP2 of SQL Server 2005? There are a series of reports having to do with table size, which should give you...
September 8, 2008 at 11:16 am
Reverse would give the correct results assuming the patterns are close enough. Tally table is another option.
I'd probably go with a CLR function though (would likely be...
September 8, 2008 at 10:51 am
create table #matt( id int identity(1,1) primary key,note varchar(30))
insert into #Matt(note)
select 'a101' union all
select 'a101' union all
select 'a101' union all
select 'a1,01,' union all
select 'a101' union all
select 'a1,01,'
go
SELECT note,
...
September 8, 2008 at 10:08 am
Chris Morris (9/8/2008)
SELECT note,
PATINDEX('%,[0-9][0-9],',note) AS A,
PATINDEX('%[0-9][0-9]',note) AS...
September 8, 2008 at 10:05 am
It sounds like you have a working solution, but if you want to pursue tracking down the scenarios it doesn't work in, let me know what an example might be....
September 8, 2008 at 7:52 am
All right... Sorry it took a little while - but here goes...
On 2 million rows, the running totals version returns the sequences as I understand them... in 35.3 seconds. ...
September 5, 2008 at 4:14 pm
bcronce (9/4/2008)
September 4, 2008 at 2:12 pm
jj011185 (9/4/2008)
hmm, sounds like its going to be messy.
lets try not to go into cursors/loops/recursion.. this is indeed challenging. if not impossible.
Messy, yes. Impossible no. With a temp...
September 4, 2008 at 11:11 am
Viewing 15 posts - 2,611 through 2,625 (of 6,486 total)