Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 14th, 2006, 10:05 AM
Authorized User
 
Join Date: Mar 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default DLL or Modules in SQL database

Is there any way to refer or call functions written in modules or DLLs from an MSSQL 2000 database? I have some lengthy complicated functions that would be easier to reference than to re write as an SQL UDF.

Surely this is possible?

JP

John Pennington
 
United Parcel Service
w(404) 828 6934
c (770) 714 5975
__________________
John Pennington
 
United Parcel Service
w(404) 828 6934
c (770) 714 5975
 
Old September 14th, 2006, 10:22 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

In SQL2000, there is this concept of an "Extended Stored Procedure", which is a function with a certain signature implemented in a dll.

Doing this is not for the faint of heart, since an improperly written function could bring down your whole server.

An extended stored procedure must be written in C or C++.

You can also load and execute COM objects via a set of stored procedures named sp_OA...

Both are somewhat complex subjects so I suggest you refer to BOL for more info.

This MS knowledge base article may also help: http://support.microsoft.com/kb/190987.

Things are a bit easier in SQOL2005, as you can much more easily call .NET CLR functions.

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using modules drmacy BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 September 21st, 2007 10:39 AM
The database dll crdb_oracle.dll could not be load Yeliz Crystal Reports 0 October 18th, 2006 08:12 AM
Calling a DLL from the sql code mtrein SQL Language 1 February 12th, 2005 02:10 AM
DLL based database connectivity in VB.NET omkar_ghaisas ADO.NET 2 October 7th, 2004 12:59 AM
DLL generates Database read-only error Howard Classic ASP Databases 0 July 19th, 2003 08:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.