Skip to content

IDEA: Keeping tables and using TRUNCATE #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JoyWorksToo opened this issue May 8, 2024 · 0 comments
Open

IDEA: Keeping tables and using TRUNCATE #22

JoyWorksToo opened this issue May 8, 2024 · 0 comments

Comments

@JoyWorksToo
Copy link

I run sp_DBPermissions from my own DB keeping and purge data as needed.

Right now I need to drop the tables before I re-run each time.

So can a new parameter be created @KeepTables

  @KeepTables
       If this parameter  is not NULL  @DropTempTables will be ignored.
       When this is NULL  (the default) the temp tables used are dropped. 
       DBA.dbo. - then the temp tables are kept for references after the code has finished and TRUNCATE will be ran at for each table at 
       start of next run
       The temp tables would be:
           DBA.dbo.DBPrincipals
           DBA.dbo.DBRoles 
           DBA.dbo.DBPermissions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant