Skip to content

Rename-DbaDatabase - Allow custom naming templates for log files #10342

@lischetzke

Description

@lischetzke

Summarize Functionality

Provide different naming templates for rows, logs, etc. for -LogicalName as well as -FileName in Rename-DbaDatabase. This would provide more flexibility in the naming of database filenames.

Is there a command that is similiar or close to what you are looking for?

Yes

Technical Details

As an example I would like to append _log to the logical and physical filename of a database, but do not want to append _ROWS to the rows file.

This might be possible by adding more parameters like -FileNameROWS and -FileNameLOG as a rudimentary example. -FileName could then provide the "default" naming scheme while the others might be a more specific overwrite option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions