Showing posts with label building. Show all posts
Showing posts with label building. Show all posts

Sunday, March 25, 2012

Analysis server cube Performance through Excel 2007

Hello Everybody

I am accessing Analysis server cube -2005 through Excel 2007 for building reports. When ever i select a row or column right click and select Filter > Hide Selected Items, it will show "running query on the OLAP server" at bottom and will not respond after that.

Ran the MDX generated by Excel 2007 directly on analysis server, even then also it takes lot of time and finally it doesnt respond. I read in the forum that the sql generated by Excel 2007 is different. how can i tweak in so that cube performance improves ?

Thanks
Kiran

Hi Kiran,

Do you have old AS 2000 to compare performance? The reason I am asking this because you can check if you have same aggregation setup in AS 2005 cube. If you don't have old cube to compare try creating aggregation on AS 2005 cube. Also you can check profiler, performance counter etc.

-Ashok

sql

Sunday, February 19, 2012

AMO - measure numeric Value

I'm building a cube dynamically and i want to list just the columns in the fact table that are numeric in order to make Sum's, AVG's and so on.

How can i do this using AMO ?, i'm wondering if i can do this from the FactTable's (Data Table) DataColumns, but there is no metadata that tells me if the values there are or not valid numeric measures.

Regards Lisber.

Hi. I don't know the answer to your AMO question. However, I do know that you can get the metadata about your fact table from the system views in SQL Server 2005. For example, if you want to know the columns in a fact table with data type Money or Float the following query works against the sales fact in AdventureWorks schema:

SELECT * FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'FactInternetSales'
AND (DATA_TYPE = 'float' OR DATA_TYPE = 'money')

A more extensive article about SQL Server 2005 metadata is available from Database Journal at this link:

http://www.databasejournal.com/features/mssql/article.php/3508881

Hope this helps - Paul Goldy

|||Thanks for your answer Paul,

