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

Daily Coping Tip

Be creative. Cook, draw, write, paint, make, or inspire.

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.

How Do You Experiment?

One of the things that DevOps asks software developers to do is experiment. Try new ideas out, get feedback quickly, and then choose how to grow or stop your experiment. This is great for features, and it works well for application software.

The general flow for this is to talk to customers, and then decide what to build. In some sense, this can work, but as I heard at the DOES Summit recently, if Henry Ford had asked his early on customers what to build, they'd have asked for a faster horse.

Customers are limited by their current experience. This includes not only end users, but for us database pros, the developers that build software. When they want to experiment, they often need some backing from the database to store information and query it.

If we want to help enable experiments, and allow our software to evolve, there are two things we need to deal with in experiments. One is schema changes, either through new data buckets in tables, or programmable objects, such as views, functions, and procedures Adding these, or removing them when experiments aren't useful, can be cumbersome and difficult. It's amazing how quickly we create dependencies and how slow we are to remove them.

The other area is in ensuring that we properly or appropriately, handle resource usage. Do we go back and tune queries, or restructure the way that we've indexed items to ensure that our system works optimally? Some tuning can be done early, and should be, but some requires some feedback to understand query patterns or data loads.

Today, I'm wondering how, or if, you experiment in database work. What works for you, or what doesn't? Or do you hate the idea of experiments in the database world and want more specification up front? Let me know with a comment.

Steve Jones - SSC Editor

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

 
 Featured Contents

A Quick Start to Running Python Code in SQL Server

Emmitt Albright from SQLServerCentral.com

With the addition of Python to Machine Learning Services in SQL Server 2017, you can now execute your Python code inside of SQL Server.

Securing Secrets in Azure DevOps

Additional Articles from MSSQLTips.com

Azure DevOps tasks often contain sensitive credentials and secrets that need to be appropriately secured and in this article I demonstrate how to implement different options.

SQL Monitor 11.0: Monitor SQL Servers hosted on Amazon RDS

Additional Articles from SimpleTalk

We’ve just released SQL Monitor 11.0, and for this latest version we partnered with Amazon AWS to let you monitor SQL Severs hosted on Amazon RDS. You can monitor these alongside your on-premises and other cloud-based servers, instances, and databases, giving you visibility in a single pane of glass. Version 11.0 also introduces new advanced tempdb monitoring metrics, and significant performance improvements.

From the SQL Server Central Blogs - T-SQL Tuesday #132: How Are You Coping with Pandemic?

Tracy Boggiano from Database Superhero’s Blog

T-SQL Tuesday is a monthly blog party in the SQL Community and this month is hosted by Taiob Ali (b | t) and it’s about a topic I could...

From the SQL Server Central Blogs - I get by with a little help from my friends : T-SQL Tuesday #132

Kenneth.Fisher from SQLStudies

Taiob Ali (blog|twitter) is our host for TSQL Tuesday this month and he’d like us to talk about how our ... Continue reading

 

 Question of the Day

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

 

Testing the Effects of PoSh

What parameter should I include if I want to see the results of (most) PowerShell commands, without actually executing the command?

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)

Which Version for the Backup

I have a .bak file that a colleague sent me. I want to restore this, but I don't know which version of SQL Server I need. What command helps me find out?

Answer: RESTORE HEADERONLY

