I would like to customize the shadow DB configuration, and have used the <project_name>.sqlproj.user file to do so. But since multiple developers might be using the tool and working in the same database, I would like to include the developers username in the name of the shadow database, like "ProjectName_imackenzie_shadow". This is consistent with the default naming convention.
Comments
3 comments
-
Try adding this to your .user file. This should work for any Windows environment variable.
<ShadowConnectionString>Data Source=SERVER\INSTANCE;Initial Catalog=ProjectName_$(username)_shadow;Integrated Security=True</ShadowConnectionString>
-
Outstanding... thank you!
-
No problem We should have documented this better. I've changed the main example in the documentation page to show the $(username) environment variable in use. Thanks for highlighting it.
Add comment
Please sign in to leave a comment.