Chrome opens then shuts – no error message

My daughters both got new laptops for Christmas, one has had no issues whatsoever, one had an issue once we installed Chrome. Whenever you tried to open chrome it would flash open and then….nothing. No error dialogue, nothing logged in event log, just…nothing. This was incredibly frustrating to troubleshoot and it turned out to be Microsoft up to the old ‘directly sabotage the competition and call it security’ trick.

Generally I’m pretty chill, but this one has gotten me worked up. I’m quite angry that I lost the better part of a day of my holidays trying to figure out what was going on here. We even took the laptop back to the store we purchased it from and thier tech had no idea what was going on. He re-installed the operating system, reinstalled chrome, spouted some nonsense about 32-bit vs 64-bit that made no sense but I didn’t argue with because Chrome was magically working again. Chrome then worked happily for a week and then my daughter bought me her laptop and once again it just wouldn’t start.

I tried a bunch of stuff from various forums and blogs out there. Here’s a list of stuff I can remember:

  • Reinstalled Chome – starting with the big hammer. This made no difference.
  • Tried starting Chrome in incognito – same behaviour.
  • Entered exceptions in firewall. Same behaviour.
  • Disabled Firewall. Same behaviour.
  • Disabled anti-virus. Same behaviour.
  • Started the laptop in safe mode with network support – Chome Started!
  • Created a new non-MS account on the laptop and logged in as that – Chrome Started.
  • Installed Firefox which also failed, but started successfully under the two conditions above(Safe mode and different account).

The firefox step changed my thinking somewhat, I was now reasonably certain I had an account issue rather than a software, firewall or anti-virus issue. I was about to look into wiping the default profile when I happened to glance in my email and noticed an installation notification from Microsoft Family Safety from a few days ago. When I set up the girls previous laptops they were a lot younger, and I remember they were added to Microsoft Family. This never caused an issue on the old laptops, but I thought it was worth taking a look into. I logged into Microsoft Family and lo and behld….the smoking gun.

Microsoft had placed a filter on pretty much all their major browser competitors. Chrome, Firefox and opera are all listed as ‘blocked apps’. Presumably as non-Microsoft browsers Microsoft is unable to content monitor on them, so simple disabled the ability to use them. I removed this and instantly everything worked on my daughters laptop again. You can log into Microsoft Family here and see if this is the problem effecting you.

Now, I have as many questions as answers from this. Why did it work after the operating system reinstall? Why did we never have any issues on the old laptop. If it’s listed as blocked shouldn’t it always block? Why wouldn’t Microsoft have the decency to drop a little message into the event log? Something like “Google Chrome was prevented from starting due to your Microsoft Family Safety Policy” would have saved a huge amount of very frustrating troubleshooting time. But then, from what I can see the frustration with this problem online is all directed at Google, rather than Microsoft. And maybe that’s the point.

2022 is just around the corner – is SQL Server dead?

2021 has been a tough year and it’s been one where I have heard SQL Server, delivered as an on premise platform, referred to several times as a legacy technology. I guess nobody likes to hear the product they work on all day referred to as old, but I thought I’d use this post to get my thoughts in order around this so I have a clear response next time it gets casually dropped into a conversation.

The argument for SQL Server being dead?

The argument goes something like this. NoSQL databases started becoming popular in the late 2000’s and the promotion of them was around faster queries, huge ability to scale and querying vast pools of data a more simple exercise for developers. SQL databases were created last millennium with a focus on reducing duplication and adding structure to IT real estates that were already beginning to sprawl as computing systems were in their infancy and adoption was driven by immediate inhouse needs rather than a centrally planned and implemented strategy. SQL databases solved a number of problems, but the primary one was data-sprawl, or more specifically data being duplicated in multiple places, and the inefficiency and storage costs associated with that.

