Skip to content
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

Task/rdmp 137 MDF attacher override #1729

Merged
merged 14 commits into from
Feb 5, 2024

Conversation

JFriel
Copy link
Collaborator

@JFriel JFriel commented Jan 23, 2024

Situation:
A SQL .MDF file is copied from a linux server to a windows machine hosting RDMP at a regular interval.
The .mdf file name changes each time.
Currently, each time an MDF data load is run, the override for the linux filepath -> windows filepath needs to be updated (/var/opt/mssql/data/mydb.mdf -> C:\Users\me\mydb.mdf)
Improvement:
Allow for the directory to be specified without the file name, this will allow for the recurring data load to be ran without modification ( assuming the .MDF and .LDF files are copied to the same directory each load)

Solution:
When specifying the MDF and LDF override locations, if a directory is set it will automatically attempt to update the attacher to use the local filesystem location rather than the original file system location.

Steps to test:

  • Have a .mdf and .ldf file created on a linux machine
  • On a windows machine, create a new data load with an MDF attacher
  • Follow the instructions in MDFAttacher.md

Documentation/DataLoadEngine/MDFAttacher.md Outdated Show resolved Hide resolved
Rdmp.Core/DataLoad/Modules/Attachers/MDFAttacher.cs Outdated Show resolved Hide resolved
Rdmp.Core/DataLoad/Modules/Attachers/MDFAttacher.cs Outdated Show resolved Hide resolved
Rdmp.Core/DataLoad/Modules/Attachers/MDFAttacher.cs Outdated Show resolved Hide resolved
@JFriel JFriel requested a review from jas88 February 5, 2024 08:17
@JFriel JFriel merged commit 1e5a795 into develop Feb 5, 2024
7 checks passed
@JFriel JFriel deleted the task/RDMP-137-mdf-attacher-override branch February 5, 2024 15:30
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

Successfully merging this pull request may close these issues.

2 participants