SQLServerCentral - www.sqlservercentral.com

A community of more than 1,600,000 database professionals and growing

Featured Contents

The Voice of the DBA

The Age of Multiple Databases

I can still remember learning to store data in files, reading one record at a time, testing for end of lines and end of files. It was slow and cumbersome, but for a teenager, it was amazing. We built applications that could help run Dungeon and Dragons games, and the ability to store information about our games was amazing. I even adapted some of these routines to store data about various chemistry experiments in school, making my report writing (and data fudging) must easier.

In time I stumbled upon the basic database structure of dBase, thinking this was vastly superior. I could control the structure of each table, but have the power of quick access and indexes. Of course, I learned to make sure I opened all the indexes with the data file, otherwise I might "lose" some data over time. 

Those first database structures felt great, and even superior to SQL Server when it was just one person. Initial queries were much quicker under dBase type applications (Clipper, FoxPro, etc) than under SQL Server, though that quickly changed as the number of users grew. For the last two decades, I've been entranced and thrilled with the power of relational systems. They solve many problems well, and I find them fairly easy to develop against.

Not everyone feels the same, and there have been many different types of data stores built in the last decade, each designed to solve different types of problems. I ran across a post about the different specialty databases available in AWS from Werner Vogels, Amazon's CTO. The piece is interesting as he notes that one type of database can't meet all the needs of modern applications, at least, it can't meet the needs of very large scale systems like Amazon's eCommerce site. Instead, there are situations and problems better solved by specialty systems.

Amazon built a key-value, extremely fast database to back a system that mostly needed those types of simple lookups. Over the years, in response to their needs or those of their customers, they've added other types of databases in their AWS cloud. Mr. Vogels lists six databases in AWS, including relational stores. He talks a bit about where each can be used. He also cites some customers that have had success in different applications with different data stores.

Microsoft has done similar things in Azure and their data platform. Most of us know SQL Server as the relational engine, but we have an in-memory component and with 2017, we also get graph capabilities, albeit rudimentary ones. In Azure, they have CosmosDB, which includes a number of different types of data stores (key-value, document, graph, etc.). I know Google has multiple databases available as well.

As we build larger systems that reach out to more people, I wonder sometimes if we ought to be architecting to use multiple data stores from the beginning, choosing the type that works best for the problem and not choosing to just use one database for all parts of an application. I already have some customers that supplement their SQL Server with Redis, Elastisearch, AWS or Azure queues, cloud storage buckets/containers, and more.

I'm a practical person, who likes to pick the solution that works well for the problem I need to solve. I have no issue with using multiple technologies, and as my career as advanced, I think it's easier than ever to do so. If you haven't considered other data stores, perhaps you want to learn a bit about them and see if they could help improve your system. Keeping an open mind and considering alternatives is good, and I recommend it. What I don't think you should do is choose another technology because you like it or are interested in learning more about it. Pick the solution that works best.

Steve Jones from SQLServerCentral.com

Join the debate, and respond to today's editorial on the forums


The Voice of the DBA Podcast

Listen to the MP3 Audio ( 4.8MB) podcast or subscribe to the feed at iTunes and Libsyn. feed

The Voice of the DBA podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music.

ADVERTISEMENT
GDPR

How to make your SQL Server development GDPR ready

Redgate’s SQL Data Privacy Suite helps you to build a data catalog of your SQL Server estate, and put in processes to protect and monitor personal information. Find out more about how our tools help with GDPR compliance

SQL Provision

NEW SQL Provision: Create, protect, & manage SQL Server database copies for compliant DevOps

Create and manage database copies effortless and keeps compliance central to the process. With SQL Provisions virtual cloning technology, databases can be created in seconds using just MB of storage, enabling business to move faster. Sensitive data can be anonymized or replaced with realistic data to ensure data is protected as it moves between environments. Download your free trial

Featured Contents

 

Fixing ‘A required Privilege is not held by client’ Error

Vishnu Gupthan from SQLServerCentral.com

This article is to explain a scenario I started facing in my work environment after some Windows Security patches rolled out . A required privilege is not held by the client. The step failed. More »


 

Deploying Multiple Databases from Source Control using SQL Change Automation

Phil Factor demonstrate how to use SQL Change Automation, to take the contents of a source control directory for a database, check that it is possible to build from it, document it and then create a NuGet package and place the code in it More »


 

T-SQL Window Functions and Performance

Additional Articles from SimpleTalk

T-SQL window functions, introduced in 2005 with enhancements in 2012, are great additions to the T-SQL language. In this article, Kathi Kellenberger explains what you need to know to get good performance when using these functions. More »


 

From the SQLServerCentral Blogs - SQL Agent for Azure SQL Database? Not quite

Arun Sirpal from SQLServerCentral Blogs

The following post shows my preferred way to automate / schedule some code against my Azure SQL Database. No it is... More »


 

From the SQLServerCentral Blogs - What Is The Preferred Join Operator in SQL Server?

Grant Fritchey from SQLServerCentral Blogs

I schedule many of my blog posts at least 2-3 weeks out, so I have time to adjust them, change,... More »

Question of the Day

Today's Question (by Henrico Bekker):

How can I change the automatic refresh interval for my AlwaysOn Availability Group Dashboard view?

Think you know the answer? Click here, and find out if you are right.


We keep track of your score to give you bragging rights against your peers.
This question is worth 1 point in this category: Availability Group (AG).

We'd love to give you credit for your own question and answer.
To submit a QOTD, simply log in to the Contribution Center.

