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

Daily Coping Tip

Free up time in your diary by cancelling any unnecessary plans

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.

The Best Security for Database Administrators

A short while ago, Twitter got hacked. I wrote about this, as did Denny Cherry. I think Denny's piece was more interesting, as he speculates about the security measures that Twitter may, or may not, have had in place.

One of the things Denny brings up is air-gapping administrative machines. I've rarely seen this in organizations, and perhaps see this less and less in the pandemic world. There are some high security places that do this, but could your organization do this? How many of us use cloud or co-location facilities where we can't even physically enter the premises?

I suppose we can use some strong network security controls, perhaps even requiring static IP addresses for people at home and specific routes for certain administrators. I do know some companies that do require specific laptops for access, with limited software, but this certainly isn't the norm. Too often a general laptop used for most work performs double duty as an administrative workstation with access to production data.

Another thing Denny mentions is jump hosts, without any cut/copy/paste functionality from the remote machine to the host. This is something I am starting to see from customers, even smaller ones, as a way of limiting the chance or ransomware or some security breach. Multi-factor authentication gets an administrator onto a remote desktop session on a jump host, from which they can access production systems with limited tools. This certainly isn't perfect, and it is annoying for administrators, but it is a good security layer, and it forces organizations to use good, compliant, database DevOps practices to deploy changes.

Perhaps the best part of Denny's article is the title of the last section: good security shouldn't be user friendly. It shouldn't be for administrators. While we might make things slightly easier for average users, anyone that can access bulk amounts of data, especially in a privileged fashion, should have strong security, which is a bit cumbersome. I think the hassles of strong security would be a good thing for more of us to have to deal with.

Steve Jones - SSC Editor

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

Redgate SQL Prompt
 
 Featured Contents

Configure SQL Server on Ubuntu 16.04 to use Active Directory Authentication

Jignesh Raiyani from SQLServerCentral

Learn how to get Windows Authentication working on an Ubuntu SQL Server on Linux instance.

The Future of DevOps

Additional Articles from Redgate

Join Microsoft MVP Kendra Little to discover how you can fully left-shift your deployments with version control and automatic cloning using Redgate's latest innovations.

Using Azure Blueprints to deploy Azure SQL Server and Database with Key Vault Secrets

Additional Articles from MSSQLTips.com

In this article we look at two methods of using Azure Blueprints to deploy Azure SQL Server and Database with Key Vault Secrets.

From the SQL Server Central Blogs - Creating Your First Azure Data Factory

Tim Mitchell from Tim Mitchell

Azure Data Factory has grown in both popularity and utility in the past several years. It has evolved beyond its significant limitations in its initial version, and is quickly...

From the SQL Server Central Blogs - Change Azure SQL Database Service Level Objectives in SSMS

SQLEspresso from SQLEspresso

Sometimes as a DBA, I am lazy and want the ability to execute all of my tasks in one place. Lucky for me I discovered the other day that...

 

 Question of the Day

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

 

Moving on from syslanguages

One of my fellow DBAs has code that queries the syslanguages system table. What DMV should be used instead?

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)

Avoiding the transaction

I have this code:

DECLARE @salary INT = 1000
 BEGIN TRAN
 SELECT @salary = @salary * 2
 ROLLBACK
 SELECT @salary

What is the value of my salary at the end?

Answer: 2000

