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

Daily Coping Tip

Start today by appreciating your body and that you’re alive

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.

Watching the Watchers

This editorial was originally published on Nov 10, 2011. It is being re-run as Steve is traveling for SQL Bits.

Those who mine data for patterns, solutions to problems, crimes, or any other purpose have tremendous power if the data they use can be drilled down into and focused on a particular individual. The European Union seems to be further along in protecting peoples' rights than the US, but US Senators want to try and close that gap. They are pledging scrutiny of government mining to try and ensure that someone knows what work is being done.

I'm not sure that helps us with private companies' trolling through our lives, but it's a start. Having some type of precedent set and some regulations give us a starting point for future laws to provide protection. And where better to start than with our government data mining.

I'm a little torn between how much data should be used and allowed to be used by companies. I enjoy having Amazon recommend things based on my past purchases and other's similar ones. It's handy and convenient. I like my banker knowing to recommend certain products based on my transactions. Or holding transactions when something seems out of character to protect me.

But I wouldn't want that data shared.

And I don't really want anyone looking for patterns to be able to drill down to the details of my digital life and connect the data to me the person. It's that key final step that I think makes a big difference between useful patterns and intrusive ones.

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

Find Invalid Objects in SQL Server

Nisarg Upadhyay from SQLServerCentral

This article shows how you can find which objects in your database might not be valid after schema changes.

External Article

Join Redgate at SQL Bits, March 15-18

Additional Articles from Redgate

From castles and dragons to swordfights and spells, this year’s SQL Bits will have it all. Make sure you don’t miss out on our great sessions, from Code Errors to Reliable Releases, to adding some PostgreSQL skills to your repertoire. Come and say hi to us at the Redgate booth! Get 10% off registering with 10REDGATE.

External Article

How to Install the AdventureWorks Sample Database in Azure SQL Database

Additional Articles from MSSQLTips.com

Learn how to configure Azure SQL Database and setup the AdventureWorks database for code testing and learn how to use features of SQL Server.

Blog Post

From the SQL Server Central Blogs - Continuing on the Journey of Azure Synapse Analytics

Chris Yates from The SQL Professor

Azure Synapse Analytics has always enamored me. With its analytics service capabilities bridging the gap between enterprise data warehousing and Big Data analytics, it provides the end users much...

Blog Post

From the SQL Server Central Blogs - Reading AFAS REST API Data with Azure Logic Apps

Koen Verbeeck from Koen Verbeeck

Recently I had to read some REST API data using an Azure Logic App. The data itself comes from AFAS, a Dutch SaaS ERP company. In general, the process...

SQL Server 2022 Query Performance Tuning

SQL Server 2022 Query Performance Tuning: Troubleshoot and Optimize Query Performance

Additional Articles from SQLServerCentral

Troubleshoot slow-performing queries and make them run faster. Database administrators and SQL developers are constantly under pressure to provide more speed. This new edition has been redesigned and rewritten from scratch based on the last 15 years of learning, knowledge, and experience accumulated by the author. The book Includes expanded information on using extended events, automatic execution plan correction, and other advanced features now available in SQL Server.

 

 Question of the Day

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

 

The Managed Instance Link

The Managed Instance Link feature was announced in Nov 2022. This is designed to do what with SQL Server 2017 and 2019? (as of Feb 2023)

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)

Locating the PVS

In a new SQL Server 2022 database, I want to enable Accelerated Data Recovery (ADR) to speed up recovery time. If I run this, where is the Persistent Version Store (PVS) located?

ALTER DATABASE VeryImportantDB SET ACCELERATED_DATABASE_RECOVERY = ON

Answer: In the primary filegroup for this database

