473,416 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

How to call DLL file from sql server 2005

27
How to call a DLL file from sql server 2005

and how to use it function.... using sql server 2005
Jul 25 '10 #1
3 3678
PsychoCoder
465 Expert Mod 256MB
You have two options for accomplishing this:
  1. Extended Stored Procedures:
    You can use the procedure sp_addextendedproc (located in the system database) to register the DLL, then you can call it. This is an example of how it works:

    Expand|Select|Wrap|Line Numbers
    1. use master
    2. Go
    3. sp_addextendedproc "MyFunction", "C:\Windows\MyDLL" 
    4.  
    NOTE: Keep in mind that this method is Deprecated but you can accomplish it this way
  2. CLR Objects:
    You can create CLR objects in .Net; such as stored procedures, user defined functions, etc, then register it on your SQL server as an assembly

Hope that helps :)
Aug 2 '10 #2
MrMob
27
Thanks For the POST

Richard..

I will be Happy Enough i get any Clue to use
the Dll File and it Function..

iN sql server 2005

with some good Examples..

Thankyou..
Your Follower..
MrMob...
Aug 11 '10 #3
NeoPa
32,556 Expert Mod 16PB
MrMob: I will be Happy Enough i get any Clue to use
the Dll File and it Function.
You should be happy then, as Richard provided that and more.

You should understand that we're not here to do your work for you. You have the pointers. If that's still not clear then please explain carefully and clearly what you don't understand.
Aug 11 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Angel Cat | last post by:
Trying to get my jobs to send mail when job fails. Should be easy but it's giving me headache Had a whole slew of issues. Outlook is installed with a n outlook mail profile set up that can...
4
by: stjulian | last post by:
(IIS 6.0, SQL Server 2000) I have a block of code that populates a recordset from a stored procedure. The problem is, the recordset seems to be forward only (which would be OK), but can't jump...
47
by: teju | last post by:
hi, i am trying 2 merge 2 projects into one project.One project is using c language and the other one is using c++ code. both are working very fine independently.But now i need to merge both...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.