Explanation: The value at the end of this is 2000. Variables are not part of the transaction space. I haven't written a question like this in a long time, but was amused seeing it from Brent Ozar on Twitter and the range of responses. 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 - Administration
Changing nvarchar to varchar - I have a table with millions of rows in it. The character fields are nvarchar. Currently its only got a clustered index on an autoincrementing Bigint field. There is a requirement to start reporting on the table's contents. If  I add new non-clustered indices for reporting, its size will increase dramatically and inserts will slow […]
SQL Server 2016 - Administration
Cant connect from SSMS. - Any help would be appreciated. So for two days now I can't seem to figure out why I can use SSMS to connect to the instance locally. But remotely I can't connect. I am getting a this error: Cannot connect to MYSQL1100. Additional information: A netowrk-related or instance-specific error occured while establishing a connection to […]
SQL Server 2016 - Development and T-SQL
allocate / deallocate table - I need to delete a lot of rows from some tables. There are millions of rows and only a few thousands should be left afterwards. Based on experience this takes a lot of time and impacts other jobs that use the table. So what I would like to do instead is to: Copy the rows […]
Administration - SQL Server 2014
Windows Failover Cluster - Vmware Snapshot - I am hoping someone can provide some insight into this subject I have been working with SQL Server for several years, but have not had the pleasure of working much with the Windows Failover Cluster Service and Availability Groups.  In my new role I am responsible for both WFCS and AG and have a question […]
unable to take backup - hello, just yesterday, we got an alert that our backup job that i created in maintenance plans failed, the error code doesnt give me nothing to work with, it says: Started: 7:44:32 PM Error: 2020-09-02 19:44:35.79 Code: 0xC002F210 Source: Back Up Database Task Execute SQL Task Description: Executing the query "BACKUP DATABASE [master] TO DISK […]
SQL 2012 - General
Select unique records between several tables - I am looking  for an example on how to query several tables, around 50 tables, to find all unique records between them. I cant find anything other than a join on 3 tables.
How to write update statement to table statusvalues where chemical id have more - How to write update statement to table statusvalues where chemical id have more than one chemical status ? I work on SQL server 2012 I face issue ; I can't update status on table statusvalues where chemical id have more than one status as example 1241 must update status "chemical id have multiple status" because […]
Server Properties: Maximum Server Memory - We have a SQL 2012 Server that had the Maximum Server Memory set about 8 months ago.  We started to receive timeout errors from our applications and when we looked at the Maximum Server Memory it appeared to have reverted back to the default setting. Is there any process, such as a patch, update, or […]
SQL Server 2019 - Administration
How good is SQL server developer Edition - Hi, our management has decided to go with SQL Server 2019 developer edition on test servers. My concern is will there be limitations on using SQL Server developer edition box, when production SQL Servers are having Enterprise edition?  I have already told to my management that backups from developer edition may not work while trying […]
SQL Server 2019 - Development
SSIS Package calling a rest api with JSON outpu - Hello forum.  I'm having to query some ESRI rest api and returning some JSON output.  I have the link and I'm using a data flow using a script component as a source.  I have some of my C# code pulling the data but I'm getting an error, it seems that the esri link is requiring […]
Reporting Services
Color Coding data based on values - Hi Folks: We have SSRS report (2016) with 2 columns Qty1 and Qty2 and want the record colored (red) If the Qty1 and Qty2 are matching. The Qty2 column has records in 5 decimal places and we want to round off to 3 decimal when comparing the values. I need help with formula. In the […]
Upgrading Power BI Report Server from an older release to May 2020 - Hello, I'm looking for some advice from people who have updated an earlier version of Power BI Report Server (August 2018) to a newer release. In this case, the May 2020 release.  I have hesitated to do the upgrade because people are not reporting any issues and I fear that some reports or visualizations will […]
SSRS 2016
How many nested folders does SSRS Report Manager allow? - Hello - Does anyone know how many nested folders does SSRS Report Manager allow? How many folders does the first level allow?  Second level?  Third level? Any help will be greatly appreciated. Thanks! juniormint
Integration Services
Flat File Destination - Displaying Umlauts and Accents - Hello, I have a couple of SSIS packages running, the first package exports data from SQL Server 2014 and saves it to a file share, the second package picks up the file and loads it into Salesforce using the data loader. One of my users has complained that Umlauts and Accent characters do not display […]
Articles Requested
Color code text in SSRS - We have this: https://www.sqlservercentral.com/articles/dynamically-change-background-color-in-ssrs-reports-using-custom-code   However, can I get an example of how to color code negative values as red, and maybe a value that is above some range, say 1000, as green?
 

 

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

 

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