Comments
Sort by recent activity
Thanks, @way0utwest. I've discovered that my SQL 2014 model database had my domain account as a db user, so it was seeing any "empty" target dbs as not empty, and therefore marking the baseline script as deployed. This made the project error on deployment. Not sure how the user got into the model db - perhaps during instance install, because I definitely didn't put it there. Thus, I used the techniques described above to ensure that the baseline script gets deployed. Other option was to remove that user, and SCA saw the target as empty. Since I don't know exactly how SCA determines l "empty", I'm keeping the skip property in place for now. In other news, I ended up just manually scripting the ddl and dml to get the project delivered to the ops DBAs, including the road in the __migrationLog table. Hoping I can return to SCA based deployment artifacts again. / comments
Thanks, @way0utwest. I've discovered that my SQL 2014 model database had my domain account as a db user, so it was seeing any "empty" target dbs as not empty, and therefore marking the baseline scr...
@way0utwest - would you be willing to respond to my last question por favor? / comments
@way0utwest - would you be willing to respond to my last question por favor?
Thank you, @way0utwest . To clarify, are you suggesting taking the "1.0.0-Baseline" script and deploying that initially. Then use the PS cmdlets (New-DatabaseReleaseArtifact) to generate the TargetedDeploymentScript.sql moving forward? Edit: I've been using a combination of unchecking "mark first folder as baseline" + adding <SkipBaselineCheck>True</SkipBaselineCheck> to get New-DatabaseReleaseArtifact to include the whole set of migrations to deploy correctly to a newly created DB. Otherwise, it errors. The original "target" db used during project creation to injury the baseline script had a number of initial schema objects. / comments
Thank you, @way0utwest . To clarify, are you suggesting taking the "1.0.0-Baseline" script and deploying that initially. Then use the PS cmdlets (New-DatabaseReleaseArtifact) to generate the Targ...
Thanks, @way0utwest. I like the way you're thinking and agree with the concept. However, I have a current, real project with a new DB that I've chosen, wisely or otherwise, to manage using SCA. So, now it's time to promote to the higher environments (above QA), and I'm scrambling to prepare for the handoff to the ops DBAs. I guess worst case is I just generate DDL and DML and hand that off, losing the benefits of tracking changes with the __MigrationLog, snapshots/drift/change reports, etc. / comments
Thanks, @way0utwest. I like the way you're thinking and agree with the concept. However, I have a current, real project with a new DB that I've chosen, wisely or otherwise, to manage using SCA. ...
Perfect. Thanks guys. The online docs were a little funky, so I went about it by: 1) Created a new empty dev DB on localhost 2) Created a new project, connected to the new DB for dev, but did not connect to a "target" DB (where I want to grab the <Prefix>_% tables from.) 3) Started a new SQL compare project and chose source as the "target DB", target as my empty new localhost dev DB. 4) Compared, then under actions, chose "filter setup pane" 5) created a custom filter: object_name like <Prefix>_ 6) Saved the filter.scpf into the root folder of my project 7) closed and reopened the solution 8) Continued with "setup the project" and imported the baseline script. BINGO! Looks good. I only have those objects in the project. [image] / comments
Perfect. Thanks guys. The online docs were a little funky, so I went about it by:1) Created a new empty dev DB on localhost2) Created a new project, connected to the new DB for dev, but did not c...
Since I have enterprise edition functionality in some of my migrations (e.g. Create index with online = on), I have to use a shadow db on my dev edition local SQL server instance. So I checked "always use default db for shadow" and set the default connection strong to point to "<projectName>_shadow" / comments
Since I have enterprise edition functionality in some of my migrations (e.g. Create index with online = on), I have to use a shadow db on my dev edition local SQL server instance. So I checked "alw...
If we have "Always use default connection for shadow" set in the project settings, shouldn't it always use that server/DB even if we connect in VS to another target? Also, I do sometimes use the VS IDE and connection to deploy the project - esp when we don't have CI set up yet. / comments
If we have "Always use default connection for shadow" set in the project settings, shouldn't it always use that server/DB even if we connect in VS to another target?Also, I do sometimes use the VS ...
Thank you, Sergio. I realize it's a low priority request that may sit in the sprint backlog. / comments
Thank you, Sergio. I realize it's a low priority request that may sit in the sprint backlog.
Excellent! And thanks for updating the online docs. I'm really enjoying how responsive the RG team has been. I think your'e right - File Path ordering might be appropriate for this situation. As a supporting "Dev DBA", I don't want to impact the dev team's traditional sprint/release naming convention (much) at this point. / comments
Excellent! And thanks for updating the online docs. I'm really enjoying how responsive the RG team has been. I think your'e right - File Path ordering might be appropriate for this situation. As...