NoSQL databases rose to prominence in a different time in the IT world, a time when IT systems were already critical in the day to day jobs of most office staff and importantly, when the cost of storing data itself had substantially decreased. This meant that there was a shift in what was costing money to businesses when it came to data driven applications. The cost was not so much the infrastructure/storage anymore, so much as the server license fees and the direct development cost of the application(ie/ the developers). Born in the age of DevOps NoSQL developers were keen for a system that allowed them the flexibility of not having to define structure upfront and then be locked into that structure for the life of the application. They wanted, in short, a database system that could be modified as often as the requirements they were fed were. And at the same time cloud computing was on the rise, giving the developers an ability to distribute their code rapidly to multiple different datacenters, housed in multiple different regions, provided by multiple different providers. The infrastructure now existed to make their applications more flexible, reliable and resilient, but a central database server became a huge bottleneck.

NoSQL addressed all of these problems. Typically a NoSQL database will have the following attributes:

  • Ease of use for developers
  • Flexible Schemas
  • Horizontal Scaling
  • Fast Queries due to the data model

In short, the argument goes, when you are working with NoSQL you are working with DATABASES 2.0 – the new and improved way of managing data; the evolution of databases; the purpose built solution for data management in this millennium. Ergo, NoSQL is better. SQL is Legacy. SQL Server is dead.

Technology changes

And all that’s nice, NoSQL database systems have been developed to meet a need that many application developers, and specifically web application developers needed. The initial versions coped a lot of crap about things like reliance on ‘eventual consistency’, not being ACID compliant, not supporting transactions, being insecure and losing data. Some of this is founded, some of this appears to just be completely made up. In current NoSQL versions, these concerns are all addressed and to my mind resolved (If they did actually exist that is, the data loss thing is hard to find any actual evidence on). Where they remain it is as a design choice – transactions are optional, security is something that must be configured to meet requirements (in any product) and options like sharding come with pros and cons.

So NoSQL databases have evolved to meet the objections thrown at them. The mistake made by many NoSQL advocates is thinking that SQL databases haven’t also evolved. Here’s a handful of examples of SQL Server implementing NoSQL, or non relational features:

  • Polybase – introduced in SQL 2016 Polybase allows direct integrations with NoSQL databases and Hadoop data lakes.
  • JSON support – from 2016 JSON can be stored and queried within SQL Server.
  • XML support – this column type has been available since SQL 2005 and can serve a similar purpose to JSON support.
  • Scalability – SQL Server has always offered a range of options here. Availability groups have evolved greatly and are now available in all paid SQL Server editions, and with software assurance licensing is provided for multiple replica servers as part of the primary servers license. But the only technology that offers multiple writable replicas is replication, which is still hugely flexible and…with that it has to be said…hugely complicated.

On top of this Microsoft as a company has focussed most of it’s non-relational development effort into it’s cloud products, and the integration between relational and non-relational cloud products. Non-relational cloud products from Microsoft include:

  • Azure Table Storage
  • Azure Blob Storage
  • Azure File Storage
  • Azure Cosmos DB

So even if NoSQL databases were becoming more popular, that doesn’t necessarily have much effect on Microsofts bottom line as they have plenty of non-relational offerings both inside SQL Server itself and in the wider Microsoft family.

I say even if, because the evidence that non-relational databases are cutting into the relational database market share is flimsy at best. Numbers on DB-engines.com as at December 2021 show only one NoSQL database in the top 10 databases(MongoDB at number 5).

Now let’s talk about Legacy

What’s interesting on that ranking to me is that MS Access is sitting in the top 10. If you want to talk to me about Legacy systems it’s mind boggling that MS Access is still considered one of the top 10 databases in the world. Why is that?

Well, the thing with these charts it’s it isn’t about a direct feature by feature comparison of different database systems, or a fancy cost-benefit analysis of one against the other. It’s about who uses stuff. A lot of the noise about NoSQL databases was, and still is coming from sectors which have to be very agile and dynamic. To tie it down further I would say Startups and greenfields developments. In this scenarios you have an open choice of technologies and can pick the one that is best suited to your needs. Let’s accept all the arguments and say that NoSQL databases were always the right choice for a new data project – and that everything not developed in the past 12 months is ‘Legacy’.

What do you think businesses are running on? It is a hugely expensive exercise to port the backend of an application from one database engine to another, let alone change the underlying assumptions of the database engine itself. I’ve had half a dozen calls this year from people looking to use SQL Server as a backend to Access front-ends and the performance results are horrible. It’s not just a case of cramming the data from one system into another, the underlying methodologies just don’t work – and that is between two ‘relational’ databases!

