O
Oleg Ogurok
Hi all,
I've just discovered the following article on MSKB saying that SQL Server
2000 doesn't support calling .NET stored procedures via SP_OA* methods.
http://support.microsoft.com/?kbid=322884
I'm a little puzzled. I've been using this method for serveral months with
no problems.
Basically, I have a .NET class library exposed to COM. I call this library's
methods from either SQL's stored procedures or triggers. Here's the code
that calls it:
---------------
DECLARE @Object int
EXEC sp_OACreate 'MyDotNetLib.Class1', @Object OUT
PRINT @Object
EXEC sp_OAMethod @Object, 'MethodName, NULL, @param1
EXEC sp_OADestroy @Object
---------------
So far this has been working. I'm wondering if at some point this code is
going to crash SQL server or cause other problems.
Any idea?
Thanks,
-Oleg.
I've just discovered the following article on MSKB saying that SQL Server
2000 doesn't support calling .NET stored procedures via SP_OA* methods.
http://support.microsoft.com/?kbid=322884
I'm a little puzzled. I've been using this method for serveral months with
no problems.
Basically, I have a .NET class library exposed to COM. I call this library's
methods from either SQL's stored procedures or triggers. Here's the code
that calls it:
---------------
DECLARE @Object int
EXEC sp_OACreate 'MyDotNetLib.Class1', @Object OUT
PRINT @Object
EXEC sp_OAMethod @Object, 'MethodName, NULL, @param1
EXEC sp_OADestroy @Object
---------------
So far this has been working. I'm wondering if at some point this code is
going to crash SQL server or cause other problems.
Any idea?
Thanks,
-Oleg.