My general problem is that I want to make a runtime component that:
- will sit on the SQL Server machine
- will be called with a large xml parameter, then use AMO to define and process a new AS database
- Can be invoked from a non windows machine using jdbc or web services. Preferably jdbc.
I made a CLR C# SQL stored procedure that references the Microsoft.AnalysisServices assembly (adding the reference to the project file using a text edtor)
Problem is that when I try to add the Microsoft.AnalysisServices assembly to an SQL server database I get this error.
CREATE ASSEMBLY failed because method "add_CollectionChanging" on type "Microsoft.AnalysisServices.ModelComponentCollection" in safe assembly "Microsoft.AnalysisServices" has a synchronized attribute. Explicit synchronization is not allowed in safe assemblies.
I'm a novice with CLR. Am I trying to do something stupid Is there an easily solution
thanks in Advance
Zub

Can I add Microsoft.AnalysisServices assembly into SQL CLR stored proc
SqlShaun
TootPeep
Bluesky_Jon
I'm trying to avoid a dependency on IIS.
I aslo need to trigger this from a non windows machine using java.
Another approach is to write an AS CLR Assembly and then call it using MDX via XMLA. Trouble is it seems that you need the AS Data pump installed in IIS to use XMLA. I'm trying to figure out how to use the the same channel that MS does for XMLA.
mazen44
Thanks
I am now aware of the PERMISSION_SET option. UNSAFE is not recommended and is actually quite difficult to achieve with the AnalysisServices assembly. I guess this is saying I should not do it - right
Zub
Pierre-Yves Troel