ADVERTISEMENT

Exam Ref 70-774 Perform Cloud Data Science with Azure Machine Learning

Prepare for Microsoft Exam 70-774 and help demonstrate your real-world mastery of performing key data science activities with Azure Machine Learning services. Designed for experienced IT professionals ready to advance their status, Exam Ref focuses on the critical thinking and decision-making acumen needed for success at the MCSA level.  Get your copy today from Amazon.

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

I create this table:

 CREATE TABLE SalesOrderHeader ( OrderKey INT NOT NULL , OrderDate DATETIME2(3) NOT NULL , CustomerID INT) GO 

Next I add a clustered index.

 CREATE CLUSTERED INDEX SalesOrderHeaderCX_OrderDate ON dbo.SalesOrderHeader (OrderDate); GO

Now I add a PK.

 ALTER TABLE dbo.SalesOrderHeader ADD CONSTRAINT SalesOrderHeaderPK PRIMARY KEY (OrderKey); 

The SQL Server will create statistics for the columns. What will be the statisticsID for the PK column?

Answer: 2

Explanation:

The statistics Stats_ID will match the index_id. In this case, the Primary Key will be on index ID 2 since there already is a clustered inde when the PK is added.

Ref: Does a Primary Key always have stats_id 1? - http://www.sqlservercentral.com/blogs/discussionofsqlserver/2018/06/28/does-a-primary-key-always-have-stats_id-1/

sys.stats - click here


» Discuss this question and answer on the forums

Database Pros Who Need Your Help

Here's a few of the new posts today on the forums. To see more, visit the forums.

SQL Server 2017 : SQL Server 2017 - Administration

MDS Master Data Services impossible to connect to web UI - I hope someone can help me out. I am finding it impossible to get the WEB UI for MDS to...


SQL Server 2016 : SQL Server 2016 - Development and T-SQL

Repeat union all according to an input parameter - Hello For calculation purposes I need to make a request of type uinon all according to an input parameter For example...


SQL Server 2014 : Development - SQL Server 2014

Finding a particular date in all tables - HI all, The famous SearchAllTables proc failed to find date values I know exist in my (DateTime) columns.  A quick Google...


SQL Server 2012 : SQL 2012 - General

????????????Q?1010636782(Edinburgh)??????????“?????,????”??????University of Edinburgh - A????????Eric ????????Q/?:1010636782?1:???,????,?????????? 2:?????? ?????????????????? 3:?????,??????,?????????????? ??:???? ???????????????? ??????/???????????????Offer??????????????????????! ??????: ??????????????????????????(?? ????)???????????????????????????????? ??????????? 1. ??????????; 2. ???????????????????????????; 3. ????????????????????;

?????????????Q?1010636782(Bristol)???????????“?????,????”??????University of Bristol - A????????Eric ????????Q/?:1010636782?1:???,????,?????????? 2:?????? ?????????????????? 3:?????,??????,?????????????? ??:???? ???????????????? ??????/???????????????Offer??????????????????????! ??????: ??????????????????????????(?? ????)???????????????????????????????? ??????????? 1. ??????????; 2. ???????????????????????????; 3. ????????????????????;

?????????????Q?1010636782(Sussex)???????????“?????,????”??????University of Sussex - A????????Eric ????????Q/?:1010636782?1:???,????,?????????? 2:?????? ?????????????????? 3:?????,??????,?????????????? ??:???? ???????????????? ??????/???????????????Offer??????????????????????! ??????: ??????????????????????????(?? ????)???????????????????????????????? ??????????? 1. ??????????; 2. ???????????????????????????; 3. ????????????????????;

????????????Q?1010636782(Birmingham)??????????“?????,????”??????University of Birmingham - A????????Eric ????????Q/?:1010636782?1:???,????,?????????? 2:?????? ?????????????????? 3:?????,??????,?????????????? ??:???? ???????????????? ??????/???????????????Offer??????????????????????! ??????: ??????????????????????????(?? ????)???????????????????????????????? ??????????? 1. ??????????; 2. ???????????????????????????; 3. ????????????????????;

???????????Q?1010636782(Leeds)?????????“?????,????”??????University Of Leeds - A????????Eric ????????Q/?:1010636782?1:???,????,?????????? 2:?????? ?????????????????? 3:?????,??????,?????????????? ??:???? ???????????????? ??????/???????????????Offer??????????????????????! ??????: ??????????????????????????(?? ????)???????????????????????????????? ??????????? 1. ??????????; 2. ???????????????????????????; 3. ????????????????????;


Reporting Services : SSRS 2016

Using a Temporary Table in SSRS - Hello, I have created a temporary table in SQL Server Management Studio.. I want to use in in SSRS so...


Programming : General

IP V6 range - Hi, I have table of IPv6 range such as: 2001:254::/32 or 2001:420:4490::/44 Does anybody have function to check if given IPv6 address is between...


SQL Server 2005 : Backups

Problem with Sqlservr.exe -m - Hi, Windows 2003, Sql Server 2005 (SP2 3042) Was DRP'ing a server over the weekend and was not able to start sql...

This email has been sent to newsletter@newslettercollector.com. To be removed from this list, please click here.
If you have any problems leaving the list, please contact the webmaster@sqlservercentral.com.
This newsletter was sent to you because you signed up at SQLServerCentral.com.
Feel free to forward this to any colleagues that you think might be interested.
If you have received this email from a colleague, you can register to receive it here.
This transmission is ©2018 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
Contact: webmaster@sqlservercentral.com