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

Daily Coping Tip

Connect with nature. Breathe and notice life continuing.

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.

Encryption Gets Broken All the Time

There are always researchers and hackers looking to break encryption algorithms. In fact, there are regularly a series of challenges against the very commonly used RSA algorithm. Recently, the RSA-250 challenge was completed with the algorithm being factored, albeit with a key length of only 829 bits. Most of us would use a 2048 or 4096 key length, so this isn't that disconcerting. Especially given the amount of time this took.

The effort took 2700 core-years, and in real time, thousands of cores used for a few months. This was a new record, and one that scientists regularly compete for. There are challenges that are being run to try and help determine just how strong our encryption algorithm are in today's world. I don't think many of us have anything to worry about, but if you are still using any lower length RSA key lengths (512 or 1024), you might think about replacing these keys with longer ones.

In fact, all sorts of algorithms and key lengths have been shown to be insecure, meaning they can be cracked relatively easily. In SQL Server, there are a number of algorithms that have been deprecated for this reason. While most people don't use the encryption features of SQL Server, some do, and some of you might not realize they are in use in your system. If older algorithms are being used, you should change them as soon as you can. Right now, only the AES algorithms are active, and using any older ones requires a compatibility level of 120 or lower.

This isn't to imply that encryption isn't strong or useful or necessary. It does provide protection, but it isn't perfect. In fact, just like many organizations don't rely on just locks; they also use live human patrols to secure their assets. You shouldn't rely only on encryption along. Audit and monitor your systems for unusual and unauthorized activity, and then take the appropriate action, including revoking access for compromised encryption keys.

Steve Jones - SSC Editor

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

 
 Featured Contents

A Pattern Based Approach to Masking Errors

Andy Warren from SQLServerCentral

A few years ago I had a requirement to allow both developers and customers to see rows from a table used to store error information while making sure that any PII, PCI or similar sensitive data was not displayed. The tolerance for “oops” was low! This article presents one way to solve the challenge by […]

Tracking Underlying Object Changes in Views

Additional Articles from SQLServerCentral

Views in SQL Server are used to simplify writing queries and managing security, but’s it’s easy for views to eventually get out of sync with the underlying tables. In this article, Edward Pollack shows how to overcome this problem.

SQL Monitor Roadtrip: Preparation

Additional Articles from SQLServerCentral

Setting up SQL Monitor without a bit of preparation work is a bit like embarking on a road trip without first learning to drive. Phil Factor show the essential kit and route maps you need for the journey.

From the SQL Server Central Blogs - What is the datatype SQL_VARIANT

Kenneth.Fisher from SQLStudies

The SQL_VARIANT data type is an interesting beast. It is a data type that can store most types of data. ... Continue reading

From the SQL Server Central Blogs - It’s 2020, Do I really need to DBCC CHECKDB?

Daniel Janik from Confessions of a Microsoft Addict

I’ll start by saying that I swear I posted this at some point in the past but I don’t see it looking back at old posts. This is from...

 

 Question of the Day

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

 

Rounding Fun

I am looking to round a value, and decide to try a few things. I am planning on using these functions:
  • ROUND(x, 0)
  • FLOOR(x)
  • CEILING(X)
I pass in the value -7.7 Which two of the three functions return the same value (ignoring decimal values to the right of the decimal)?

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)

Adding More Columns

I need to add an additional column to a data set that's in Power BI. I'm using DAX, and I need to substring some of the data that already exists in an existing column. What technique does this?

Answer: Creating a calculated column

