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 by appreciating your body and that you’re 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.

Distributed SQL Databases

One of the challenges that SQL Server, and many RDBMSes, face is scaling out. While SQL Server can grow to handle a large workload on one piece of hardware, eventually there reaches a point when a single machine cannot handle the workload.

Microsoft is trying to handle this with some new tricks. We have the Hyperscale editions of Azure SQL Database and Big Data Clusters, on premise. I don't know that either of these will end up providing us with scale out for our OLTP databases, but they are options.

There are other options. Google has Spanner, which is a distributed SQL database and CockroachDB has attracted some attention. I caught an article that talks about some of the reasons you might look at CockroachDB, which is a cloud system, but one that gives you scale, and perhaps more importantly, lack of lock-in with a cloud vendor.

I don't know all the ins and outs of a distributed, scalable SQL database, but I do know that scaling one table, with lots of concurrent access, can be tricky. There are improvements in bandwidth and technology that might allow things to scale well, but I can't help but think that conflict resolution will be a challenge if many people need to write to the same rows.

I also know that often we aren't writing to the same rows, but to the same table. Distributing that is easier, but when we start to look at lots of tables with referential integrity, I wonder how scalable this is. After all, the data needs to get committed and then written to multiple places for this to work well.

The one advantage in the cloud is throwing hardware at problems like this, often in a more cost effective way than an organization can do in their own data center. Whether this works well remains to be seen, but certainly there are customers and investors that see this as a part of the future.

Steve Jones - SSC Editor

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

 
 Featured Contents

Reading a Specific File from an S3 bucket Using Python

prashant239 from SQLServerCentral

This article shows how you can read data from a file in S3 using Python to process the list of files and get the data.

How to become a data scientist: A data-driven approach to careers in data science

Additional Articles from SimpleTalk

Many devs and IT professionals looking for the next career wonder how to become a data scientist. Ashwin Thota matches up skills to job titles.

From the SQL Server Central Blogs - Disabling Non-Clustered Indexes For Fun and Profit

@DBA_ANDY from Nebraska SQL from @DBA_ANDY

One of the frequently quoted ETL best practices is to disable your non-clustered indexes during a data load.  Basically the conventional wisdom is that you disable the non-clustered indexes,...

From the SQL Server Central Blogs - A New Git Default Branch

Steve Jones - SSC Editor from The Voice of the DBA

I learned a new trick from Andrew Pruski. In a blog on avoiding PowerPoint, he had htis neat trick: git config --global init.defaultBranch main Apparently, this is a new...

 

 Question of the Day

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

 

Parameters in RAISERROR

I want to add a parameter in my RAISERROR code to customize it:
RAISERROR(' %s is the current value', 1, 0, @d)
What data types can I use for @d?

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)

Deprecated Features

I am running SQL Server 2019, and I have an old codebase. I am worried that I might be using features that are deprecated and don't want to add new code using them. How can I easily check what features are deprecated on my version when writing code?

Answer: SELECT * FROM sys.dm_os_performance_counters WHERE object_name = 'SQLServer:Deprecated Features';

