Subject | Re: How do I run an Insert Script that contain text BLOBs? |
---|---|
Author | i5cvalde |
Post date | 2004-12-04T05:31:13Z |
--- In firebird-support@yahoogroups.com, "M Tuttle \(KS\)"
<miket@s...> wrote:
This lack of functionality was addressed since Firebird v1. Server may
consume more memory than expected but I think this was solved in newer
versions (v1.5 or v2, not sure).
that prepares the statements and goes in a loop feeding the parameters
and executing the statement. Preparing once is much faster.
But if you run scripts with isql and you use IB or don't want to use
FB's automatic feature to insert or update blobs with literal text,
you can resort to fbudf's string2blob or freeUdfLib that also has a
function for that.
C.
<miket@s...> wrote:
> Greetings All,I assume you are using IB, right?
>
> I know you cannot directly insert a text blob with a SQL insert script.
This lack of functionality was addressed since Firebird v1. Server may
consume more memory than expected but I think this was solved in newer
versions (v1.5 or v2, not sure).
> ButIf you don't want to use isql, you can always use your own program
> I seem to remember running across a UDF that would allow this to happen.
> Can anyone tell me where to find this UDF? Or how they are using insert
> script to insert data that contains text blobs?
that prepares the statements and goes in a loop feeding the parameters
and executing the statement. Preparing once is much faster.
But if you run scripts with isql and you use IB or don't want to use
FB's automatic feature to insert or update blobs with literal text,
you can resort to fbudf's string2blob or freeUdfLib that also has a
function for that.
C.