🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #677

question

#677
From: Michael Kim
Date: Thu, 19 Apr 2001 16:40
17 lines
1877 bytes
Hello,

I have a question.  How can I pass the current connection to a (UDF)user
defined function from within a stored procedure.  I would like to use the
connection that is active while I am in my stored procedure rather than
having to call the API function for connecting and disconnecting to the
database from within my UDF that exists within my host language DLL that
resides on the machine where Interbase Server is located.  Since, I need a
connection to call my stored procedure in the first place from my client
machine can I get the connection handle from my client side and pass it  to
the stored procedure or should I grab the connection handle from within the
Stored Procedure and pass along to my UDF.  Based on my programming of the
UDF using API functions the connection handle returned appears to be just an
integer value, so is this value unique to my server machine?

Thank You.  I would appreciate any assistance.
Michael
Technical Details
Message-ID: <3adf06b2$1_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!newsfeed.google.com!sn-xit-03!supernews.com!feeds.vnews.net!ptdnetP!newsgate.ptd.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,a91df26c66dee2ac,start
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2001-04-19 09:16:08 PST
Reply-To: "Michael Kim" <michael@visiblechanges.com>
From: "Michael Kim" <michael@visiblechanges.com>
Newsgroups: borland.public.cppbuilder.database.multi-tier
Subject: question
Date: Thu, 19 Apr 2001 10:40:54 -0600
Lines: 20
Organization: Visible Changes, Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2462.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000
NNTP-Posting-Host: 65.67.28.130
Message-ID: <3adf06b2$1_1@dnews>
X-Trace: dnews 987694770 65.67.28.130 (19 Apr 2001 08:39:30 -0700)
Path: arc1-ca.pugleaf.net!supernews.google.com!newsfeed.google.com!sn-xit-03!supernews.com!feeds.vnews.net!ptdnetP!newsgate.ptd.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews