.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Asad Ali
Fauzul Azmi
Post New Web Links

Microsoft.AnalysisServices Translations management from c#

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :Sql Server
 

Dear all,

I connect to an OLAP cube from .NET (v3.5, c#) using the objects located in the Microsoft.AnalysisServices namespace. I would like to dynamically manage my translations for dimensions, attributes, measures, measure groups. 

A sample code for updating the translations of an attribute is the following:

 

foreach(DimensionAttribute attribute in dimension.Attributes){
 attribute.Translations.Add(1043, "Some Caption");
}

The above code however throws an InvalidOperationException "The item Translation is not valid" when trying to add. 

Any ideas why this is happening and how to fix it?

 




View Complete Post


More Related Resource Links

Garbage Collection-Part 2: Automatic Memory Management in the Microsoft .NET Framework

  

The first part of this two-part article explained how the garbage collection algorithm works, how resources can clean up properly when the garbage collector decides to free a resource's memory, and how to force an object to clean up when it is freed. The conclusion of this series explains strong and weak object references that help to manage memory for large objects, as well as object generations and how they improve performance. In addition, the use of methods and properties for controlling garbage collection, resources for monitoring collection performance, and garbage collection for multithreaded applications are covered.

Jeffrey Richter

MSDN Magazine December 2000


Garbage Collection: Automatic Memory Management in the Microsoft .NET Framework

  

Garbage collection in the Microsoft .NET common language runtime environment completely absolves the developer from tracking memory usage and knowing when to free memory. However, you'll want to understand how it works. Part 1 of this two-part article on .NET garbage collection explains how resources are allocated and managed, then gives a detailed step-by-step description of how the garbage collection algorithm works. Also discussed are the way resources can clean up properly when the garbage collector decides to free a resource's memory and how to force an object to clean up when it is freed.

Jeffrey Richter

MSDN Magazine November 2000


What happened to the backup and restore classes in namespace Microsoft.SqlServer.Management.Smo vers

  
I do not see these two classes in version 10 of this namespace and I am not finding any documentation explaining what happened to them.

Powershell script that uses Microsoft.SqlServer.Management.Smo.Server need to use Sql Server Autheni

  
I have written a powershell script that uses Microsoft.SqlServer.Management.Smo.Server.  I have a couple of instances that are on different domains that I must use Sql Server authenication.  I am going to create a report user "sssmorpt".  What is the least a can grant this user to allow me to use Microsoft.SqlServer.Management.Smo.Server to get "$dbsize = $db.size - ($db.logfiles|measure-object -property size -sum).sum / 1024" for all databases in an instances?

Getting "wrong" data out of a microsoft.sqlserver.management.smo.database object property (using pow

  
My problem:I do something like this:$dbsvr = new-object microsoft.sqlserver.management.smo.server "servername"$dbsvr.databases | ft name,size -autosizeWhen i run this from two different PC's i get database sizes that are all the same (5.25 mb), the size of the first database listed - which is master.I started to try out a few things, and found out that when i run the same command from one of our servers it returns the correct sizes...Anyone have any idea if this a SMO issue, or maybe some package software version issue...- or what?

Microsoft.AnalysisServices.AdomdClient problem

  
I had a C# Winforms project referencing Microsoft.AnalysisServices.AdomdClient. It was working 100%. I upgarded MS SQL 2008 to R2. I also installed the relevant programs in the SQL2008 R2 feature pack. What happens now is after I add a reference to Microsoft.AnalysisServices.AdomdClient, I can add a using statement to the dll. If I type Microsoft, add a dot intellisence will give me 'AnalysisServices' and I can complete the statement. As soon as I build the project, I get a squirel below 'AnalysisServices' and the error message: Error 2 The type or namespace name 'AnalysisServices' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) The version of Microsoft.AnalysisServices.AdomdClient is 10.0.0.0. The runtime version is v2.0.50727. The fileversion and product version is 10.50.1600.1. I work on a Windows Vista computer using Visual Studio Professional. I am realy desperate for help. I spend the entire weekend uninstalling and re-installing SQL 2008 R2, Visual Studio and the feature pack. All to no avail. I am not sure what forum to select.

PS2007/MSSQL2008: Cannot install Microsoft SQL Server 2005 Management Objects Collection (sqlserver2

  
Hi folks, about 1,5 months ago I have set up a - 1 server - development environment for PS2007. I had installed all components on one Windows 2008 box. Everything worked fine, now I receive an error. •MOSS 2007 •SQL 2008 SP1 •MOPS 2007 SP2 I have done the additional installation for the cube building part according to this page http://technet.microsoft.com/en-us/library/dd285466(office.12).aspx Microsoft SQL Server Native Client (sqlncli.msi) Microsoft SQL Server 2005 Management Objects Collection (sqlserver2005_xmo.msi) Microsoft SQL Server 2005 Backwards Compatibility Components (SQLServer2005_BC.msi) Everything worked fine. Cubes were able to be built.. everything was good. In order to have Reports built I added SSRS 2008 Reporting Services Addin for MOSS (rsSharePoint_x64) Business Intelligence Development Studio (=Visual Studio for MSSQL) No CUs have been added to this box. NOW, Cube creation fails with the error: ULS LOG: [CBS] ProjectServerOlapCubeGenerator status: Analysis Services session failed with the following error: Failed to connect to the Analysis Services server <IPADDRESS>. Error: ActiveX component can't create object 08efbc13-299a-4abe-9021-c46887ca6915 Eventlog says: SSP Name: SharedServices1 PSError: CBSASConnectionFailure (17003) Cube build failed to connect to the Analysis Services server. Verify the data source connection i

Framework error:Could not load file or assembly 'Microsoft.AnalysisServices, Version=9.0.242.0

  
Hi,I use sql clr sp's to load data in to database using .net framework 2.0. I never had aproblem using this and it went well for months.I recently updated to net framework 3.5 sp1 and sqlserver sp3 on 32-bit sql server and win 2003.I am facing an error which i could not resolve.Error:System.IO.FileLoadException: Could not load file or assembly 'Microsoft.AnalysisServices, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. Assembly in host store has a different signature than assembly in GAC. (Exception from HRESULT: 0x80131050)System.IO.FileLoadException:    at StoredProcedures.checktable(String paramComponent, String paramParameters)I have gone through different forums, and trie different options,but did not help. I am using 'unsafe'  option.I also tried to alter assembly which is mentioned in http://support.microsoft.com/kb/949080/pt But when i tried to alter the assembly using the above link or try to change the permission to external access on the assembly, i get the below error.Alter ASSEMBLY AccessibilityFROM 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Accessibility.dll'Cannot alter the assembly 'Accessibility', because it does not exist or you do not have permission.I am an admin on the server/sqlCan some one suggest how to alter assembly with permissions or solve this issue or am i missing anything important.Do i

Problem trying to attach database file to Microsoft SQL Server Management Studio

  
I was trying to attach a database to SQL Server MGT Studio and got an exception error.  The message stated that the database file I was trying to attach could not be opened because it was version 661.  The SQL Server shows to support version 655 and earlier.  It states that a downgrade path is not supported. Question:  Is there some download ; fix; I can make to SQL Server 2008 that will allow me to attach the version 661????  I am not technical at all.  Please speak slowly.  :)  Thanks

Microsoft SQL Server Management Studio 2008 does not list all tables in database

  
When logging into SSMS 2008 to a SQL2008 database when I expand the tables in a database I only see a few tables listed.  I can login to the same instance with SSMS 2005 and all of the tables are there.  Is there a reason why this is this way?

I can do a select * from in a query window for any of the tables in the database via SSMS 2008 as well and it work fine.  It just does not display the tables.

Referencing Microsoft.AnalysisServices.XMLA?

  

Hi Guys,

How can i reference Microsoft.AnalysisServices.XMLA.dll in my project? Im using SQL Server 2008 R2.

Thanks, 


Forefront Identity Management Service does not support workflows of type 'Microsoft.ResourceManagem

  

I have a client that has a Named instance of SQL Server 2008 R2, as this can cause issues with the User Profile Service I have deployed the June 2010 CU to this SharePoint Farm. Farm consists of 1 WFE, 1 App and a SQL 2008 R2 cluster. While applying the June I also went ahead and deployed the August 2010 CU. This is a new environment and is still in the design phase.

Well on to the problem.

After these CU's were added we were able to configure the Profile import and everything is importing as expected.

But now the Event logs (Windows Application) are throwing a Forefront Identity Manager Event ID 3, every min, these are coming in groups of 2 with the same ID but slightly different messages.

Message 1:

Microsoft.ResourceManagement.Workflow.Hosting.WorkflowManagerException: Forefront Identity Management Service does not support workflows of type 'Microsoft.ResourceManagement.Workflow.Activities.SequentialWorkflow, Microsoft.ResourceManagement, Version=4.0.2450.9, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Message 2:

Microsoft.ResourceManagement.Service: Microsoft.ResourceManagement.Workflow.Hosting.WorkflowManagerException: Forefront Identity Management Service does not support workflows of type 'Microsoft.ResourceManagement.Workflow.Activities.SequentialWorkflow, Microsoft.ResourceManagement, Version=4.0.

Microsoft SQL Server Management Studio Question

  
I am new to writing stored proecedures and this will be my first stored procedure written with Microsoft SQL Server Management Studio.  I am familiar with working with VS 2010 and I have noticed that the IDE is very different.  So, let's start with the basics.  How do I go about adding a new stored procedure into the group of stores procedures that the project currently has.  I already know that name and the T-SQL code I need.  I just need to put it. 
Web Master and Programmer

Microsoft SqlServer 2008 Management SqlStudio Error

  

I am just installed SqlServer 2008 and then i am getting error when i am exploring server in Management Studio

OS Windows 7 Home Premium.

I and then when i am lunched Management studio there am getting popup window with the willowing error:

Value cannot be null.
Parameter name: viewInfo (Microsoft.SqlServer.Management.SqlStudio.Explorer)

Here is detailed information of this error:

===================================

Value cannot be null.
Parameter name: viewInfo (Microsoft.SqlServer.Management.SqlStudio.Explorer)

------------------------------
Program Location:

at Microsoft.SqlServer.Management.SqlStudio.Explorer.ExplorerViewDescriptor..ctor(IFactoryService factoryService, INavigationViewInfo viewInfo, String urnPath, IDictionary`2 allEntities)
at Microsoft.SqlServer.Management.SqlStudio.Explorer.NavigationService.GetView(String urnPath)
at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.<GetColumnsFromNavigationService>d__f.MoveNext()
at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.AddFields(List`1 list, IEnumerable`1 fields, IDictionary`2 allValidFields, AddFieldsFlags flags)
at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.GetF

How to get all the rules of an association model using "CALL System.Microsoft.AnalysisServices.Syste

  

Dear All,

I am using sql server analysis services to build an association model, once the model is built i am using "CALL System.Microsoft.AnalysisServices.System.DataMining.AssociationRules.GetRules"  procedure to get support,importance,probability for a rule  by passing the name of a model (1 st parametre), but this procedure can retreive only max of 2000 rules though there are more than this depending on the sorting condition( 4 th parametre) specified in the above procedure.

Is it possible to get all the rules of a model using the above procedure?

If not pls suggest some alternative to get all rules of a model with support,probability and importance.

Thanks in Advance.


How to get all the rules of an association model using "CALL System.Microsoft.AnalysisServices.Syste

  

Dear All,

I am using sql server analysis services to build an association model, once the model is built i am using "CALL System.Microsoft.AnalysisServices.System.DataMining.AssociationRules.GetRules"  procedure to get support,importance,probability for a rule  by passing the name of a model (1 st parametre), but this procedure can retreive only max of 2000 rules though there are more than this depending on the sorting condition( 4 th parametre) specified in the above procedure.

Is it possible to get all the rules of a model using the above procedure?

If not pls suggest some alternative to get all rules of a model with support,probability and importance.

Thanks in Advance.


microsoft management console issue in SQL Server 2000

  

Hi Team,

I have an issue starting the management console (enterprise manager), Installed SQL Server 2000 and when i try to open the enterprise manager got a pop-up Microsoft management console the selected file cannot be found.

more info installed using my username but am not the admin of the machine is this causing the issue, though i didn't face any issue in the installation and i haven't restarted the server after installation.

Any help would be greatly appreciated!!

Regards,

Eshwar.


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend