 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
scoots987 Guest
|
Posted: Wed Dec 13, 2006 1:46 am Post subject: DDL calling another DDL |
|
|
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
|
Posted: Wed Dec 13, 2006 6:35 pm Post subject: Re: DDL calling another DDL |
|
|
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
|
Posted: Wed Dec 13, 2006 8:21 pm Post subject: Re: DDL calling another DDL |
|
|
| 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
|
Posted: Fri Feb 23, 2007 12:44 am Post subject: Re: DDL calling another DDL |
|
|
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 |
|
 |
|
|
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
|
|