![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Can anyone explain why you cannot register the assembly Microsoft.AnalysisServices.AdomdClient in a SQL Server 2005 database with permission set to ⤽Safe⤝ without generating SQL Server error 6211? Why do you have to SET TRUSTWORTHY ON in your database in order to register the Microsoft.AnalysisServices.AdomdClient assembly with an ⤽Unsafe⤝ permission set? (You would think this assembly would be safe and trustworthy, wouldn't you?) |
|
I would like to execute an XMLA command within a stored procedure that processes a SQL Server 2005 Analysis Services database. It looks like the way to do this is by 1) registering the Microsoft.AnalysisServices.AdomdClient assembly in my database by setting TRUSTWORTHY ON in my database then referencing the assembly with an ⤽Unsafe⤝ permission set; 2) creating a .NET assembly that executes the AdomdClient.ExecuteNonQuery method; 3) referencing the new assembly in my database (which can be referenced using a ⤽Safe⤝ permission set by the way); then 4) calling the assembly in my stored procedure via the syntax CALL myassembly.myclass.myexecxmlacommand(xmlacommandas text). Is there a better way to execute an XMLA command within a stored procedure? I don't want to use an SSIS package because I want to execute XMLA commands on different databases at different times for different purposes. In other words I want this to be very generic. |
![]() |
| Thread Tools | |
| Display Modes | |
| |