Explanation: By default the PVS is located in the primary filegroup. You can specify a different one if it exists. Ref: Managing the persistent version store filegroup - https://learn.microsoft.com/en-us/sql/relational-databases/accelerated-database-recovery-management?view=sql-server-ver16#managing-the-persistent-version-store-filegroup

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
Missing perf-MSSQLSERVERsqlctr.ini - I attempted to install the latest CU (31) for my SQL 2017 server but received an error message stating "Service Pack Failure: MissingRegistryKeyException" due to a missing registry key. It appears that our SQL server is missing certain performance counters as I was only able to retrieve 57 row records after executing the command "select […]
SQL Server 2017 - Development
Transaction has no commit error - All, I have an unusual scenario. A developer sent me some code that has a BEGIN / COMMIT and a rollback right before the commit. It's all wrapped in a reasonable TRY...CATCH. The script builds some dynamic SQL INSERT statements using OPEN_QUERY, dynamic because the WHERE clause depends on some variables. The INSERT statements they […]
SQL Server 2016 - Development and T-SQL
How to remove special chars? - Hi everyone, So I have a xml file from which I am trying to import data into my sql tables. I noticed there are some special characters inside the file due to which I am unable to import data properly. Look at the below screenshot: Can anyone tell me what are there square boxes and […]
Error trying to add columns to code - Hi there. Thanks for code from my previous post and so many good working options. Now I want to add 2 new columns and it gives an aggregation  error. Appreciate any help. From this table, I have the code that selects the latest doctor visit record using the MAX function. If latest client record is […]
SQL Server 2019 - Administration
SSMS is filling up our C: drive -- installed on E: - Good day.  I didn't know where else to post this, so forgive my ignorance if this isn't the place. I have a situation that involves a single Windows Server with SSMS installed that has the only permissions to hit another organization for our Data Warehousing team.  There may be as many as 4 BIDS plus […]
Trigger on update when changed only desired XML tag. - Hello! I have a task to configure for the Skype for business database logging of user status changes (Available/Away/Offline/etc). i found source for this data in XML field with content like: 15500
To get a list of un-used columns in all tables in a database - I am looking to get a list of un-used columns in all tables in a database.  I would like the output to look like something like this. DatabaseName, SchemaName, TableName, ColumnName, etc If anyone has a handy script or any link, please share.  Thanks.
DBNETLIB] [ConnectionOpen (SECDoClientHandshake()).] SSL Security Error - Hi New server with SQL version 2019 has been created to host a DB for a Legacy App to use.  This is working fine. The App has not changed. I need to get this working on a test Server. Test Server with 3 instances on it 1. Version 2014, Development edition uses port 1433 2. […]
Hash Match performance issue - Hi I have a stored proc that is performing badly. When I look at the execution plan I can see a couple of instances where there are a large number of rows inputted into a hash match but the output is estimated to be only 1 row. The inputs into the hash match below are […]
SQL Server 2019 - Development
SQL Query to display having only values - I am having below -mentioned table1 and  I would like to display it as shown in the below table Can someone help me with the query Thanks in advance
SELECT with computed values - From a huge and ever growing table (tbl_Values) I need to select all records which conform to rules defined in another table (tbl_Rules). Each record in tbl_Values has a time_stamp (datetime) and a fvalue (float); the rules defined in tbl_Rules have a WeekDay (int), a HourOfDay (int), a MinValue (float), a MaxValue (float). Records from […]
Relational Theory
RIGHT-JOIN table not fetching all rows in WHERE clause - I'm trying to add an additional table (hrxoreturn) with RIGHT JOIN to return all records either with matching or  no matched records to other tables. When i exclude "count(distinct hrxoissue.issuedte)as 'Total Count per RX'" , the fetched rows goes to 49 rows  reading all the count in hrxoreturn table, but if i include count on […]
SQL Server 2022 - Development
Case and When Query - Hi All, I want to rewrite the below query using the Case and When statement Query 1 update [SF_Title_Update] set [Title_Proper]='Human Resource Management System Manager' from [SF_Title_Update] where ( title like '%Human%' and title like '%Resource%' and title like '%Management%' or title like '%HRMS%' ) and (job_level='Manager Level' ) and( [Title_Proper]=' ' or [Title_Proper] is […]
Dynamic Query - Hi All, I have to generate a dynamic query for the below mentioned keywords to update them in Title_Update column Keywords Recruitment Employee Engagement Performance Management Training and Development Compensation and Benefits Human Resource Diversity and Inclusion Also it should have the below mentioned Job Level Chief Level Director Level Head Level Manager Level Managing […]
Use a flag, or calculate, to retrieve counts - I'm working on a Holiday Leave system (for typically several hundred or more personnel).  Currently, a person may request leave (in the future) and each Leave request can have one of a number of Status values: Pending Approval Approved Declined Cancelled There is a report required to sum up these totals for an individual, broken […]
 

 

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

 

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