Stephen Russell wrote: > On Thu, Oct 9, 2008 at 6:04 PM, Matt Jarvis <[EMAIL PROTECTED]> wrote: >> Everyone else may already know this but I just stumbled into it... >> >> >> >> While attempting to see if I could copy/paste tables from one DB to >> another (long story) in Enterprise Manager, I discovered that if you >> highlight a table/view/function/SP etc name, select COPY, that if you >> then paste into a document you get the schema or code that creates it. >> So if you go to your SP's for a database, CTRL-A, CTRL-C, then CTRL-V >> into a document, you can dump all that good stuff all at once. >> >> >> >> Might be a good down-and-dirty way to document a system or a quick >> backup of all the definitions. > ---------------------------------------------------- > What are you tryig to do? Make a backup of prod for dev/test?
IMO this DDL is the source code for your database. The database should be created from text files with the schema information, and the DDL should be managed in source control. Sure, you can use visual tools to modify this source code, but it better preserve formatting so that there is no noise in the diffs! What I hear you saying is that you have used visual tools to create your schema, and now you want to back that up to text files. I think that is backwards. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

