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

Daily Coping Tip

Be a realistic optimist. Focus on what could go right.

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.

What Do We Want to See in SQL Server?

I like the feedback system that Microsoft built for SQL Server. This used to be the Connect system, but all the bug reports and feature requests are now at feedback.azure.com. That's the place where you can send notes to Microsoft or vote on those that others have submitted.

In case you are wondering if this makes a difference, it does. Years ago, there pushback for Service Packs from Microsoft, and after a lot of lobbying from myself and others, and a number of votes, Microsoft released more Service Packs for a few versions. They've also made a few other changes in the product, or fixed bugs when enough people vote. Not always, but it does happen at times.

When this system was first released, I wondered if Microsoft would email a digest or some list of items that they had triaged of how the various items were rated. I could see this as a way customers might learn what others think is important, as well as what Microsoft sees as feasible. Maybe where would be some repeat voting that could influence the products' direction.

Recently I saw Brent Ozar posted the top 10 items by votes with a few comments. Of the items on this list, I found some interesting ones. I know STRING_SPLIT gets an ordinal in Azure and SQL Server 2022, so that's one item that MS responded to. I see a few SSMS ones, which are always interesting to me. I'd hope that MS would include a dark theme and the (maybe) the debugger back in as many people request those features. I'm not sold on the debugger, and it wasn't always stable for me, so I wouldn't use it, but lots of people like the idea of a debugger. Maybe if it were limited to the dev edition?

Microsoft looks at the feedback, but the feedback isn't a vote in their mind. It's a metric that helps them triage and decides when things are important enough to work on, assuming the effort isn't extremely high. Working in a software company gives me a better appreciation for the decisions made on which features to include or not, especially given the long-term support effort for any features.

It can feel hopeless when you vote for something and Microsoft doesn't build it, but when enough people, especially big customers, want something, it gets built. If you look through the top items, a few have been added to SQL Server 2022. Personally, I want a FOR CSV along with a BULK EXPORT command. I appreciate some difficulties here and possible permission/security issues, but this would be very handy.

What changes do you want today? Is the dark theme or the debugger at the top of your list or is there something else?

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

How to Format Dates in SQL Server (Hint: Don’t Use FORMAT!)

Jeff Moden from SQLServerCentral

Here's why you should NEVER use the FORMAT() function in SQL Server.

External Article

Generate Random Dates in T-SQL

Additional Articles from MSSQLTips.com

In this article we look at how to generate random dates in SQL Server to build a sample dataset along with code and examples

External Article

[From the archives] 5 things to look for in a 3rd party database monitoring tool

Additional Articles from Redgate

Are you evaluating the effectiveness of your homegrown database monitoring tool or looking at investing in a 3rd party one? This helpful blog post suggests 5 things to look for in your evaluations.

Blog Post

From the SQL Server Central Blogs - Notes on SQL Saturday New Jersey 2022

Steve Jones - SSC Editor from The Voice of the DBA

I was honored to attend the first SQL Saturday in New Jersey last weekend. I consulted with and helped the organizers get the event going and executed. I made...

Blog Post

From the SQL Server Central Blogs - Run Glenn Alan Berry’s Diagnostic Notebooks Everywhere

Tracy Boggiano from Database Superhero’s Blog

As part of starting a new job you need a way to get a good inventory of basic information of SQL Server instances.  Once you
The post Run Glenn Alan...

 

 Question of the Day

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

 

Performance Monitor Data

I want to check some performance counters on a remote SQL Server. I have a query window open to the database. What is the easiest way to query a performance monitor counter, such as the Logins/sec from the SQLServer:General Statistics object?

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)

Configurations that take effect on RECONFIGURE

I am experimenting on a development instance with changing some configuration options using sp_configure to try and improve performance. I know that these values are stored in sys.configurations. I am also aware that in production, I am not supposed to change values that require a reboot.

How do I query those values that I can change and have take effect using the RECONFIGURE statement?

Answer: Query sys.configuration for values which is_dynamic=1 takes effect after reconfigure.