Explanation: A calculated column is a definition for a column based on some DAX formula. Ref:

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
Find percentage of column - Hi, I'm trying to find the percentage of a column but I'm not sure how to get the percentage correct. The attachment is how I'm getting the "Have" part. I've tried adding this column but when I do a group by rollup it does the percentage on the overall total and not by county total. […]
Slow Trigger performance when big batches - I have an update trigger that inserts into auditing tables. We had no problem until someone decides to update over 1 million records... (That's my bad. I didn't think it would be a problem when developing). Now facing reality, I need to find a solution... This is a simplified version of the real thing -- […]
How to Join two tables with conditions and insert into new table - Hi,   I have two tables, both the tables have 4 common columns, First Column: LinkingID Other four columns(Name,Department,City). In few instances, we will get LinkingID row values, and few instances we don't have LinkingID column, so we left to use other 3 common columns), I want to see the best way to handle this […]
SQL Server 2016 - Development and T-SQL
Parent-Child Hierarchy - Finding the root - Hello, what I am trying to do is to find the root for every id. declare @tab table (id nvarchar(3), Father_id nvarchar(3), Flag_Root bit ) insert into @tab values ('A1','A1',1) insert into @tab values ('A2','A1',0) insert into @tab values ('A3','A2',0) insert into @tab values ('B1','B1',1) insert into @tab values ('B2','B4',0) insert into @tab values ('B3','B1',0) […]
Update duplicate values to 0 - Hi, I need some help in my query. Want to change numbers to 0 if the row is a duplicate records based on uniqueness of 2 columns Condition 1 ) ID and Market Condition 2 ) ID,PL For the Same ID and Market , I want to retain one row of original values in MarketComplete […]
SQL - queries - Hi, Based upon the attached table relationships, could somebody please help in the SQL queries for the following questions - Question 1  - Select time elapsed in days between the case date for cases created in the second half of 2010 and its first quote. If no quote has been created yet find elapsed time […]
Administration - SQL Server 2014
Backup and log files - I am a newby here. My data was destroyed and I was able to find another backup on a drive. I do have a complete database from January. However, I have two additional files that do not show with a file extension. One for each of the following months. I think these are log files […]
SQL Server 2012 - T-SQL
Encryption option in 2012 - Hi Experts , Our database have sensitive information like SSN , Tax_id etc. There are many such tables and don't want to use the column encryption and decryption by opening the symmetric key etc. Is there any other way to encrypt the data in sql server 2012.  
Trying to find the date of a day for each month - Hi, I have been looking allover and trying different things for this but cannot see hot to do this. In an VB.Net application the users will select 1st, 2nd, 3rd, or 4th. from one dropdown box and the day from another. this is a payment application, where the users enter when an customer is going […]
SQL Server 2019 - Development
Count the number of Code Types with a Subquery - I need help with a query to select against the following table: CREATE TABLE dbo.Claims ( [Organization Name] nvarchar(64) NOT NULL, [POS Code] nvarchar(8) NOT NULL ); GO -- In the real dataset there are many organizations -- ORG 1 Inserts INSERT INTO dbo.claims ([Organization Name], [POS Code]) VALUES ('ORG 1','02:B:1'); INSERT INTO dbo.claims ([Organization […]
Conversion failed when converting the varchar value ' ' to data type int - Hello, What I am trying to do is to replace the null values that I initially populated my table with using the update statement. I receive the error: 'Conversion failed when converting the varchar value 'THISWILLBETHESTRING' to data type int'. Keep in mind that in the update statement the TEST.ORDERCODE comes from the same table […]
EF Code-First - What is the DBA world consensus on using this to implement databases for an application? An application developer presented this as the "future of EF" but I do not know much about "EF Code-First" but it looks like its coding the database as classes in a .NET app and then applying it to a database. […]
SQL Server 2008 Administration
Merge Replication problem after table deletions - Hi Overnight we deleted 4 million rows out of on table on the subscriber database with merge replication enabled on it. The deletion took 2 hours but only 1.6 million records replicated across. There was a query timeout error in replication monitor. We restarted replication and this query runs and eventually times out, even when […]
SSRS 2014
Extra Row in Report Save as CSV - Using SSRS 2014, I'm getting an extra row at the bottom of the file when I save a report as a CSV file. Is there something I can add to the reportserver.config file? Thank you  
SSDT
Cannot browse cube from within Visual Studio -The \'Tabular View\' feature is not - Hi expects I am getting the below error when i am trying to browse a cube from visual studio cube browser. "Errors related to feature availability and configuration: The 'Tabular View' feature is not included in the '64 Bit Standard' edition of Analysis Services. (Microsoft SQL Server 2014 Analysis Services)" Why is it  trying to […]
 

 

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

 

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