Subject | Re: [ib-support] Re: How to use UDF in Firebird?? |
---|---|
Author | Helen Borrie |
Post date | 2002-06-04T00:41:31Z |
At 10:34 PM 03-06-02 +0000, you wrote:
1. Drop the declaration that you have in your database and commit work.
2. Disconnect from the database and shut down the server.
3. Copy the dll into your ..\Firebird\UDF directory.
4. Open ibconfig and check that you don't have a "live" entry for
EXTERNAL_FUNCTION_DIRECTORY or that, if you do, it is correctly pointing to
your UDF directory.
5. Start up the server again and log in as SYSDBA.
6. Redeclare the UDF as follows:
DECLARE EXTERNAL FUNCTION F_YEAR
DATE
RETURNS INTEGER BY VALUE
ENTRY_POINT 'Year'
MODULE_NAME 'FreeUDFLib';
All this assumes, of course, that your Firebird server is running on
Windows. FreeUDFLib.dll works only on a Windows server.
heLen
All for Open and Open for All
Firebird Open SQL Database · http://firebirdsql.org ·
http://users.tpg.com.au/helebor/
_______________________________________________________
>I know about Extract but the fact is I am nota ableDo this:
>to use UDF!!!
>The UDF is the standard FreeUDFLib from C.Valde,
>The firebird is the last...
>So why want work? damn
1. Drop the declaration that you have in your database and commit work.
2. Disconnect from the database and shut down the server.
3. Copy the dll into your ..\Firebird\UDF directory.
4. Open ibconfig and check that you don't have a "live" entry for
EXTERNAL_FUNCTION_DIRECTORY or that, if you do, it is correctly pointing to
your UDF directory.
5. Start up the server again and log in as SYSDBA.
6. Redeclare the UDF as follows:
DECLARE EXTERNAL FUNCTION F_YEAR
DATE
RETURNS INTEGER BY VALUE
ENTRY_POINT 'Year'
MODULE_NAME 'FreeUDFLib';
All this assumes, of course, that your Firebird server is running on
Windows. FreeUDFLib.dll works only on a Windows server.
heLen
All for Open and Open for All
Firebird Open SQL Database · http://firebirdsql.org ·
http://users.tpg.com.au/helebor/
_______________________________________________________