Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Can Extend SP interact with .net classes ?

Author  Topic 

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-09-01 : 15:35:26
Hello,
Can Extend SP interact with .net classes as they do with dll or com components ?

And how do i instantiate a .net class ?

I tried using

EXEC @Return = sp_oacreate 'System.Net.HttpWebRequest', @Object OUTPUT

But does not work
thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-09-02 : 01:08:48
Why not just use a .NET CLR object rather than an extended stored procedure, since you are using SQL Server 2005?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-09-02 : 06:47:42
Never used CLR

But, we are manipulating with loads of records in the db.

The fastest and easiest way to interact with them is to interface them with the sp_oa objects ( Having one layer) . Instead of working with distributed layers.
Go to Top of Page
   

- Advertisement -