473,386 Members | 1,753 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,386 software developers and data experts.

More information on managed code UDF's in SQL Server 2005

In:

http://groups.google.com/group/comp....3b99fed4b094ed

I said:
>Here's the reply:

'-------
You can find information on CREATE ASSEMBLY here.
http://msdn2.microsoft.com/en-us/library/ms189524.aspx
Mike
'-------
Here's some more information on managed code UDF's in SQL Server 2005:
>From CLR Integration example, DAT418 (Christian Kleinerman):
Public Function
GetTax(ByVal amount As Integer) As Integer
Return (amount * 0.68)
End Function

Compile code into an assembly.

SQL Server 2005:

CREATE ASSEMBLY FinancialLib
FROM 'c:\FinLib\bin\bl.dll'
WITH PERMISSION_SET = EXTERNAL_ACCESS

After that step, the assembly is copied into SQL Server.

CREATE FUNCTION financial.GetTax(@it int)
RETURNS decimal(38,10)
AS EXTERNAL

SELECT financial.GetTax(id)
FROM hr.employees;

James A. Fortune
CD********@FortuneJames.com

Aug 25 '06 #1
0 1013

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Renae | last post by:
This one is interesting... Is there any way to pass a joined parameter into a UDF as I'm attempting below? I have a temp table that I'm trying to create: create table #t3 ( bmkPerson int...
0
by: Joe Kraft | last post by:
I'm hoping someone can help me out. We're running a website that uses XML/XSLT transformations, VB.Net and an Oracle database. Currently the site cannot support more than 6-7 users at a time...
6
by: Ray | last post by:
Group, Passing inline values to a udf is straightforward. However, how or is it possible to pass a column from the select of one table into a udf that returns a table variable in a join to the...
4
by: Sivakumar Shanmugam | last post by:
Group.. We are running on db2 UDF V8 on Sun solaris platform. I created an UDF which calles a C-routine(SQL_API_FN). This C-routine in turn calls an external C-function. The C-function is provided...
11
by: Don | last post by:
When using Visual Basic .NET with a reference to Interop.Outlook, is there a way to get more detailed information about an error other than Exception.Message or Exception.ToString? For example,...
8
by: STG | last post by:
Greetings, My group has an SDK that was developed 5 years ago with VC++ 6. Over the last years, the requests for a VS.NET SDK has reached critical mass and I am now in the process of doing that....
1
by: Sibongile Khanyile | last post by:
If anyone can help... I have a function that takes one parameter and bring back quite a lot of records. but with a conventional function the field size has a limit of 8000 and i can not use field...
1
by: c.splittgerber | last post by:
We have some trouble with C-written application and UDF on 64-bit Windows ... Given the following production environment: - Windows 2003 Server on AMD64 - Microsoft C/C++ Compiler of Visual...
5
by: CK | last post by:
I have this UDF CREATE FUNCTION IsSupervisor (@empID int) RETURNS bit AS BEGIN
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.