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

A Simple Solution

In general, I like simple solutions to problems (and simple songs). They can take work, but a simple solution means it's easy to explain to others, easy for others to refactor/modify, and we limit the amount of effort required to ensure others can use the solution. Sometimes I see very clever engineering solutions, but they become cumbersome to implement and maintain, or worse, no one other than the author understands how they work.

In any size organization, that's a piece of technical debt that can cause problems over time.

When I see a simple solution, I feel a bit of joy. I got that recently with a blog post from Microsoft on how to transfer your CLR code to Azure SQL Managed Instance. While moving CLR code can be a pain, as you are moving a binary object, this post suggested using MI Link. This is a feature designed to replicate between a local SQL Server and MI, which isn't something I think a lot of people want, but some do. I don't know if I'd want this permanently set up, but as a way to move code around, this is very simple and easy way to move this code in a one-time shot. Perhaps as a way to set up a test from a local instance to the cloud.

This isn't my ideal way to move code around, as I prefer to have a specific pipeline dedicated to deploying code. However, I also think that this is a nice simple solution that might be easier in some situations. I like ease, and I like effectiveness, as long as I'm not sacrificing something more important, like performance.

I see lots of creative solutions built by customers, often built by some smart people. However, they become quickly complex, and they are hard to explain to others in the organization. It can be difficult to trust anyone other than the author(s) to maintain the solution across time. It can be even more challenging when new staff onboard and never get an explanation of how or why something works.

I aim for simple solutions, and those that I can easily explain, and others can easily pick up and understand. I'm curious today if you've seen complex solutions that were overkill, or ingeniously simple ones you admired.

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

The Mastering Azure Data Studio Series

Steve Jones - SSC Editor from SQLServerCentral

A list of articles in my series on Azure Data Studio along with a few other links.

Technical Article

Introducing the New Stars of Data speakers for PASS Summit 2024

Additional Articles from PASS

Three new speakers will be taking to the stage at this year's PASS Data Community Summit for the New Stars of Data Track. Sessions will be delivered by Haripriya Naidu, Vitalija Bartusevičiūtė, and Jarid McKenzie!

External Article

LIKE Constraints

Additional Articles from SimpleTalk

In this article, I will cover a bit about the LIKE operator, including how it works, and a bit of history about why it is like it is. After establishing this, I will discuss a bit about how you can (and should) use the LIKE operator in your CHECK constraints to strengthen your data integrity.

Blog Post

From the SQL Server Central Blogs - AWS RDS PostgreSQL Restore to a Point in Time

Grant Fritchey from The Scary DBA

One of the single biggest reasons to go with a Platform as a Service (PaaS) offering like AWS RDS are the things it does for you, like making it...

Blog Post

From the SQL Server Central Blogs - Finding nested references

Zikato from StraightforwardSQL

I originally planned this post just as an answer to DBA Stack Overflow question: How can I get the list of tables in all the stored procedure? After preparing...

SQL Server 2022 Administration Inside Out

Site Owners from SQLServerCentral

Dive into SQL Server 2022 administration and grow your Microsoft SQL Server data platform skillset. This well-organized reference packs in timesaving solutions, tips, and workarounds, all you need to plan, implement, deploy, provision, manage, and secure SQL Server 2022 in any environment: on-premises, cloud, or hybrid, including detailed, dedicated chapters on Azure SQL Database and Azure SQL Managed Instance.

 

 

 

 

 Yesterday's Question of the Day (by Steve Jones - SSC Editor)

Setting Emergency State

Which server role(s) can set a database to the Emergency State?

Answer: sysadmin only

