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

Daily Coping Tip

Look for new reasons to be positive about the week ahead.

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.

Getting Beyond Passwords

Most of us that work with SQL Server likely use either the Windows authentication or a user name and password when connecting to an instance in SSMS or ADS. It's how we've operated for years, and likely will for some time to come. If you connect to Azure cloud resources, perhaps you use some multi-factor authentication (MFA), but that's a minority of us.

If this article is a picture of the real world, far too few people are using authentication beyond passwords for many services. While plenty are using fingerprints, patterns, or face recognition on a mobile device, that's usually the extent to which they actually go beyond a password. I've actually started to see people using PINs on laptops instead of a password, which feels like a step backward.

Recently I saw someone suggest MFA for SQL Server. I would hope that we would get not only more complex authentication for the platform, perhaps even two-person authentication. but I'm not holding out hope. I think the integration AD is likely to require more steps than most administrators want to take. For now, I expect that any sort of on-premises SQL Server security is going to remain the same. For cloud databases, I do think that we will see other options as they become available.

I personally don't think we'll ever get beyond all passwords. There are just too many situations where someone might not have a smart device they can access. Too many unlinked services and organizations that might not want to authenticate to GitHub, Google, Facebook, or any other large service. I certainly can't see email moving beyond passwords entirely. We might get a login with some other service, but a password will still be a last resort.

While I've gotten comfortable with quite a few different authentication mechanisms on a daily basis, I do think that the entire structure is still complex. While I often authenticate with some sort of MFA, it's a mix of copy/pasting codes or pressing authorize buttons. That's if I actually remember which service I used to authenticate to a particular service.

Ultimately, I find unlocking a safe and copy/pasting passwords to be the simplest method, and I find myself often choosing to create accounts with email and passwords. Easier than me trying to track where I might have used Google v Microsoft for authentication.

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

Azure Data Studio - A SandDance demo

Daniel Calbimonte from SQLServerCentral

Learn how you can get better charting in Azure Data Studio with SandDance.

SQLServerCentral Article

Access All Your Data in Google Data Studio with CData Connect Cloud 

JerodJ from SQLServerCentral

Google Data Studio helps you create comprehensive reports and data visualizations. When combined with CData Connect Cloud, you get instant, cloud-to-cloud access to data from supported SaaS, Big Data and NoSQL sources for visualizations, dashboards, and more. CData Connect Cloud provides a live cloud-to-cloud interface for all your data, making it easy to build reports from […]

External Article

Dry Runs for Database Migrations using Flyway Teams

Additional Articles from Redgate

How Dry Run scripts work, and how they can be used to deliver a single-script release artifact to Staging, verify placeholder substitutions in SQL migration scripts, and simply team code reviews.

External Article

Using SQL Server sequence objects

Additional Articles from SimpleTalk

SQL Server sequence objects have several properties that control how they behave. Greg Larson explains the options of using SQL Server sequence objects.

Blog Post

From the SQL Server Central Blogs - What are those new buttons under tab order in Power BI?

Meagan Longoria from Data Savvy

If you’ve visited the Tab order area of the Selection Pane in Power BI in the last couple of months, you might have noticed some new buttons. The hover...

Blog Post

From the SQL Server Central Blogs - 3-2-1 Backup Rule for Data Protection in SQL – What Is It & Is It Relevant?

nelsonaloor from PracticalSQLDba

In the event of a disaster leading to database unavailability, restoring backups is the first step to ensure business continuity. However, situations may arise when attempts to restore the...

 

 Question of the Day

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

 

Database Snapshot Sparse Files

I have created a database snapshot and want to check if there is a sparse file. Where should I look for this information?

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)

Default Masking

I have a 20 character varchar string column in a table. I want to add dynamic masking to the column with this code:

ALTER TABLE dbo.DDMTest ALTER COLUMN String1 ADD MASKED WITH (FUNCTION='DEFAULT()');

I have two rows with values in this string column. One row has 1 character, one has 5 characters. If a user queries these rows without the UNMASK permission, how many Xs will appear for the 1 character string and the 5 character string?

Answer: 4 Xs for 1 character and 4 Xs for 5 characters

