We store the SQL scripts in several differend Souce files QSQLDDLTBL (Tables
only), QSQLDDL (Indexes, Views), QTRGSRC (Trigger), QSQLDML (Stored
Procedures, User Defined Functions, User Define Table functios).
We split it into multiple source files, just for being able how to create,
or for not accidentally recreate SQL tables (without having saved the data).
The decision was made BEFORE we hand the CREATE OR REPLACE enhancement.
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
?Train people well enough so they can leave, treat them well enough so they
don't want to.? (Richard Branson)
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of David
Gibbs
Sent: Montag, 13. März 2017 15:09
To: midrange-l@xxxxxxxxxxxx
Subject: Where do you store the SQL source for your tables, views, etc?
Folks:
I'm just curious ... where do you store the SQL source for your tables,
views, etc?
Do you put it in a source PF? If so, what name do you use?
Here, we put SQL source in QSQLSRC.
Thanks!
david
--
IBM i on Power Systems: For when you can't afford to be out of business!
I'm riding a metric century (100 km / 65 miles) in the American Diabetes
Association's Tour de Cure to raise money for diabetes research, education,
advocacy, and awareness. You can make a tax deductible donation to my ride
by visiting
http://mideml.diabetessucks.net. My goal is $6000 but any
amount is appreciated.
You can see where my donations come from by visiting my interactive donation
map ...
http://mideml.diabetessucks.net/map (it's a geeky thing).
I may have diabetes, but diabetes doesn't have me!
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.