The Problem that i have needs another solution because :( , i'm creating the cube dynamically:

I have the DataTable related to the fact table, but when i start creating the measures i need to do this:

(Copied from AdventureWorks - AMO Example)

meas.Source = CreateDataItem(db.DataSourceViews[0], "FactInternetSalesReason", "SalesOrderLineNumber");

but when i'm doing this dynamically i need to verify if "SalesOrderLineNumber" is or not a measure.

So in my case a have the factTable lets say "FactInternetSalesReason ", and i can make a loop through all of its dataTableColumns, here is where i need to know if that column is or not a valid measure in order to add it.

I'm following the AdventureWorks example, but as far as i can see all the cube creation is hard coded.|||HI. I understand the issue better now. Sorry, but I don't know how to determine if a column is a valid measure in your scenario. Paul Goldy|||Hey Lisber..

I'm not sure i fully understand, but what i gather is you want to add the measures from the fact table if it is some sort of numeric datatype in the table?

If that's the case, you've already got the datatable, so you can do something like this:

Dim DC as new DataColumn

For each DC in YOURDATASET.tables("YOURTABLENAME").Columns
If DC.DataType.Name = "Int32" '//Just an example
'//Add your measure here
End if
Next DC

If that's not what you mean, sorry :) If that is what you mean, and need more additional information, let me know..
C|||

Hi

Chris !, exactly i was thinking in the solution you described before , but i was having some troubles, here is the code that i use to figure out if a

data column is or not a measure ( ie, if its numeric ).

// 1o I make a loop through all the columns of my fact table ("FactResellerSales"), here is the code:

private void showMeasures()
{
for (int i = 0; i < this.dataSet.Tables["FactResellerSales"].Columns.Count; i++)
{
DataColumn column = this.dataSet.Tables["FactResellerSales"].Columns;
if (isMeasure(column.DataType))
Response.Write(column.ColumnName + "<br>");
}

}

private bool isMeasure(Type type)
{

switch (type.Name)
{
case "Int16": return (true);
case "Int32": return (true);
case "Int64": return (true);
case "Decimal": return (true);
case "Double": return (true);
case "Byte": return (true);
case "Boolean": return (true); // see better
default: return (false);

}
}

If anyone knows another way to figure out which columns in the fact table are measures or not, please tell me, because this solution is for sure not the best one !

AMD dual Core or Intel XEON

Hi
In our Office,We are building new server for SQL Server.
Presently we use that server for sql server 2000.
But in future (in 1 year) we will update to sql server 2005
The databases we use are for heavy transactional.
I have the following questions about which hardware to choose.
1.Is AMD dual Core processor GOOD
or
2.Intel xeon is good.
3.What factors we need to look into before deciding sql server hardware?
Any kind of help is greatly appreciated.
Thanks
Kumar
Kumar,
Might try this:
Dell's SQL Server 2000 Sizing Tool quickly and easily helps size your
database to find the right server and storage hardware for your
applications.
HTH
Jerry
"Kumar" <Kumar@.discussions.microsoft.com> wrote in message
news:757C4523-0D67-4777-A667-9ECC335F9323@.microsoft.com...
> Hi
> In our Office,We are building new server for SQL Server.
> Presently we use that server for sql server 2000.
> But in future (in 1 year) we will update to sql server 2005
> The databases we use are for heavy transactional.
> I have the following questions about which hardware to choose.
>
> 1.Is AMD dual Core processor GOOD
> or
> 2.Intel xeon is good.
> 3.What factors we need to look into before deciding sql server hardware?
>
> Any kind of help is greatly appreciated.
> Thanks
> Kumar

AMD dual Core or Intel XEON

Hi
In our Office,We are building new server for SQL Server.
Presently we use that server for sql server 2000.
But in future (in 1 year) we will update to sql server 2005
The databases we use are for heavy transactional.
I have the following questions about which hardware to choose.
1.Is AMD dual Core processor GOOD
or
2.Intel xeon is good.
3.What factors we need to look into before deciding sql server hardware'
Any kind of help is greatly appreciated.
Thanks
KumarKumar,
Might try this:
Dell's SQL Server 2000 Sizing Tool quickly and easily helps size your
database to find the right server and storage hardware for your
applications.
HTH
Jerry
"Kumar" <Kumar@.discussions.microsoft.com> wrote in message
news:757C4523-0D67-4777-A667-9ECC335F9323@.microsoft.com...
> Hi
> In our Office,We are building new server for SQL Server.
> Presently we use that server for sql server 2000.
> But in future (in 1 year) we will update to sql server 2005
> The databases we use are for heavy transactional.
> I have the following questions about which hardware to choose.
>
> 1.Is AMD dual Core processor GOOD
> or
> 2.Intel xeon is good.
> 3.What factors we need to look into before deciding sql server hardware'
>
> Any kind of help is greatly appreciated.
> Thanks
> Kumar

AMD dual Core or Intel XEON

Hi
In our Office,We are building new server for SQL Server.
Presently we use that server for sql server 2000.
But in future (in 1 year) we will update to sql server 2005
The databases we use are for heavy transactional.
I have the following questions about which hardware to choose.
1.Is AMD dual Core processor GOOD
or
2.Intel xeon is good.
3.What factors we need to look into before deciding sql server hardware'
Any kind of help is greatly appreciated.
Thanks
KumarKumar,
Might try this:
Dell's SQL Server 2000 Sizing Tool quickly and easily helps size your
database to find the right server and storage hardware for your
applications.
HTH
Jerry
"Kumar" <Kumar@.discussions.microsoft.com> wrote in message
news:757C4523-0D67-4777-A667-9ECC335F9323@.microsoft.com...
> Hi
> In our Office,We are building new server for SQL Server.
> Presently we use that server for sql server 2000.
> But in future (in 1 year) we will update to sql server 2005
> The databases we use are for heavy transactional.
> I have the following questions about which hardware to choose.
>
> 1.Is AMD dual Core processor GOOD
> or
> 2.Intel xeon is good.
> 3.What factors we need to look into before deciding sql server hardware'
>
> Any kind of help is greatly appreciated.
> Thanks
> Kumar

Monday, February 13, 2012

Am i going the right way about this

Hi,

Im building an application in vb.net 05 and mobile sql. When i added the mobile database in visual studio it added a Dataset object in the object viewer.

Now my question is should i add table adapters to this and do my selects inserts updates and deletes using this, or should i us the sqlceclient class connect to the db use a command object ect and do my operations?

I need it to be as fast as possible and 100 reliable.

Can anyone give me a clue as to the best way forward?

Trev

The automatic creating of bindingsource and datasource datasets is a convenience in VS2005 and you can certainly do most of your interaction with SQL Mobile using this approach. If you want finer-grained control over your interaction with SQL Mobile (for performance tuning for example), then I wouldn't use the auto-generated bindings and instead use SqlCeResultSet, SqlCeDataReader, and SqlCeCommands in TableDirect mode to perform your database operations when possible.

Darren