I don’t have personal experience with moving SQL data to MongoDB data, but I’ve heard some rather horrifying stories from those who have done it, or have had to pick up the pieces after it was done. I’m not saying it can’t or won’t be successful, I’m just saying that I’ve heard enough examples of where it wasn’t to think that the percentage option for a business is to invest in tweaking poor performance in a relational database engine rather than redeveloping it in a non-relational one (or in a different relational one for that matter).

So, even if the correct choice for every new development is a NoSQL database(Hands down, it’s not, but I’m conceding that to make my point) the majority of businesses are not going to redevelop their current functional IT systems which will mean that relational databases will still continue to be the dominant player in data management for a long time to come.

This is mirrored by what I see today in my customer base. Servers become more powerful and can comfortably hold larger and larger numbers of databases, but while we consolidate systems as much as possible new ones arise and because SQL Server is already dominant in the clients environment new applications are often back ended in SQL Server. Even the move to cloud computing hasn’t largely changed this paradigm. Businesses have to support their applications, and this will often swing the choice in favor of technologies where they already have existing skillsets and\or support contracts.

So don’t be alarmed SQL DBA’s. There is plenty of life left in your skillset. Even more importantly there are many exciting paths open to you to expand that skillset.

Virtual SQL Saturday Auckland

Well obviously an in person SQL Saturday is not something we can easily do at the moment, but the virtual version that is being organised for Auckland next month is going to be really interesting.

Scheduled for 8th August 2020, we get the opportunity to have speakers from everywhere attend this local event. Because it’s virtual we can also have attendees from everywhere, so be sure to check it out.

I’m going to be doing some introduction into security in SQL Server, in particular running through different ways and reasons to implement database encryption. This stems from a session a few years back in Christchurch where one of the presenters made the throw away comment “It’s not about whether your database will be compromised, but when.” This is a little terrifying, but let’s say someone does get a hold of an old backup of a SQL Database – is that it? Is everything gone. I’m going to talk about how we can layer up defenses, so we first prevent people knowing about our SQL Servers, then do everything we can to stop them getting to them, and finally, how to make minimise the impact when it does happen.

Finding Your SSRS License Key on an Azure VM

A quick note today. I was installing an Azure VM with SQL Server, and the Reporting Services service is not part of the default install. You can still install reporting services but you’ll either need to copy the installer onto your new VM or run the installation media which can be found on the C drive:

Installation Media: C:\SQLServerFull

Either way you’ll hit a wall where it asks you for the installation key. This is stored in the x64 directory of the install media in a file called Default Setup:

Report Services Key Location: C:\SQLServerFull\x64

Just look for the PID under options and paste that into the installer and you are done. Hope that’s helpful.

SQL Saturday Auckland

Time to polish off the JAFA jokes for another year, SQL Saturday Auckland is just 2 days away. Check out the lineup at:

https://www.sqlsaturday.com/866/

This year I’ll be taking attendees over the types of Encryption that are available within SQL Server, and more importantly – why they should care. If previous experience is anything to go by I don’t expect a huge turnout as Security sessions in general are not that popular at these types of events. That’s why I’ve pitched this session at absolute beginners to the world of protecting their SQL Data, because I believe it’s critical that we all stop hoping that SQL Security is someone elses problem, and accept that we all need to be a part of the security chain.

If you are in Auckland on Saturday, and your firm uses SQL Servers to store you critical data – I really encourage you to come along to this free training event. I see Reza has posted we are expecting up to 380 people to attend, making this the largest free IT training event in the country. Great job once again #SQLSATAUCKLAND team.

SQL Saturday Auckland once again

I’m looking forward to speaking at SQL Saturday Auckland once again this year. Check out the schedule for the free days training on 10th August and you’ll see that this year I’m not alone, and have dragged along my colleague Leo Miller who will be talking through the implications of snapshot isolation. For those of you who haven’t worked with Leo before I really recommend any session he is taking. Leo is an expert at his craft and really delves into the ones and zeroes when he’s looking at a performance issue.

As well as Leo and I, there’s a great selection of speakers for you to listen to, and as always, you get to rub shoulders with everyone at the end of the day and ask any questions that weren’t covered in the sessions.