Re: [GENERAL] Extracting \ Generate DDL for existing object permissions

2008-05-22 Thread Tino Wildenhain
Raymond O'Donnell wrote: On 22/05/2008 22:33, smiley2211 wrote: 1) dump database A - 2) Extract permissions from database B - (HOW) How about dumping B using the plain-text format, then running the output through grep, looking for lines starting with "GRANT..."? Hint: sometimes easier

Re: [GENERAL] Extracting \ Generate DDL for existing object permissions

2008-05-22 Thread Raymond O'Donnell
On 22/05/2008 22:33, smiley2211 wrote: 1) dump database A - 2) Extract permissions from database B - (HOW) How about dumping B using the plain-text format, then running the output through grep, looking for lines starting with "GRANT..."? Ray. --

[GENERAL] Extracting \ Generate DDL for existing object permissions

2008-05-22 Thread smiley2211
Hello all, How do I capture the EXISTING permissions for a database? I know you can see them via \z or \dp however I need ALL permissions to be captured so I can reapply after performing a database restore. ex: 1) dump database A - 2) Extract permissions from database B - (HOW) 3) load d