Explanation: Only sysadmin members can set a database to the emergency state. Ref: Database States - SQL Server | Microsoft Learn

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
Call Dates Effective Range - Hi Everyone, I have the data in the below form : Desired output: Here what I did is I made a range of dates of the same year in 1st image using the call date start date(in Select) and now I have the 1st date of the year starting to the day before the effective […]
Development - SQL Server 2014
Need help on results output - Hi guys. I need help  with query results output. I have the following table: create table MyTable(HH int,F int,T int,Val int) insert into MyTable (HH,F,T,Val) values(2,6,7,11), (2,6,10,1), (3,7,6,12), (3,6,7,17), (4,6,7,15) I need to show those F/T values on the same HH. Something like this HH    F     T     VAL     F     T  […]
SQL Server 2019 - Administration
SSRS configuration issue - cannot connect to SQL Server - I had some issues with a local (development computer) Report Server where the configuration manager, Report Builder apps, etc. would not connect to the SSRS. The service was running and the DB's were accessible through SSMS. After not getting any help I decided to uninstall SSRS and reinstall. During the install process, at the Database […]
SQL Server Transaction Replication Issue: BIT Columns Not Refreshing - Hello Everyone, I have a database that is being copied to six subscribers with several publications. I have noticed that sometimes, when updating the bit data typed column, the updates are not being sent to all subscribers. Out of six, five subs are working perfectly while one is not. I've also reviewed the schema options, […]
Cluster Timeout Settings to handle transient network outages - I have an Availability group with 2 replicas on the same subnet.  We've been experiencing short network outages that last a few seconds and cause connections to timeout.  This causes the AG to fail completely (not failover automatically) and we have to manually bring it back online since the DBs are marked "not synchronizing" on […]
Question about SQL Certs and DNS aliases - About 15 years ago we started creating DNS aliases for each database. This allowed us to move databases without needing to change client connections. We now use these aliases in all applications, reporting, ETLs, etc... When we upgrade SQL we create new servers and migrate the databases, using the aliases made this simple. We also […]
SQL Server 2019 - Development
SSIS Package runs on one server but getting an assembly component error on anoth - I posted this over on Stack Overflow and got bupkis and was hoping someone over here would be able to help me. I have an SSIS package that has been tested, and ran in Visual Studio 2019. It was originally created, tested, and ran in VS 2017 but when I started having the issue I […]
Integration Services
Developing with SSIS outside sql server - For 15 years I worked with tens of SSIS instances with various customers, always from a remote session. I am used to setting up an RDP to the SSIS server and then using Visual Studio / SSDT (as installed on server) to develop. At my current job I want to work with SSIS , but […]
Suggestions
I don't want to be a PITA here...but - Can someone explain to me why, when I post something, so many times the first attempt rejects me with 'Are you sure you wanted to do that?' and makes me submit my comment again and even then sometimes times out and makes me try a third time?  And then sometimes it even puts my comment […]
SQL Server 2022 - Administration
Trying to add some specifications to existing audit log in sqlserver but not wor - Trying to add some specifications to existing audit log in sqlserver but not working 1. Already audit log is in disabled state in server level and in database level , audit log is disabled but cannot do audit add specifications in sql server when I tried to run the specifications its giving below error Msg […]
Password change effect in SSRS - Installed the SSRS and setup the unattended execution account. After setup SSRS, changed the domain account password in AD & apply the same password in Report server configuration manager for unattended execution account. But Getting the below error. The report server has encountered a configuration error. Login failed for the unattended execution account (rsserver configuration […]
SQL Server 2022 - Development
BUY WEED Online, WhatsApp +1(615)314-6286,CANADA ONLINE, free shipping. - https://lumpysfarms.com/   BUY WEED Online, WhatsApp +1(615)314-6286,CANADA ONLINE, free shipping. ORDER CANNABIS CANADA, BUY CANNABIS ONLINE USA, UK, EU EMAIL: larrykarius247@gmail.com Telegram: https://t.me/lumpysflowere WhatsApp: +1(615)314-6286 Website: https://lumpysfarms.com/ Order weed online , buy weed online, Buy cannabis online, Order cannabis online without a medical card from Lumpys a legit online dispensary in USA, online dispensary Ohio […]
Start SSMS Activity Monitor with Task State = (NonBlanks) - I've been searching for this and cannot find any mention or discussion on it yet. So, I'll try here where I seem to have the best results for help...  I would like to have Activity Monitor start with the 'Task State' column having the '(NonBlanks)' filter selected by default [rather than (All)]. Does anyone know […]
Adding rows from Lookup where not in Data - I'm trying & failing to add all possible codes from a Codes table, where those codes are not present in the data. Here is a simplified set of data: DROP TABLE IF EXISTS #Codes CREATE TABLE #Codes([Standard] VARCHAR(4), Code VARCHAR(6)) INSERT INTO #Codes ([Standard], Code) VALUES ('STDA', 'Code1'), ('STDA', 'Code2'), ('STDA', 'Code3'), ('STDA', 'Code4'), ('STDA', […]
Text column is taking More time while Querying, Need to Replace DATALENGTH - select * from dbo.resolutions r where R.documentid = 828222222 and DATALENGTH(r.resolution_text) > 0 resolution_text Text column is taking More time while Querying, Need to Replace DATALENGTH, when  i replace datalength condition as  "r.resolution_text is not null" the above query is returning data
 

 

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

 

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