HELP!!! Extended Stored Procedure and vb

HELP!!! Extended Stored Procedure and vb

Post by sd » Wed, 18 Jul 2001 10:33:24



Hello
Does anyone out there know where I can find an example of an extended stored
procedure calling a VB dll. Thanks
Brian


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

 
 
 

HELP!!! Extended Stored Procedure and vb

Post by Greg Linwoo » Wed, 18 Jul 2001 11:02:21


Assuming your VB .dll is a COM server, you use the sp_OAxxx set of stored
procedures, such as sp_OACreate etc. These are documented well in Books
Online and additional COM error handlers are also provided to assist.

Suggest that you consider using a VB ActiveX .exe type COM server which will
run out of process from the main SQL Server Win Process. Generally this is a
better approach, assuming that there is not a large amount of communicatoin
between SQLServer and the COM Object/s.

I think that extended stored procs cannot easily be written in VB but are
really intended for C.

Cheers,
Greg Linwood


> Hello
> Does anyone out there know where I can find an example of an extended
stored
> procedure calling a VB dll. Thanks
> Brian


> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----


 
 
 

HELP!!! Extended Stored Procedure and vb

Post by Gert E.R. Draper » Wed, 18 Jul 2001 12:59:18


You can not build Extended Stored Procedures in VB.
-GertD


> Hello
> Does anyone out there know where I can find an example of an extended
stored
> procedure calling a VB dll. Thanks
> Brian


> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

 
 
 

HELP!!! Extended Stored Procedure and vb

Post by Mike » Thu, 19 Jul 2001 00:26:21


VB .DLL's are OLE Automation servers and don't exist as a C or other compiled language .DLL file.  Whatever language you have used to create your extended stored procedure in should have a mechanism to talk to "COM" objects.  The VB .DLL is one such object.

> Hello
> Does anyone out there know where I can find an example of an extended stored
> procedure calling a VB dll. Thanks
> Brian


> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----