Explanation: The RESTORE HEADERONLY command will give you the version you need. Ref: RESTORE HEADERONLY - https://docs.microsoft.com/en-us/sql/t-sql/statements/restore-statements-headeronly-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 - Administration
SQL input parameters are defaulting to nvarchar causing full table scans - When our applications are submitting SQL via ADO.Net, with input parameters, the parameter definitions are defaulting to nvarchar. If that field is defined as a varchar and an index on the database table, the index is not used resulting in a scan instead of a seek. We are converting from Teradata to SQL Server so […]
SQL Server 2017 - Development
SQL - How to compare data of a column while iterating row by row and insert new - I have the below data in an SQL Server(2017) table POS_ID Term Code Status IsActive TR 101 In Progress true TR 102 In Progress true TR 103 In Progress true CA 151 In Progress true CA 152 In Progress true DA 161 In Progress true The requirement is I want to iterate each row and […]
SQL Server 2016 - Administration
PARALLEL_REDO_WORKER_WAIT_WORK.: Not sure how relevant this may be.. - Attached file shows the top waits... PARALLEL_REDO_WORKER_WAIT_WORK.: Not sure how relevant this may be for this morning Latency reported by multiple users accessing a number of web pages and apps that connect to this server..  just seeing it first time But this wait type has been predominantly much higher than all other waits. Comparing to […]
Distributed Availability group - Is there a guideline or does anyone have any step by step process on removing Distributed Availability group between 2 servers properly? I am trying to beak it a part because the secondary server (forwarder) is old and ready to be decommissioned. This is how servers are setup: DAG between SQL1P (forwarder) and SQL2P (primary) […]
Administration - SQL Server 2014
What is reliable method to find all unresolved references? - I need to find all stored procedures that point to a table, function, a database that does not exist. I am using sys.sql_expression_dependencies built-in view for this. There are two problems with it. First, in some cases referenced object in this view is just an alias; and second, it happen to be a part of […]
Data type Date - Previously we had some issues with deadlocks caused by transaction that happen so fast that the current timestamp column is not accurate enough to prevent a collision. To prevent such an occurrence we need to change the data type used by the timestamp column in order to make it more precise, both for existing tables […]
SQL Server 2012 - T-SQL
Put something into each row in a GROUP BY statement - I have this script, which gives me correct info : SELECT datepart(yyyy, [Første reg# dato]) AS årgang, COUNT(*) AS antal, Model,variant FROM dbo.[Ark1$] WHERE model <> '-' GROUP BY model,Variant,datepart(yyyy, [Første reg# dato]) ORDER BY DATEPART(yyyy, [Første reg# dato]),model,Variant   A part of the result is: 1960 2 125-3 UOPLYST 1960 2 ES 250 1960 […]
Updating from previous row until next value is found - I am trying to create an update that will update a value from previous row until the next none null value is found then update with that value. For instance in my table there are 2 columns SeqNum and AcctNum. The SeqNum will always start with 0000003 and the AcctNum will have a value and […]
SQL Server 2019 - Administration
Upgrade SQL 2017 to 2019 - Hi I guess this question has been asked before - but I failed to find best practice recommendation. We have a SQL Server 2017 and need to upgrade to 2019. The plan is to just install the 2019 instance on same physical SQL Server as a second instance. Then move databases from the 2017 […]
PowerShell - ItemArray - Can anyone please explain to me what .ItemArray does in PowerShell? I read the doco but I don't understand it. I have an array of SQL instances using mixed names i.e. server.domain, server.domain\sqlinstance, server.domain\sqlinstance, portnumber I used a foreach loop to pass the items in the array to an Invoke-Sqlcmd  statement. I couldn't connect to […]
SQL 2012 AlwaysON migration - We have a SQL AlwaysON setup on windows 2012 R2 / SQL 2012 (to latest patch). We want to migrate to 2019. Can we add to the cluster and to the AlwaysON a Node3 and Node4 (Windows 2019 / SQL 2019) Then failover to Node3 and REMOVE Node1 and Node2. Will that migration work? Has […]
Raising errors between 1 and 13000 - Hello, I've been struggling with a task which requires me to raise a number of errors for testing purposes. Of course the time consuming errors are between 1 and 13000. I've managed to do them, but I need to do it several times on multiple test instances and I wanted to ask if there's a […]
Restore - what happens after 100% - Just curious. I restore databases very often as I am a developer. Some of them has a size, that means that it takes some time. I use to backup with the same version as I restore from. I am aware, that if i restore a SQL 2012 with a SQL 2019, the converting takes some […]
Amazon AWS and other cloud vendors
AWS Reserved Instance for Old Servers - We have a couple of SQL server instances(i2 and r3) from about 5 years ago. We are looking to reserve the instances now without upgrading to new, but I don't see any of these instances listed in the "Reserved Instance" section. In other words, the instances are not there to be purchased. I got to […]
Reporting Services 2008/R2 Administration
Table Performance Issues - Hi, there I have a SQL Server 2008 R2 database and recently I have had major performance issues (I am not a DB admin). The database is connected to a CRM and the CRM users call many queries through the CRM interface on the various tables in their day to day work. I was made […]
 

 

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

 

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