Hi, What's difficult about writing contents of memory to a file? The database server can't write the file for you, it might even be on another node. The library doesn't seem to have the functionality implemented, so do it yourself. Can't be that hard.
Ronald On Wed, 25 Apr 2007 08:57:44 +0200 Rolf Theisinger <[EMAIL PROTECTED]> wrote: > Hello, > > Am Dienstag, 24. April 2007 16:48 schrieb Grant Croker: > > On Tue, 2007-04-24 at 15:33 +0200, Rolf Theisinger wrote: > > > Hello ingres users, > > > > > > I am trying to copy a table to a file, but this does not work. > > > > > > This is my code: > > > // Query database > > > // queryText: "copy table myTable() into '/tmp/filename'" > > > IIapi_query(&queryParm); > > > > <snip> > > > > the syntax for copy into/from within OpenAPI is: > > > > copy table myTable() into program > > copy table myTable() from program > > > > Yes, but I want to copy a table into a file, not into memory. > > > > > Have a look at $II_SYSTEM/ingres/demo/api/apiscopy.c for an example copy > > into/from OpenAPI program > > > > regards > > > > grant > > I had a look, but in this example there is no copy into a file and > that's what I need: > "copy table myTable() into '/tmp/filename'" > > Can anybody explain me, how this can be done? > > Many thanks > Rolf > > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.ingres.com/mailman/listinfo/users > -- independIT Integrative Technologies GmbH Sitz der Gesellschaft: Schrobenhausen HRB Neuburg B 1.521 Geschäftsführer: Dieter Stubler, Dipl. Inform. (FH) Ronald Jeninga, Diplom Mathematiker _______________________________________________ Users mailing list [email protected] http://lists.ingres.com/mailman/listinfo/users
