dbTalk Databases Forums  

Server Stored Procedure in Analysis Services

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Server Stored Procedure in Analysis Services in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Poonam Bathla
 
Posts: n/a

Default Server Stored Procedure in Analysis Services - 05-22-2006 , 07:31 PM






Hi,

I wrote couple of CLR stored procedures packaged in an assembly. Compiled it
on my Dev machine and for deploying this assembly to AS database server, i
followed:
http://msdn2.microsoft.com/en-us/lib...0(SQL.90).aspx

When i use a CALL DMX statement From Query Manager to execute any of the
function in this assembly it throws this exception:

Execution of the managed stored procedure TextXYZ failed with the following
error: Exception has been thrown by the target of an invocation.The type
initializer for 'TestAssembly.TestClass' threw an exception..

If instead of Executing i 1st try to parse it tells me:
"
Prepare is not safe during execution of the CleanupDeletedMeasurements
stored procedure."

On all my external available functions in the assembly i have used
SafeToPrepare(true) attribute.

On my Dev machine the same assembly run perfect without any such error. The
only difference is that on my Dev machine i compile and then use, on my Db
Server i just use the dll prepared on Dev box.


I don't know whats causing this. Any help will be great.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.