Article View: borland.public.cppbuilder.database.multi-tier
Article #1884Re: HELP! How to run SQL script in C++Builder Program
From: winprise
Date: Mon, 28 Dec 1998 00:00
Date: Mon, 28 Dec 1998 00:00
25 lines
1240 bytes
1240 bytes
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:
<765g2d$kif5@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<75dgcp$1dd13@forums.borland.com> <01be2cf5$28657520$75c09ec2@intermec>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,ae055b32f3111ea9 X-Google-Attributes: gidfcd2b,public From: "winprise" <winprise@163.net> Subject: Re: HELP! How to run SQL script in C++Builder Program Date: 1998/12/28 Message-ID: <765g2d$kif5@forums.borland.com> X-Deja-AN: 426157361 References: <75dgcp$1dd13@forums.borland.com> <01be2cf5$28657520$75c09ec2@intermec> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.cppbuilder.database.multi-tier