Problems displaying this newsletter? View online.
SQL Server Central
Featured Contents
Question of the Day
The Voice of the DBA
 

Daily Coping Tip

Start today appreciating your body and health and the fact you are alive.

I also have a thread at SQLServerCentral dealing with coping mechanisms and resources. Feel free to participate.

For many of you out there working in a new way, I'm including a thought of the day on how to cope in this challenging time from The Action for Happiness Coping Calendar. My items will be on my blog, feel free to share yours.

IoT Pros and Cons

This editorial was originally published on May 4, 2017. It is being re-published as Steve is at SQL Bits.

The Internet of Things is coming, or maybe it's a wave that's growing underneath us right now. It certainly hasn't crested if that's the case, and I expect that we'll see more and more devices, sensors, and applications coming in the next decade. We'll get larger and smaller devices, commercial and industrial tools, some amazing innovations and some silly ones that will make most people roll their eyes.

I ran across an article with some pros and cons from the general perspective. Certainly security is a huge concern, and one that isn't well addressed by many organizations. In fact, many of the demos of the Azure IoT hub don't do a great job of showcasing security. I think the Azure IoT Hub is a great idea, with some well thought out security measures, but developers need to build in habits early, and certainly include them in their applications. Let's leave aside security for a moment and stipulate that it is, and likely always will, be a concern and issue.

What about the data perspective of IoT? The age of new sensors and devices mean a glut of data, perhaps an overload. We may get a scale of data that we don't expect and need to plan for more TB or PB sized databases. Those are serious challenges for any organization, and likely we'll need archival plans to remove old data, or at least ensure we don't have to scan it for queries. We might even need some sort of governors that prevent the errant "select * from table" queries that try to query 100 billion rows.

We also may see crazy rates of data acquisition as well. One of the strengths of some NoSQL platforms is that they handle quick streaming sets quicker than relational engines. In fact, in some domains we might not even want to bother storing all the data we can and may need to process this as we get the data, only storing certain samples or ranges. I worked with a stock market application once and the streaming of prices was enough to overwhelm our SQL Server until we learned to limit the data we actually needed to store in the system.

There's also the chance we'll get new, or different types of data that we aren't sure of the value. Data that might not seem like there is an obvious use for it, but we're just gathering the bits because a sensor or device captures them. This is where I see more intelligent analysis, more of the "data science" being used. Most of us won't know how to create these queries, but we certainly will know how to implement and run them, which is a much simpler process. This also means we might need to learn more about to partition, archive, or otherwise move some data of OLTP type, transactional systems to help manage our loads.

I think IoT is somewhat scary, but also very exciting. New types of data, new applications, new uses for data, which will make our jobs very interesting in the coming decade.

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

Exploring Knowledge Center in Azure Synapse Analytics

arindamxs from SQLServerCentral

Introduction Azure Synapse Analytics is an enterprise analytics service that brings together popular data warehouse technologies and big data systems together. It provides SQL for enterprise data warehousing, Spark technologies for big data, Data explorer for analytics, Pipeline for data integration and ETL and ELT, and other popular Azure services including Power BI, CosmosDB, and […]

External Article

Populate a SQL Server column with a sequential number not using an identity

Additional Articles from MSSQLTips.com

I have a database table that has a lot of data already in the table and I need to add a new column to this table to include a new sequential number. In addition to adding the column I also need to populate the existing records with an incremental counter what options are there to do this?

External Article

SQL Prompt ALT S Magic

Additional Articles from Redgate

SQL Prompt's new command palette provides a fast way to navigate the tool's functionality via a single keyboard shortcut: ALT+S. Phil Factor explains how you can use the command palette to find and execute SQL Prompt functionality and common SSMS commands, as well as search for database objects.

Blog Post

From the SQL Server Central Blogs - Recipe 3: Merging and manipulating events

spaghettidba from SpaghettiDBA

Welcome to the third recipe of this Extended Events cookbook! You will find the first blog post of the series here and you can browse all recipes with the...

Blog Post

From the SQL Server Central Blogs - Azure Redundancy for Storage

Steve Jones - SSC Editor from The Voice of the DBA

This is part of a series on my preparation for the DP-900 exam. This is the Microsoft Azure Data Fundamentals, part of a number of certification paths. You can...

 

 Question of the Day

Today's question (by Steve Jones - SSC Editor):

 

Data Analytics Classification II

I build a chart that shows me the sales from last year and extrapolates what we expect sales to look like for the next quarter. What type of analytics are being used?

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

 

 

 Yesterday's Question of the Day (by Steve Jones - SSC Editor)

The Plan Cache Plan

What type of plan is stored in sys.dm_exec_query_plan?

Answer: Estimated

