Click here to Skip to main content
15,887,585 members
Home / Discussions / Database
   

Database

 
QuestionAllocation! Pin
Learner5209-Feb-09 12:40
Learner5209-Feb-09 12:40 
QuestionSQL Foreign Key Issue Pin
Harvey Saayman9-Feb-09 10:02
Harvey Saayman9-Feb-09 10:02 
AnswerRe: SQL Foreign Key Issue Pin
Wendelius9-Feb-09 18:14
mentorWendelius9-Feb-09 18:14 
GeneralRe: SQL Foreign Key Issue Pin
Harvey Saayman9-Feb-09 19:34
Harvey Saayman9-Feb-09 19:34 
GeneralRe: SQL Foreign Key Issue Pin
Wendelius9-Feb-09 20:18
mentorWendelius9-Feb-09 20:18 
GeneralRe: SQL Foreign Key Issue Pin
Harvey Saayman9-Feb-09 20:32
Harvey Saayman9-Feb-09 20:32 
GeneralRe: SQL Foreign Key Issue Pin
Wendelius9-Feb-09 21:31
mentorWendelius9-Feb-09 21:31 
QuestionWhat is the best way to store scripts? Pin
redjoy9-Feb-09 9:32
redjoy9-Feb-09 9:32 
My Definitions:
script: A script contains one or more executable records which may also include other scripts.
executable record: An executable record contains a header and a data section.
data section contains a struct representing the values of the executableID. (currently the data section is binary data that gets converted by the script engine)
header contains sourceID, executableID, sizeof(header + data section).


I have thousands of modular scripts that do specific tasks and that could be used by other scripts.
For example:
MainScript01
-DoSomethingA
-DoSomethingB
-DoSomeThingC

MainScript02
-DoSomethingA
-DoSomethingD
--DoSomethingC

I would like to view the scripts in a tree.
I would like to store the scripts in a database or other text based container. If possible in ASCII format for easy editing outside the script engine application.

Question: What are some specific possibilities that I could use to store scripts?
I am trying to figure out what type of table(s) and fields I should have.

-one table holds them all? (cannot easily update structures in the Data field)
table definition: ScriptID, ScriptRecordNo, TotalRecords (in this ScriptID), Comments, Data (byteArray of executableID), Index (automatically generated by database), (other control fields)

-separate tables?
-Mainscripts (using foreign keys to subscripts and executableIDs?)
-subscripts (using foreign keys to subscripts and executableIDs?)
-each type of executableIDs (one field for variable in the struct makes changing structs and values easier)

I would like some pros and cons if possible.

Thanks

Michael

ᅠᅠᅠᅠᅠᅠᅠᅠᅠ\|/
ᅠᅠᅠᅠᅠᅠᅠ^O^O^
——o00o—0—o00o——
If we knew what it was we were doing, it would not be called research, would it? --Albert Einstein

modified on Tuesday, February 10, 2009 11:10 AM

Questionspecial characters in sqlite? Pin
mirko869-Feb-09 8:08
mirko869-Feb-09 8:08 
AnswerRe: special characters in sqlite? Pin
Wendelius9-Feb-09 8:11
mentorWendelius9-Feb-09 8:11 
GeneralRe: special characters in sqlite? Pin
mirko8610-Feb-09 7:11
mirko8610-Feb-09 7:11 
GeneralRe: special characters in sqlite? Pin
Wendelius10-Feb-09 8:15
mentorWendelius10-Feb-09 8:15 
QuestionExecution Order Pin
mehrdadc489-Feb-09 1:17
mehrdadc489-Feb-09 1:17 
AnswerRe: Execution Order Pin
Rupesh Kumar Swami9-Feb-09 1:37
Rupesh Kumar Swami9-Feb-09 1:37 
AnswerRe: Execution Order Pin
Ennis Ray Lynch, Jr.9-Feb-09 7:17
Ennis Ray Lynch, Jr.9-Feb-09 7:17 
AnswerRe: Execution Order Pin
Ashfield10-Feb-09 1:46
Ashfield10-Feb-09 1:46 
QuestionMicrosoft Sql Server Problem Pin
snouto9-Feb-09 0:58
snouto9-Feb-09 0:58 
AnswerRe: Microsoft Sql Server Problem Pin
Ashfield9-Feb-09 1:18
Ashfield9-Feb-09 1:18 
QuestionMulticolumn Listboxes in Ms-ACCESS [modified] Pin
ketan bader9-Feb-09 0:31
ketan bader9-Feb-09 0:31 
AnswerRe: Multicolumn Listboxes in Ms-ACCESS Pin
Muhammad Shahid Farooq9-Feb-09 1:15
professionalMuhammad Shahid Farooq9-Feb-09 1:15 
QuestionLeft Right Table Pin
mehrdadc488-Feb-09 22:45
mehrdadc488-Feb-09 22:45 
AnswerRe: Left Right Table Pin
Rupesh Kumar Swami8-Feb-09 23:08
Rupesh Kumar Swami8-Feb-09 23:08 
AnswerRe: Left Right Table Pin
J4amieC8-Feb-09 23:14
J4amieC8-Feb-09 23:14 
AnswerRe: Left Right Table Pin
Muhammad Shahid Farooq8-Feb-09 23:58
professionalMuhammad Shahid Farooq8-Feb-09 23:58 
QuestionShrink DB using Maintenance Plan does not affect the log file size Pin
obarahmeh8-Feb-09 22:35
obarahmeh8-Feb-09 22:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.