How can we help you today? How can we help you today?
Kendra_Little
That makes sense, thank you for clarifying, @PeterDaniels ! Coincidentally, I met with members of the SCA team just this morning to chat about clarifying concepts around baselining in our docs. One of my questions was, "are there times when we do NOT want to create a baseline, and what are those exceptions?" The list of exceptions I have as of this moment is: New project / greenfield development, when there is no production and we're just starting by adding objects as we go. There's really nothing to baseline in this case. When learning the SCA product for the first time, it can make sense for people to work a little with the migrations scripts first and get a feel for things first sometimes before diving into baselining (simply because there is some complexity with establishing an initial-baseline, and it can make sense to start with more daily-task style things). You have an interesting case, because you're somewhat in the middle of "new" development and "existing database". There is no production yet, but you've already got activity that's been completed in an integration environment so you aren't at the "starting from scratch point" either. (Just reiterating this for readers as the context gets lost sometimes.) So, which to do? If you choose to create a baseline from the integration environment (set it as your "target" on the baseline wizard, use an empty db as "development" as you describe in your first post here), you should be able to deploy from that to an empty database. I just re-ran through that scenario with the PowerShell cmdlets (gist of my simple script here) and it worked -- it will deploy the baseline to the empty database, and then apply incremental migrations on top of that. In this case, in TargetedDeploymentScript.sql there will be a line like "----------------- BEGIN INCREMENTAL MIGRATION: "Migrations\1.0.0-Baseline\001_20190204-1330_kendar.sql" ------------------"  This will be followed by all the code from the baseline, then other migrations However, if the database you deploy to isn't totally empty --for example, if you create a user table in it (I created an empty one named "foo") -- that's when I wouldn't expect the deploy to work. SCA detects that the database isn't empty, so it doesn't want to lay down the migration script. Is it possible that this was the case in your initial testing? (The user objects in question could be getting sneakily created by accident by being in model, for example.) In this case, in TargetedDeploymentScript.sql, there will be a line like " PRINT '----- baselined: Migrations\1.0.0-Baseline\001_20190204-1330_kendar.sql (marked as deployed) -----';" The code for the baseline itself won't be in there. In my test, this caused the deployment to simply roll back when it hit errors, since I was using the default option to do it in a transaction If you do already have a lot of objects in the dev/integration environment, it might be useful to track down if this is failing in your case due to deployment target databases not being empty.  In that case, I'd personally like to create a baseline, because it seems like a quite convenient way to encapsulate your starting point. As long as when you deploy to dev/qa/uat they are truly empty databases (or I suppose they could be a restored copy of your integration database, just as long as you are 100% sure the baseline doesn't need to be deployed), that should work, from my testing. As to what exactly is happening behind the scenes differently in the MSBuild task, I am not sure on that account. I believe the release artifact functionality may be more recent and may not yet be integrated into all plugins. / comments
That makes sense, thank you for clarifying, @PeterDaniels !Coincidentally, I met with members of the SCA team just this morning to chat about clarifying concepts around baselining in our docs. One ...
0 votes
A bit more info about next week's webinar (an alternate format of this is here), and why the topic is important... There has never been a better time to start a project to champion data privacy In a recent Harris poll sponsored by the payment company Stripe, over 1,000 C-level executives were asked to rate which factors they feel are most threatening to their business. The #1 item that executives rated as “somewhat” or “very” threatening to the success of their business is security / data breaches. The #2 rated threat to these businesses? Increased regulation.  Data masking mitigates these top threats One of my very first jobs when I began in IT was to build out environments for developer and test teams at a software development company. At first, we didn’t mask any of this data. After problems arose, we began masking only a single field. That was a huge mistake. In this upcoming free webcast, I’ll share the following in just 30 minutes: Why data professionals have a history of neglecting privacy (just like I did in that first job) The three industry drivers for data masking Why regulations have become a top risk to C-level executives Key elements of static data masking tools to consider when evaluating products Pains that people run into when implementing data masking (and how Redgate tools address those pains) An overview of the data masking process Next steps to take in making a case for a data masking project at your organization Now is the time to become a privacy champion Whether or not you are an IT leader, a developer, or a DBA, right now you have a huge opportunity to make a difference for your organization,  your customers, and your own career by championing privacy. Yep, your own career! Those top two C-level concerns mentioned at the beginning of this post means that initiating projects like data masking and seeing them through from proof-of-concept to implementation is a big resume-building career move. That’s true whether you choose a Redgate solution, or use the information in this webinar to go a different route.  Join me in this upcoming webinar to learn the initial steps that you can make to instigate changes in your company — and to help mitigate the top risks that are keeping C-level executives up at night. Register / comments
A bit more info about next week's webinar (an alternate format of this is here), and why the topic is important...There has never been a better time to start a project to champion data privacyIn a ...
0 votes
Hey Friends, I wrote up a list of reasons why you should take the State of DB DevOps survey today -- it's open until the end of the month! Why You Should Take the ‘State of Database DevOps Survey’ Today (even if you don’t do DevOps) [image] The survey contains 32 questions and should take less than 10 minutes to complete. When I began working with databases, nobody talked about DevOps. It was a few years before I heard the words ‘Agile’ and ‘Extreme Programming’, (which I still read as “EXTREEEEEEMMMMME programmin!”). A lot has changed since then. But a lot hasn’t changed as well.  Please help us track the history of how we work with databases by taking the Redgate State of Database DevOps survey today. I believe it’s helpful to our whole community to participate in this survey, and this post explains a few reasons why.  The survey… Is hosted by SurveyMonkey, no login is required Takes around 10 minutes Allows you to remain anonymous OR provide contact info to get a chance at winning a $250 Amazon gift card Is for everyone who works with databases, regardless of whether you use DevOps or are a Redgate customer Closes Friday, November 30th The survey creates a history of how we manage database changes I was recently listening to a podcast on CIOs and the Future of IT. The hosts discussed that executives need to be very forwarding thinking, and focus on where the company is going more than where the company is. One side effect of this: executives often think that their organization is ahead of where they actually are, in terms of changing processes and adapting to business initiatives. [image] This makes a lot of sense to me. When I learned to ride a motorcycle, the instructors emphasized that looking forward to where you are going is important when it comes to executing turns correctly. You need to have a wide field of vision and see obstacles, but if you stare at obstacles too much you are more likely to hit them.  However, we need a feedback loop! We need all sorts of people who work with databases to discuss what actually happens. This allows Redgate to document and share what’s really happening right now in our technical patterns and practices. You can help us do that by answering the survey (and things like this are why we ask about your job title in the questions). Responding helps us identify and share with you information to help you drive change Ever had an idea which would make a big difference for your organization, but you weren’t sure how to make it catch on? [image] This might be an idea about DevOps, or it might be about data science, cloud adoption, general automation– any project big enough that it’s not simply something you can implement yourself. It’s difficult as a DBA or developer to know how to approach these ideas. Do you need executive support? Is there another way you can help move it forward? The State of Database DevOps survey asks questions about how people have moved projects forward to help map out how change is instigated and sustained in companies. This helps Redgate discover and share with you how you can get projects moving (and you can apply this to projects other than DevOps). Responding provides the community with information on how database development and administration jobs are changing I hear from a lot of folks who are concerned about the future. There’s so much to learn, and it’s increasingly difficult to prioritize between learning more about the tasks you work on today, and learning more about the tools which you may use tomorrow.  The results from the State of Database DevOps help show the community: how are roles changing? What’s still the same? This will help you answer those tough questions about what to focus on. Take the survey today! Please share the survey with your colleagues (shortlink: redgate.com/DBDSurvey). And remember, the survey is only open until November 30th, so complete the survey today. / comments
Hey Friends, I wrote up a list of reasons why you should take the State of DB DevOps survey today -- it's open until the end of the month!Why You Should Take the ‘State of Database DevOps Survey’ ...
0 votes
Hi Pete! I saw that you posted this in the SQL Server community slack channel as well, and I've responded there. No problem at all posting in both, just wanted to update you here that messages await you there [image] / comments
Hi Pete! I saw that you posted this in the SQL Server community slack channel as well, and I've responded there. No problem at all posting in both, just wanted to update you here that messages awai...
0 votes