🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #1428

Re: V7 - How to save SQL result set from designer

#1428
From: Philip Frank
Date: Fri, 19 Dec 1997 00:00
33 lines
1672 bytes
charles richards wrote:
> I was frustrated that an SQL result set from the VISUAL tools was not
> available to the Command Window. 

Yes, I was too.  Access will let you export the data once you have a
result set, so far VDB won't.  What I've done, once I know the query is
working, is to take the SQL query and generated a .DBF file with it...
usually that's what I need anyway.  I use the following code snippet
which came out of the help file:

d = new Database()

d.databaseName = "CONTACTSODBC"  // or whatever your database is named
d.active = true
q = new Query()
q.database = d
q.sql = "@c:\contacts\OrgCont.sql"  // the SQL file generated by the SQL
designer
q.unidirectional=TRUE  //  These two lines aren't in the help file, but
I get the
q.RequestLive=FALSE    //  error that the table is Read Only otherwise.
q.active = true

u = new UpdateSet()

u.source = q.rowset
u.destination = "C:\CONTACTS\ORGCONT.DBF"  // the destination DBF
u.copy()

This copies all of the rows from the SQL query into the DBF.  Good luck!

Phil Frank
Technical Details
Message-ID: <349AE58E.1043@wharton.upenn.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <67e4gn$dg73@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,ea5e419459a47590
X-Google-Attributes: gidff5a1,public
From: Philip Frank <frankp@wharton.upenn.edu>
Subject: Re: V7 - How to save SQL result set from designer
Date: 1997/12/19
Message-ID: <349AE58E.1043@wharton.upenn.edu>
X-Deja-AN: 308675924
Content-Transfer-Encoding: 7bit
References: <67e4gn$dg73@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: The Wharton School, Executive Education Div.
Mime-Version: 1.0
Reply-To: frankp@wharton.upenn.edu
Newsgroups: borland.public.vdbase.data.sql