Showing posts with label dataset. Show all posts
Showing posts with label dataset. Show all posts

Monday, March 26, 2012

Ragged Hierarchies in RS2005

Hi...

I am connecting to Analysis Sercices 2000 from Reporting Services 2005.

When building a dataset, just in the data pane graphical designer, I have dragged 5 levels of the dimension 'Organisation' into the data pane.

The dimension has members at level 4 that have no children. But the dimenension also has members at level 5 WITH children, meaning that the dimension is ragged. If I only select levels 1-4 on the data pane, I see all level 4 children. However, if I also drag level 5 to the data pane, I loose any level 4 members that do not have children.

This means I loose vallid members that have data. Does anyone know of any way around this?

Thanks

Jeremy

Does anyone have any experience on getting this to work?

I have managed to display a ragged hierarchy by hacking the MDX, with the use of the DrillDownMember function.

Unfortunatlely, altough the ragged hierarchy does now display correctly in the data pane, it does not display in a table or matrix. So I have the situation where by my result set in the data pane does not match my result set in the actual report.

If anyone can offer any assistance it would be appreciated,

Thank you

Jeremy

|||

I have now managed to get this to work.

As I was using an AS2000 cube with the Adomd client, which according to Microsoft is not supported. If you want to use an AS2000 cube, then you have to use the OLE DB data provider.

Unfortunately I still had to use the DillDownMember function, this seems to be the only way I can get ragged hierachies to work correctly.

|||

Sorry I had not seen your post before.

Considering that the returned cellset gets flattened into a result set, if you put your set of members on the ROWS axis of the MDX query, you will actually end up with a separate column per level in you result set.

So if you structure your query like this

SELECT
{[Measures.[x]]} ON COLUMNS,
{Descendants([YourDimension].[All], [YourDimension].[Level 5], SELF_BEFORE_AFTER)} ON ROWS
FROM [YourCube]

The returned dataset should have these columns

Level_1, Level_2, Level_3, Level_4, Level_5, x

This should cater for your ragged hierarchies requirement.

sql

Tuesday, March 20, 2012

Quickest method of updating a Table

I have a DataSet which I am holding in .NET and I would like to know the quickest way to get the DataSet in to a Table on SQL Server?

Any sample code would be great.

How many tables you have in dataset?

Fastest and easiest way to do it is probably using Data Adapter.

Thanks

|||Only one table, with over 1,000,000 records|||

And How you generate this data in your DataSet it is loaded from somewhere?

Fastest way will be to save it to file and next import to SQL using SSIS package or bulk copy command.

You can also try DataAdapter but

Thanks

it|||

And How you generate this data in your DataSet it is loaded from somewhere?

Fastest way will be to save it to file and next import to SQL using SSIS package or bulk copy command.

You can also try DataAdapter but

Thanks

it is|||

And How you generate this data in your DataSet it is loaded from somewhere?

Fastest way will be to save it to file and next import to SQL using SSIS package or bulk copy command.

You can also try DataAdapter but it

Thanks

|||

Hi CopperMill,

I agree that you can use SSIS to import data. You can also use bcp utility to perform fast bulk copy.

The bcp utility bulk copies data between an instance of Microsoft SQL Server 2005 and a data file in a user-specified format. The bcp utility can be used to import large numbers of new rows into SQL Server tables or to export data out of tables into data files. Except when used with the queryout option, the utility requires no knowledge of Transact-SQL. To import data into a table, you must either use a format file created for that table or understand the structure of the table and the types of data that are valid for its columns.


For more information, please check

http://msdn2.microsoft.com/en-us/library/ms162802.aspx

If the data you need to insert has to be stay in the DataSet, The only way I can see is to use a SqlDataAdapter

HTH. If this does not answer your question, please feel free to mark the post as Not Answered and we will look into it again. Thanks!

Friday, March 9, 2012

Quick search algorithm in database

Hi,

I need in my app. a good search option in datafields of dataset.

Maybe someone can help me find an algorithm?

WHat do you mean by a lagorythm for searching in datafields ?

Jens K. Suessmeyer.

http://www.sqlserver2005.de

|||Create a DataView on top of one of the DataTables in your DataSet, and set the Filter property of the view. Would that help?

Thanks,

Marcel van der Holst
[MSFT]