Viewing 15 posts - 21,331 through 21,345 (of 26,484 total)
greatheep (4/27/2009)
April 27, 2009 at 3:26 pm
Jack Corbett (4/27/2009)
SELECT DISTINCT
A.BUSINESS_UNIT,
A.LOAD_ID,
...
April 27, 2009 at 3:09 pm
Scott Roberts (4/27/2009)
Lynn Pettis (4/27/2009)
April 27, 2009 at 2:55 pm
Run this and let us know the values for size.
use [tempdb]
go
select * from sys.database_files
select * from sys.master_files where database_id = 2
go
April 27, 2009 at 2:44 pm
Bob Hovious (4/27/2009)
Lynn: Wait... are we disagreeing about something?
I don't think so. I think we are just confusing each other.
If you are talking about the trivial data,...
April 27, 2009 at 2:19 pm
Scott Roberts (4/27/2009)
As for row sequencing, is it not invalid...
April 27, 2009 at 2:14 pm
Try running this query and see what is out there in tempdb:
select * from tempdb.sys.all_objects
where is_ms_shipped = 0;
April 27, 2009 at 2:09 pm
Bob Hovious (4/27/2009)
April 27, 2009 at 1:58 pm
Bob Hovious (4/27/2009)
April 27, 2009 at 1:49 pm
If you modify the clustered index to include the BILLED flag as DESC, the code will once again work.
/****** Object: Table [dbo].[CallDetailRecords] Script Date: 04/27/2009 12:10:02...
April 27, 2009 at 1:47 pm
Made a simple change to the data and broke my own code. This requires additional information regarding he requirements. If the data is inserted as specified by the...
April 27, 2009 at 1:45 pm
Scott Roberts (4/27/2009)
Lynn Pettis (4/27/2009)
Possibly, but based on the trivial data, table structure, and expected results provided, it works.
Actually, it doesn't.
Check your results against the "expected results" in post...
April 27, 2009 at 1:33 pm
Actually, its broke, something was missing. Ignore the current code, i need to rework it a bit.
April 27, 2009 at 1:13 pm
Bob Hovious (4/27/2009)
Lynn, doesn't this assume that all the duplicates are going to fall together in sequence?
Possibly, but based on the trivial data, table structure, and expected results provided, it...
April 27, 2009 at 1:09 pm
How about this?
EDIT: Code posted here was removed as it failed!
I noticed that your table def had RawData defined as varchar(5000) but your cursor function had it defined as varchar(300)....
April 27, 2009 at 12:59 pm
Viewing 15 posts - 21,331 through 21,345 (of 26,484 total)