Explanation: The estimated plan is stored in the plan cache and returned from this DMV. Ref: sys.dm_exec_query_plan - https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-exec-query-plan-transact-sql?view=sql-server-ver15

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 - Development
How to get Two averages when the Number is defined as nvarchar ? - Hi experts, Sorry for not getting you a table or data at this moment but I will if I need to get help tomorrow How do I get Average of Cost 2. Average cost of Home Dept vs Overall Average Cost (Example: Home Department) Average Selling Prices of Each dept against over all selling price […]
Starting a beginner SQL server job - Need books, resources, ideas to learn - Could someone please give me some advice regarding SQLserver and SQL in general? I have some experience, but it was too long ago and I need to freshen up. Books, links, ideas, concepts that need to be known not to get fired the first day. Thank you.
SQL Server 2016 - Administration
SQL Agent Job - Hello, One of the full back up job failed and it was triggered again. The DB's size is big so it takes couple of hrs to complete. My questions is ....if the running job does not finish before the scheduled time when it starts...will it fail or stop current run?   Is there a way […]
Read previous days transaction log .trn - Is there a utility or script that I can see the Transactions that happened in a Trn log backup file (.trn). I would like to see what transactions and tables where updated in the Backup log. Thanks.
SQL Server 2016 - Development and T-SQL
units divided by quantity and order by date - Hi Expert, I am facing challanges for logic to apply all previous units sold divided by next or nearest dates quantity here is the query Create table ratio1 (UNIT1 int,CONS integer,SaleDateId date,consumables integer) insert ratio1 values (4444444,222,'20210407',10), (4444444,333,'20210407',15), (4444444,444,'20210407',24), (4444444,555,'20210407',24), (4444444,777,'20210412',10), (4444444,888,'20210414',16), (4444444,999,'20210414',20), (4444444,000,'20210421',10) ========================================= create table main ( oid int, UNIT1 int,SaleDateId date, quantity […]
Development - SQL Server 2014
List Dates between Start and End Date - Hi I have a very simple query as below select Personid, StartDate, endDate from table where startdate >= '01-feb-21' Example Data 223, 01-Feb-22, 04-Feb-22 354, 21,Feb-22, 22-Feb-22 I want to display it now as follows, so listing the days between the startdate and enddate for each personid Data would be as follows 223, 01-Feb-22 223, […]
SQL Server 2019 - Administration
Problem with Secure Enclave attestation - Hi all, long time lurker, first time posting. Looking for some help with an error I am seeing with our Always Encrypted with Secure Enclaves setup. In our production environment when our user load increases during the day I am seeing exceptions as follows: Failed to create enclave session as attestation server is busy. We […]
SQL Server 2019 - Development
Automatically output Extended Events data to table - Hi there, I was wondering if/how I would be able to output the results of an Extended Events session to a database table, either in real time or on a regular schedule. I have seen it suggested that the ring buffer could be used as a target, then that could be queried regularly and copied […]
Merge into a subset of the target - I have a table with a column named JDX that I wish to merge into and I want to limit the merge considerations to the set where JDX is 180. I reduced the fields being updated for brevity. It works on the "matched " and "not matched by Source" by adding "and jdx = 180" […]
Remove values between single quotes. - Hi   So Ive got a SQL trace uploaded into a table and I 'm looking at the ad-hoc calls, I want to summarize them and remove any values from the calls e.g instead of select id,jobcode from table where id = '1' and jobcode in ('s','l') I want to be left with select id,jobcode […]
Extract date from a text field - I'm trying to extract date from a text field.  I'm using PADINDEX to do this. My results are very inconsistent.  Is there anyway I can do this through SQL.  I don't have an application to do this for me.  I am trying to get this for a report that is needed. The text field has […]
Merging sql and excel - I’m trying to merge sql data and excel data to an excel spreadsheet. Is there a way to do this?
General Cloud Computing Questions
What exactly is cloud computing? - Is this idea that I have correct: Cloud computing is a place in some company that is offering cloud computing where it has some servers there that are shared among applications that are subscribed to this cloud. For example BAAS, uses cloud computing where the company example google offers some services like push notification/storage/database instead […]
General
what is a good web dev project for a beginner? - So my questions is what is a project for a beginner like me who knows python (very well), C and C++ (comfortable with it), algorithms and datastructuresbut knows nothing about JS HTML CSS and databases. I saw that common suggestion is to create a blog but it seems kind of boring (tho I will start […]
SQLServerCentral.com Website Issues
Airline posts?!? - What's the deal w/ the sudden spate of airline spam posts? Any way to block these systematically?
 

 

RSS FeedTwitter

This email has been sent to {email}. 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.
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
webmaster@sqlservercentral.com

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -