🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: HELP! How to run SQL script in C++Builder Program

#1887
From: Robert Doyle
Date: Wed, 30 Dec 1998 00:00
29 lines
1402 bytes
Yes it will

Robert

winprise wrote:

> Hi nikoly:
>   Thank you for your answer.
> But I want to run a full SQL Script in BCB.
> The Script include create table and Store_procedure.
> I just want to know Can TQUERY suport to run Store_procedure
> even whole Script language.
>
> >Hi winprise.
> >
> >First you must create a TQuery.
> >Next, assign a SQL property of this query a string list withs your SQL text
> >Next execute a method ExecSQL of this Query.
> >Note, what you must disable a table schema cache in your BDE ALIAS.
> >like SCHEMA CACHE SIZE=0
> >
> >for example:
> >
> >TQuery *Query = new TQuery(0);
> >Query->SQL->Add("CREATE TABLE TEST (FIELD1 INTEGER,FIELD2 INTEGER)");
> >Query->ExecSQL();
> >delete Query;
> >
> >
Technical Details
Message-ID: <368A0C8A.B9E9D8F0@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <75dgcp$1dd13@forums.borland.com> <01be2cf5$28657520$75c09ec2@intermec> <765g2d$kif5@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,ae055b32f3111ea9
X-Google-Attributes: gidfcd2b,public
From: Robert Doyle <rdoyle@inprise.com>
Subject: Re: HELP! How to run SQL script in C++Builder Program
Date: 1998/12/30
Message-ID: <368A0C8A.B9E9D8F0@inprise.com>
X-Deja-AN: 427079382
Content-Transfer-Encoding: 7bit
References: <75dgcp$1dd13@forums.borland.com> <01be2cf5$28657520$75c09ec2@intermec> <765g2d$kif5@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.multi-tier