Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
has anyone else played much with this yet?i'm currently developing in 2005 and the november ctp for 2008. my project should be delivering mid next year so should tie in nicely with the release date for 2008 (so far anyway )one of my deliverables is an aggregated view for the underlying data (for report writers), unfortunately the aggregates are basically count distincts. in 2005 you cannot use count distinct with rollup / cube. so what i ended up playing with is a view made up of unions, doing count distincts at different levels in the hierarchy with a column to indicate at what level it is aggregated to. the added bonus of this is that if you select from the view at only only 1 level (i.e. where aggregate_column = 1 etc.) the optimiser only actually executes the select that it needs (as in only one of the selects that were union'ed)in 2008 i find that the rollup and cube stuff is completely different, much more reminiscent of Oracle actually. now i can use count distinct in the rollup, i can mix rollup and cube specifying which columns to rollup and which to cube, and others which are just a simple group by, and i can use the grouping_id to give me the equivalent of the 'aggregation level' i was deriving in the union'ed selects in the 2005 view. so.... the sql is nice and slick, just a few lines of code instead of loads of unions. put it into a view so i can start selecting from it and... OMG! the execution plan is the scariest thing i've ever seen!am i on my own here or is anyone else actually using this? any thoughts?... anyone? Em
spirit1
Cybernetic Yak Master
11752 Posts
Posted - 2007-12-04 : 06:08:21
release data for ss2k8 is still unknown the last thing i've read it won't be released on at the same time as VS 2008 and longhorhn by the end february._______________________________________________Causing trouble since 1980blog: http://weblogs.sqlteam.com/mladenpSSMS Add-in that does a few things: www.ssmstoolspack.com
elancaster
A very urgent SQL Yakette
1208 Posts
Posted - 2007-12-04 : 06:14:00
last i read they were saying a 'launch date' of Feb, with a release date mid 2008. nice and vague then think maybe we're all a bit cynical from waiting for 2005 to come out?Em
spirit1
Cybernetic Yak Master
11752 Posts
Posted - 2007-12-04 : 06:21:08
a bit cynical?? _______________________________________________Causing trouble since 1980blog: http://weblogs.sqlteam.com/mladenpSSMS Add-in that does a few things: www.ssmstoolspack.com
spirit1
Cybernetic Yak Master
11752 Posts
Posted - 2007-12-04 : 06:41:22
in all the years here on sqlteam i've seen maybe 10 questions about roll up pop up.. so i'd say you're pretty much alone _______________________________________________Causing trouble since 1980blog: http://weblogs.sqlteam.com/mladenpSSMS Add-in that does a few things: www.ssmstoolspack.com