Change the name of the shadow database MDF/LDF file?
Sorry if I missed this in the documentation somewhere, but is it possible to change the naming scheme of the MDF & LDF files created in C:\Users\<user>? Currently they take the form <DatabaseName>_<username>_SHADOW.mdf/ldf. I am trying to create several ReadyRoll projects to handle individual schemas in the same database. I think I have all the separation aspects covered but this is killing me on my TFS build process, because the user and the database name are the same across multiple projects.
Tagged:
Comments
However you can customize the script to try and include the username as part of each of the database's files. For example, the following statement uses dynamic SQL to include the currently logged-in user's details as part of the DB file naming scheme:
After making changes to the script, you may need to manually drop any existing shadow databases from the instance that your TFS build configuration is connected to. I hope this helps!
Product Manager
Redgate Software