Access Documentation Tool question

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
datastage
Participant
Posts: 229
Joined: Wed Oct 23, 2002 10:10 am
Location: Omaha

Access Documentation Tool question

Post by datastage »

Is it just me or is Access built for such a simple mind that anyone used to a real database is throughly confused on how to do anything? I'd like to start with a clean mdb to run the auto-doc from Manager. I don't see anywhere through DataStage's interface to delete all from this database. It appears that TRUNCATE isn't a valid option in Access. Is my only option to run delete queries from all 27 tables?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That has been my experience. I ended up creating a ClearAll macro.


Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
datastage
Participant
Posts: 229
Joined: Wed Oct 23, 2002 10:10 am
Location: Omaha

Post by datastage »

Thanks Ray.

If you happen to the macro code available could you copy/paste it to the forum?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Would you believe 27 DELETE FROM tablename statements, with transactions disabled?


Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

Truncate is a statement in Oracle-dialect. Most Oracle developpers think, that the Oracle slang is the SQL-ANSI-Slang. Access is more SQL-ANSI-like than oracle.
datastage
Participant
Posts: 229
Joined: Wed Oct 23, 2002 10:10 am
Location: Omaha

Post by datastage »

FYI, to save typing for those who want to delete from all tables in the Access doc_tool.mdb, there are those statements:

delete from DSArgumentMap;
delete from DSColumns;
delete from DSContainerViews;
delete from DSCustomProperties;
delete from DSDataElements;
delete from DSDLLDependencies;
delete from DSJobDependencies;
delete from DSJobParameters;
delete from DSJobs;
delete from DSLinks;
delete from DSMachineProfiles;
delete from DSObjectTypeRef;
delete from DSProjects;
delete from DSProperties;
delete from DSPropNameRef;
delete from DSRoutines;
delete from DSRtnArguments;
delete from DSRtnDependencies;
delete from DSSeqFileFormats;
delete from DSSPParameters;
delete from DSStages;
delete from DSStageTypes;
delete from DSStageVars;
delete from DSTableDefinitions;
delete from DSTransformArgs;
delete from DSTransforms;
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Thanks for saving folks the typing. Remember to check table names in Doc_Tool.mdb after upgrading DataStage - you may need more DELETE statements. It's not a bad idea, when crafting your macro, to specify that you don't want transactions. If nothing else, it eliminates the annoying pop-up window.
Post Reply