Comments
Sort by recent activity
Hi Peter, These options aren't stored in the metadata in SQL Server after the index is created -- EXCEPT for fillfactor. For fillfactor, you can change the 'SyncOptionIgnoreFillFactor' setting in the .sqlproj file. Instructions on that are here, and the note on that setting indicates it also will mean that any index padding settings you use will be scripted as well. For the options which apply to the index creation process only and aren't persisted in the metadata, like ONLINE and SORT_IN_TEMPDB, there is a User Voice page on this here which has an explanation of some of the considerations around why we don't have this presently. I personally think it's worth expanding the options list in Compare to have global enable/disable for each of these as it would be much nicer for you to be able to configure that preference rather than having to use snippets. Please do consider adding a note to that User Voice forum if you have the time. I'll also internally copy this thread over to the SQL Compare team as well, so they are aware. Kendra / comments
Hi Peter,These options aren't stored in the metadata in SQL Server after the index is created -- EXCEPT for fillfactor. For fillfactor, you can change the 'SyncOptionIgnoreFillFactor' setting in th...
Hello, You can control this behavior by setting the "SyncOptionIgnoreCollations" to false in your .sqlproj file. Notes on how to make this change and example syntax are in the article, "Configuring comparison & script generation options." Hope this helps! Kendra / comments
Hello,You can control this behavior by setting the "SyncOptionIgnoreCollations" to false in your .sqlproj file. Notes on how to make this change and example syntax are in the article, "Configuring ...
Note: striking this for other readers, as I did an incorrect step in my repro Thanks for clarifying! I did some testing. I believe the bug is with the Release Artifact -- in my repro it contains that exact text as well. However, it is misleading you-- the post deployment script is still being run in my testing. For my repro, I used this script and found that the job would be recreated even when I made no state change in the database itself, and the release artifact displayed that message. The team has created a Jira bug to prioritize this and make sure it doesn't get forgotten. But for the time being I think the actual deployment functionality is what you want. Kendra / comments
Note: striking this for other readers, as I did an incorrect step in my reproThanks for clarifying!I did some testing. I believe the bug is with the Release Artifact -- in my repro it contains that...
Note for readers who come by later: this was not correct, see later in the thread please! ps: just confirmed from chat with the team that this is considered a bug, the desired behavior is to include the pre- and post- sql code into the Release Artifact for display (as well as executing it, which is occurring). The Jira item will help make sure we track that. / comments
Note for readers who come by later: this was not correct, see later in the thread please!ps: just confirmed from chat with the team that this is considered a bug, the desired behavior is to include...
Sorry about this, Tom -- the team suggested I wasn't seeing the right behavior, and I ran through it again on the plane today. I made an error in my repro setup, and it was the *build* creating the the job that I saw, not the deployment. You're correct that it's not running it. Would committing a small state change as a workaround make this functional for you in the meantime? You could do a a change as small as adding / editing an extended property in the database itself where you want the post-deployment script to run. Sorry about the misinformation! / comments
Sorry about this, Tom -- the team suggested I wasn't seeing the right behavior, and I ran through it again on the plane today. I made an error in my repro setup, and it was the *build* creating the...
From a chat in the team Slack channel, I believe that it's intended that you *should* be able to deploy pre / post scripts without a schema change, so it could be a bug. I'd like to set up a repro. I'm guessing that you're using SQL Source Control / State Based + SQL Change Automation? (Just checking for the repro setup as migrations approach also has pre and post scripts). / comments
From a chat in the team Slack channel, I believe that it's intended that you *should* be able to deploy pre / post scripts without a schema change, so it could be a bug. I'd like to set up a repro....
Hi @brookal , Just tagging onto @SamTouray 's note , and I'm also assuming that you are authoring changes in SQL Source Control. If you're using SQL Change Automation for everything (authoring in Visual Studio with what used to be called ReadyRoll), just holler -- slightly different answer for that, but similar options. The method of doing this depends a little on which type of tables they are. If these are relatively small reference tables where the data only ever changes as part of the development process (not user input), such as something like a list of states, countries, etc, then you might want to add these as static data tables, which essentially checks the data into source control. Documents on that are here. If you've got static data but it needs to be different in different environments, you can do that with a pre- or post- deployment script, as in this example. For data modifications to tables that aren't suitable for static data, I would also do this with a pre- or post-deployment script. The requirements for these are here, and the first one is really important: it needs to be easily rerunnable, so you want your script to have a way to indicate that it's been done and an initial check that looks for that and skips the step if possible. As @SamTouray mentioned, there are migration scripts in SQL Source Control, but I believe that in the future the functionality of the pre-and post- scripts will be what we rely on instead of the migration scripts, which may be eventually phased out as a feature. Hope this helps! Kendra / comments
Hi @brookal ,Just tagging onto @SamTouray 's note , and I'm also assuming that you are authoring changes in SQL Source Control. If you're using SQL Change Automation for everything (authoring in Vi...
Hi Asaf, I chatted with the team this morning and confirmed that we don't have a custom extension for AWS DevOps at this point. That doesn't mean you can't use it, however -- you can use the SQL Change Automation PowerShell module downloaded from the powershell gallery as part of a build script. The PowerShell cmdlets have full functionality, there's nothing in the extensions you can't do in the scripts. I personally like using them more than the extensions. We have worked examples and also reference documentation for the cmdlets which I've used quite a lot and which got me started fast. I've also submitted a suggestion to get an article done for Product Learning which walks through setting this up in AWS. I think it'd be a great post but the links above should get you started right away. Kendra / comments
Hi Asaf,I chatted with the team this morning and confirmed that we don't have a custom extension for AWS DevOps at this point. That doesn't mean you can't use it, however -- you can use the SQL Cha...