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

Proc Language in 8.2

Has the promise of stored procedures written in VB6 been fulfilled in 8.2?

If there special syntax, and where do I find it, and where are samples?

Would it be as efficient as, say, SQL?
Nov 12 '05 #1
2 1459
You can write Procedures in DB2 in any CLR language.
So that would include VB and C#
Nov 12 '05 #2
Stanley Sinclair wrote:
Has the promise of stored procedures written in VB6 been fulfilled in 8.2?

If there special syntax, and where do I find it, and where are samples?

Would it be as efficient as, say, SQL?


See the documentation for LANGUAGE CLR routines. Also see the tech
notes, as there was an additional feature added to late to make the
books (EXECUTION CONTROL). Examples in both C# and VB.NET can be found
in the <install>/samples/.NET directory. Note you will need at minimum
the .NET 1.1 runtime installed on your server. The implementation is
currently Windows & Microsoft runtime only - MONO is currently not
supported.

LANGUAGE CLR routines can only run in FENCED mode. This is due to the
potential problems that were encountered with LANGUAGE JAVA routines
that IBM simply did not have time to test for in LANGUAGE CLR within the
V82 timeframe. Additionally, there's an unknown factor of how the JVM
and CLR would cooperate if they were present in the same processes -
having both routine types FENCED allows DB2 to isolate the two runtime
interpreters from each other for customer systems that use both. There
are plans to make both available in NOT FENCED mode in the future.

LANGUAGE SQL procedures run in trusted mode, and are generally the best
performing routines. However, they are limited to the options available
in the SQLPL language. LANGUAGE CLR provides the ability to run any
option available to any .NET language. Note however that depending on
the functionality you choose, you may need to adjust the EXECUTION
CONTROL clause of the routine.
Nov 12 '05 #3

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

Similar topics

4
by: Nyul | last post by:
Gurus, I have a verb big problem which I'm unable to explain. We have a DB2 V6.1.0 on AIX 4.3 I want to make a C stored procedure which at the end will be called by a PHP script. The...
11
by: ColdCanuck | last post by:
Greetings! I am VERY new to DB2 but not Orable, Sybase and SQL Server. I am trying to call a stored procedure via VB 6 and ADO/OLEDB. But when I try to execute
0
by: Dave Sisk | last post by:
I've created a system or external trigger on an AS/400 file a.k.a DB2 table. (Note this is an external trigger defined with the ADDPFTRG CL command, not a SQL trigger defined with the CREATE...
6
by: David Lozzi | last post by:
Here is the proc: CREATE PROCEDURE . @CID as int, @Netname as nvarchar(25), @Return as int OUTPUT AS IF EXISTS (SELECT DISTINCT netname FROM computers WHERE CompanyID = @CID AND...
7
by: David Lozzi | last post by:
I need to support multiple keyword search, not boolean searchs, just simple searches, i.e. "marhsall ma". How is this done? Do I send the entire search string to the Proc? How do I deal with it...
1
by: Bob Parkinson | last post by:
Hi, Is it possible to share some TCL proc's between a set of functions? Something like proc mything { } proc otherthing { }
6
by: Paul M | last post by:
Hi All, I'm currently writing a z/OS DB2 Stored Proc in C, using an example from the IBM Stored Procedure guide (SG24-7083-00). The database calls to read and update the database work...
10
by: syntego | last post by:
I think I have discovered a bug in the handling of null values (vs NULL values) passed as parameters to a stored proc. I have always believed that the database handled NULL and null the same. ...
2
by: appunni | last post by:
Hi, I am trying to execute an DB2 SQL stored proc in mainframe. my proc is CREATE PROCEDURE db2t.abuproc () LANGUAGE SQL external name abuproc
2
by: Rob Eventine | last post by:
hi all, how does one go about changing the details in the aspnetdb dbase using the supplied stored procs? i am using vb as my language but i have no idea how to use them, how to call them or...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...

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.