Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update PMDB.Create_Database_Backup.sql #11

Copy link
Copy link
Open
@Imran-imtiaz48

Description

@Imran-imtiaz48
Issue body actions

The script has been improved with several enhancements:
• Added error handling using TRY...CATCH to catch and display issues during execution.
• Improved string handling with NVARCHAR for better Unicode support and used sp_executesql for safer dynamic SQL execution.
• Removed hardcoded backup paths, adding flexibility to set the backup folder path based on the server.
• Enhanced readability by grouping related PRINT statements and removing unnecessary debug outputs.
• Improved protection against SQL injection by constructing SQL statements safely. Next Steps suggested:
• Standardize backup path by replacing hardcoded values with a configuration table or parameter.
• Add proper logging to record backup success or failure for auditing.
• Ensure the procedure runs with least privilege necessary for security.
You can view and discuss this issue further in this pull request:
#9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.