Explanation: The default mask will return 4 Xs for a field length that's greater than 4 characters. Ref: Dynamic Data Masking - https://docs.microsoft.com/en-us/sql/relational-databases/security/dynamic-data-masking?view=sql-server-ver15#defining-a-dynamic-data-mask

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 - Administration
Retry SQLAgent Job - Hello. Does anyone know how I can retry a job should any one of it's steps fail ? To clarify, I don't want to retry the job step but the whole job. Thanks,  
create index columnstore - hello , Who has any idea please how to rebuild a clustered index to a clustered columnstore index thanks
SQL Server 2016 - Development and T-SQL
Run second query if first completes - I am having a total brain cramp. I have a query the populates a month_end_summary table from nightly_results table. If the query runs correctly i want to run a query to delete the nightly_Results table. but only if the first summary query runs with out error. i can do the try catch on the first […]
Update alias or update tablename when from clause is specified - I would like to ask your opinions and recommendations on how to properly write an update with a from clause. I'm putting this in the SQL Server 2016 forum as that is the version we are mostly using. The syntax hasn't changed however in newer versions -as far as I know- so the same question […]
efficient large table cleanup - looking for examples on doing a large table cleanup where my attribute value selected has an attribute_value of Null. I would like to maybe do it in Batches where I deleted say 20,000 in 5 iterations then exit.   Attribute = 'csx' and attribute_value is null Thanks.   CREATE TABLE [dbo].[Quality_Attribute]( [Quality_ID] [int] NOT NULL, […]
SQL Server 2012 - T-SQL
Get Summary Data for Last 52 weeks by Week - I have a table which stores shipment data by date. We have a need to get last 52 weeks Shipments by week. If today is 11/29/2021, My first week should be between Nov 23-Nov 29 Week 1 , 2020 and so on . Week always starts on Monday and ends on Sunday. Table: Shipments , […]
SQL Server 2019 - Administration
Upgrade in place error (2017 to 2019) - invalid name space. - Upgrade stops with an invalid namespace error (that was it, no error codes of any kind).  Retry fails.  then hit the Cancel button and the upgrade continued and finished.  This was in the SqEngineCongigAction_upgrade_config_Cpu64 phase.  This was a warning and the finish was all green.  I had uninstalled SSMS and rebooted before the upgrade. I […]
SQL Agent Driving Me Nuts - Been given a new server running Win 2019 & SQL 2019 unable to run bat jobs with SQL Agent So to try & simplify & understand what is happening have a simple bat file that is called test.bat,  contains the following @echo off echo Test Test Test pause SQL agent has full access rights to […]
SQL Server 2019 - Development
Help with SQL Query - Hello SQL experts, Please see attached file for table detail. I have a temp table name company similar to what’s shown above  and I am trying to write a query that will SUM up the totaAmt column for each company then subtract that total from the company’s Bid_Limit of  25000  to find the Results. I […]
help with SQL query PGADMIN - 2 tables Users : User_id, First_name, Last_name, Gender. Deposits : User_id, time_stamp, amount. i need to write a query that returns as result all users with Gender="M" from User table and for each user his total sum amount from deposits table taking into account only deposits made after 1/1/17 and on amount which is higher […]
T-SQL query combine rows into a single column -   Hi all, I'm a newbie to T-SQL. Please can you help me with the below query . Thanks in advance! my desired o/p ------------------  my input code ------------------ IF OBJECT_ID('dbo.test', 'U') IS NOT NULL DROP TABLE dbo.test; create table test (person_id int , name_change nvarchar(75) ) go insert into test values (1,'Mr Herby Spike') […]
General Cloud Computing Questions
Which version of SQL should I use? - I see SQL as a query language, used to store and retrieve data. However, there are now many versions of new words with different features. Now I am using SQL to manage school data. So now which version should I use? Please give me some advice.
Powershell
run multiple scripts inside main logic - Currently I have this script executing based off another process, but only if I actually have a file to process. Now I would like to add additional scripts to be executed. What is the best way to go about that, and if something fails don't process anymore that follow. Thanks. $path = '\\srv1\dblocks\' $file = […]
Integration Services
ODBC - Pipeline component has returned HRESULT error code 0xC0208457 - I am trying to connect to MYSQL as a target/destination via ODBC. I am getting this error, pls assist?   TITLE: Microsoft Visual Studio ------------------------------ Pipeline component has returned HRESULT error code 0xC0208457 from a method call. Error at Data Flow Task [ADO NET Destination [71]]: Failed to get properties of external columns. The table […]
Trouble connecting MYSQL in SSIS - I connect to MYSQL in SSIS with MYSQL data provider. I am getting the errors below. I also tried via ODBC using this code Driver={ODBC Driver 13 for SQL Server};Server=myServerName,myPortNumber;Database=myDataBase;UID=myUsername;PWD=myPassword; I just cant seem to figure out where the problem is. Please assist?   [ADO NET Destination [2]] Error: An exception has occurred during data […]
 

 

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

 

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