BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DDL calling another DDL

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
scoots987
Guest





PostPosted: Wed Dec 13, 2006 1:46 am    Post subject: DDL calling another DDL Reply with quote



Does anyone have an idea of how to have a DDL calling 1 or more DDLs? I
have a few DDLs that create the databases/tables, but I also have some
SQL statements to insert the data from another file. I am not speaking
of Bulk insert. My secondary file is a bunch of INSERT INTOS table
(some field names) values (some values). I'd like to have my one DDL to
create the tables and then execute my files to insert the data. With
out running this manually everytime.

Any ideas????

TIA
Back to top
Brian Hollister
Guest





PostPosted: Wed Dec 13, 2006 6:35 pm    Post subject: Re: DDL calling another DDL Reply with quote



You might get away with executing a procedure from your initial script. Just
take the Insert Intos and place them in a stored proc and use exec in the
original script.

This assumes your inserts are static, though.

--
Got a big event coming up? Let us
help coordinate your event. For more
visit www.kissemgoodbye.com
"scoots987" <scoots987 (AT) gmail (DOT) com> wrote in message
news:1165952796.948788.8520 (AT) l12g2000cwl (DOT) googlegroups.com...
Quote:
Does anyone have an idea of how to have a DDL calling 1 or more DDLs? I
have a few DDLs that create the databases/tables, but I also have some
SQL statements to insert the data from another file. I am not speaking
of Bulk insert. My secondary file is a bunch of INSERT INTOS table
(some field names) values (some values). I'd like to have my one DDL to
create the tables and then execute my files to insert the data. With
out running this manually everytime.

Any ideas????

TIA
Back to top
Martijn Tonies
Guest





PostPosted: Wed Dec 13, 2006 8:21 pm    Post subject: Re: DDL calling another DDL Reply with quote



Quote:
Does anyone have an idea of how to have a DDL calling 1 or more DDLs? I
have a few DDLs that create the databases/tables, but I also have some
SQL statements to insert the data from another file. I am not speaking
of Bulk insert. My secondary file is a bunch of INSERT INTOS table
(some field names) values (some values). I'd like to have my one DDL to
create the tables and then execute my files to insert the data. With
out running this manually everytime.

Any ideas????

Depending on the database engine and the script runner, some allow
scripts to call other scripts.


--
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
Back to top
ras
Guest





PostPosted: Fri Feb 23, 2007 12:44 am    Post subject: Re: DDL calling another DDL Reply with quote

Try using dbConstructor to generate your DDL scripts it's easy to create the
kind of scripts that you are describing.

Robert Allen Schambach
www.dbconstructor.com


"scoots987" <scoots987 (AT) gmail (DOT) com> wrote in message
news:1165952796.948788.8520 (AT) l12g2000cwl (DOT) googlegroups.com...
Quote:
Does anyone have an idea of how to have a DDL calling 1 or more DDLs? I
have a few DDLs that create the databases/tables, but I also have some
SQL statements to insert the data from another file. I am not speaking
of Bulk insert. My secondary file is a bunch of INSERT INTOS table
(some field names) values (some values). I'd like to have my one DDL to
create the tables and then execute my files to insert the data. With
out running this manually everytime.

Any ideas????

TIA
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.