razaf
October 4, 2023, 7:27pm
1
Hi,
Query is related to stored procedure with an assembly calling in it.The assembly is used to create a xml file.
It is a running procedure on live.
Made a very minor change in the dateadd function of sp and executed the alter sp Again.
Now the assembly part is not working after making changes.
Do we need to do any additional process to work the assembly as before?
Please advise
By assembly I assume you mean a CLR assembly? Did you make any changes to the CLR code? If yes, did you ALTER ASSEMBLY and include the new compiled .Net DLL?
Beyond, that, we'd need to see the DATEADD code you modified and examples of what is "not working", either example data (before and after the change) or output/error messages.
razaf
October 4, 2023, 7:45pm
3
It is clr assembly.
No changes to assembly part.
The Change was made to one of the select query where clause for dateadd function.
That part is fine.
The error thrown is from the raise error custom message given based on return value of the assembly part. -true or false
Ifor
October 4, 2023, 7:59pm
4
The stored proc may have been signed with a certificate which would have been removed when you ALTERed it. Maybe
have a look to see how the assembly is signed.
look for certificate users in the DB.
restore the db and see if the original SP is signed.
Third party providers often sign SPs to see if they have been tampered with. Altering the SP might have put you in breach of licensing conditions.
1 Like