Explanation: The sys.dm_os_performance_counters tracks this. Ref: Deprecated Features - https://docs.microsoft.com/en-us/sql/database-engine/deprecated-database-engine-features-in-sql-server-version-15?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
SSIS guidance - hi all Looking for a general directional pointer on something I am trying to achieve in SSIS I want to pull a number of column values from a table in a DB , store these in a variable and then use that variable in an outbound API call which will use those values as parameters […]
SQL Server 2016 - Administration
xp_cmdshell - how to check which job or  stored procedure using xp_cmdshell in sql server ?
consolidate error logs - i need to configure job to consolidate sql error log sizes   from multiple servers , iam not proficient in developing scripts  nor packages ,  any one help in  doing this task .
User unable to see Logins after recreation of permissions in new instance - Hello All I was tasked with setting up a new instance on the same server, but with a higher version (from 2012 to 2016). User would like to test higher version before moving dbs there. After installation I recreated all the logins using these guidelines - https://www.sqlshack.com/move-or-copy-sql-logins-with-assigning-roles-and-permissions/ User confirmed successful login, but one thing that's […]
SQL Server 2016 - Development and T-SQL
? on Count specific value on XML data - Hi How do I find a count of a specific value in XML? data.value('count(/SampleXML/Colors/*)', 'int') finds all so say Black in [1] and Red in [2] and Black in [3] How do I get Black 2. Red 1   Thanks    
SQL 2012 - General
How to write update query to check exist column by value 1 where it exist on tab - How to update check exist column by value 1 where partid exist on table FeaturesvalueA or FeaturesvalueB ? I work on sql server 2012 I face issue I need to update column checkexist on table temp where partid exist at least one time on table #FeaturesvalueA or table #FeaturesvalueB But if partid exist on both […]
SQL Server 2012 - T-SQL
update query problem - Is there a way to take these two records and update the NULL values in one to match the filled in values for another? e.g. Record One in CallTable:      ID# 5263       CallID = 563522       Fname = Ben               Lname = Foster Record Two in […]
SQL Server 2019 - Administration
Estimating compute cost per type of transaction - Hello, I am creating a program that calculates the Read, Insert, Update, Delete statements that exist in code. Since we  know: The type of transaction, the number of parameters passed, the size of the table, I thought good to provide a calculation cost for each program/function. That is to say, A read operation in a […]
Name of the remote server in a query - Hi, I want to retrieve the name of the remote server in my SQL server query: exec ('CREATE OR ALTER PROCEDURE ins_tmp_proc AS BEGIN INSERT INTO dbo.tmp (job_id, name, ..., server) SELECT job_id, name, .., @@SERVERNAME from msdb.dbo.sysjobs UNION SELECT job_id, name, .., @@SERVERNAME from .msdb.dbo.sysjobs END') I tried executing just the SELECT statement by […]
SQL Server 2019 - Development
Stored Procedure "Caching" - I'm having an issue with a database that I recently moved from SQL 2014 to SQL 2019 (Standard in both cases).  The users get data from the database using stored procedures either through the UI or linked to Excel (using an ODBC).  The users will execute the same procedure multiple times with different parameters expecting […]
Logic is not wokring - hi, I have 3 types of invoices , INNU,INN1, INN2 I am trying to filter out invoices that are "INN1" and "Unpaid" ( I dont want INN1  Unpaid invoices ) I tried to use the following condition but Its taking out all the "Unpaid" invoice. where [Invoice Class] IN (@invoice) and ( invoice_cl <> 'INN1' […]
Integration Services
[ADO NET Source [2]] Error: The ADO NET Source was unable to process the data. F - I am trying to get data from myslq into mssql with ssis. I am getting these errors: [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on ADO NET Source returned error code 0xC02090F5. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by […]
Machine Learning
Machine Learning Services on Database Server verses R Lang Execution on Laptop - We are running SQL Server 2017 (RTM) on Windows. The question came up, if we could install Machine Learning Services on our database server so a user(s) may execute Python and R scripts in the database? I am wondering if there would be a small or huge performance hit on our database server. (We try […]
The Future of Community
SQLSaturday Foundation - We are setting up this thread to welcome questions and comments about the latest announcement where Redgate has announced plans to establish a community-run SQLSaturday foundation and donate the SQLSaturday brand and assets. The foundation would support the data platform community to run your own regional SQLSaturday events, which are vital in helping communities across […]
MySQL
Longblob to varbinary(max) - hi , I am having issue with SqlMigrationTool migarting mysql data to MSSQL server. During the migration , i have no issues , but when i pulled data with longblob datatype , data is converted to varbinart(max) which is right . But user mentioned data is null for most of the records where she is […]
 

 

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

 

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