Explanation: Those values that are set with is_dynamic=1 are those that take effect when RECONFIGURE is run and no reboot is needed. Ref: Sys.configurations - https://docs.microsoft.com/en-us/sql/relational-databases/system-catalog-views/sys-configurations-transact-sql?view=sql-server-ver16

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
AG issue - Few databases  are not in sync  in an AG   as we did not find  any  errors on secondary  replica . any query  to check the  last log backup  on secondary  server  and databases are in huge size  (1TB).  How to resync  database with primary  with out  dropping and adding  database in  primary  by  restoring full […]
Blocking with replication monitor - Hi SQL Experts, I opened the  replication monitor. I noticed it is causing frequent blocking. When I noticed it is showing create index statements but I didn't create any indexes. What it will happen when you open the replication monitor & why it is causing blocking?
Log backup job running long time - Hi, We have log backup job running daily 5 times. One time run is taking 4-5 times longer than the other runs daily. The backup size is same for all runs. How can we identify why it is taking long time for that particular time? We have DBCC check job scheduled 2hr before that log […]
Anonymus user for existing login in SSAS profile - Hi, We have SSAS installed. It is connecting remotely and loosing connection the connection immediately. When I run the profiler when it is first connected it is using the credentials and showing the permissions as OLAPdatareader in the profiler but immediately it is showing as anonymous user in the profiler and lost the connection to […]
SQL Server 2017 - Development
Archiving big table - Hey All, We have a very big table which stores transaction data and it is SCD Type 2 table. Records are identified by ID and effective date columns, primary key on these two columns. Table has grown close to 500GB in size with 1.4billion records.  2years ago we had moved records older than 2018/03 to […]
SQL Server 2016 - Administration
Permissions for a login - We have a login with a db_datareader only permissions. However, this login cannot see stored procedures in SSMS object explorer and cannot select from sys.procedures (only built-in diagram-related sp are listed there). What extra permissions should we give to a login to be able to see all stored procedures (not to execute them) and still […]
SQL Server 2016 - Development and T-SQL
Missing Data(finding the root problem) - I have this function running(see code). I would like to select data beteen dates e.g 30-06-2022 to 31-07-2022. Specificaly for columns Eligible, Fuel Levy, Claimable and % Eligible of purchase. I am gettig zero for these columns. Is my code the reason i am getting these errors or my data missing. More of the views/tables […]
Development - SQL Server 2014
SQL Using a PIVOT to Convert row data to column - Hello, Im trying to get a Pivot to work , but its retuning a NULL . I tried various thing , like using Partition with Row_number as well , the below is the scipt but return null. Basically, I'm looking for the Meshtype  to be the column    i.e Fine, coarse and Dry to be […]
SQL 2012 - General
MS SQL Server 2012 Bible, any opinions on this book? - Hello, the book MS SQL Server 2012 Bible is on O'Reilly's daily deal and I was wondering if anyone had any opinions or thought on it. I have been learning how to work SQL queries and databases at work for a project and am trying to decide if this book is worth buying.
SQL Server 2019 - Administration
Command-line installation failure - Detail.txt in use - Hi. I'm having a problem (on 2 different servers) performing a command-line install of SQL2019 with the error: The process cannot access the file 'C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\Log\20220802_031252\Detail.txt' because it is being used by another process. Any ideas what might be causing this? Thanks.
SQL Serer 2019 Mikn Worker Thread Calculations - I have looked at Max Worker Threads for SQL Server Always on Availability Group databases And AlwaysOn Availability Groups: What not to do when adding databases I'm trying to calculate minimum required worker threads on the primary using this formula: SELECT AG = D * (LCWT + (LSWT * SRC)) +MHWT Knowing that I have […]
SQL Server 2019 - Development
Count a new field in SQL statement - Hello all, I am trying to find a query that bring results like on the example. Thanks a lot all and best regards,
Calculate a new field in SQL statement - I have need calculate new field on this logic Is there way to do in SQL instead of procedure or function We have invoice id and item line item and we have credit memo which apply to line item Line Item 1 = 2098.76 Line Item 2 = 699.59 Apply CM Amount -2798.35 to both […]
SQL Azure - Administration
Password management in SQL MI for Sysadmin account - Hi, I've a requirement to provide temporary access for a sysadmin account. Each time a user requires access, temporary password needs to be created for the specific login. I've heard Password management tools like Cyberark can be used for it. Is there an inbuit tool for SQL MI password management or any open source tool […]
Amazon AWS and other cloud vendors
New to AWS - I am very new to AWS and trying to figure out how to do a few things but I am getting a bit overwhelmed. I have code that I put on an EC2 instance and it is connected to RDS. I can look up the EC2 generated url and see the data I expect 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

 

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