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

Daily Coping Tip

Be kind to you. Do something that brings you joy

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 Useful Cloud Tags

One of the things I've seen in working with cloud based resources is that you get a lot of them in your account quickly. A database might end up with a server, an IP address, a network, security groups, and more. A few clicks of the mouse in the Azure Portal can create a new Resource Group that doesn't just have the one thing you need, but 3, 4, or more other items.

In addition to the quantity, there are also the problems of namespaces in cloud resources. Some of the items you provision are publicly named in a domain, such as database.windows.net. In these cases, the resources need to be unique among all cloud customers. Just like domain names, this means that you might have collisions with your favorite name. While I might like jones.com, there are a few other people that would likewise prefer this. The rest of us might have to choose jones2.com, stevejonesincolorado.com, or some other variation. In large organizations, you might end up with LA34532345454.database.windows.net for an Azure SQL Database.

That means that the names of the systems don't make sense to anyone, and many of the people that need to use or manage them will not even know which resource belongs to which system. This has been true for servers in many organizations for a long time, even with their own domains. Often there is some document, perhaps stored on the root of the machine or in an online share, that provides more information for people accessing the system. 

The cloud makes keeping track of systems harder, and there is a greater need to classify, categorize, and tag resources. Most of the cloud providers have built extensive tagging systems that help users add metadata to various resources and search/filter by these tags. 

Today I'm wondering which tags are useful in the cloud? How do you decide which tags, or type of tags, to apply? You might choose to apply an application name, a business department or owner, or some other type of information that helps you keep track of which resources are needed and how to deal with them. Is there some guideline on the type of key-value pairs you use for tags?

I also would you want to easily have tags for on-premises SQL Server instances? We do have extended properties, but those are cumbersome. Would you want some sort of easy system query that retrieved all tags. Perhaps something like @@InstanceTags or @@DatabaseTags that retrieved all the data you'd stored in extended properties.

We are only seeing more and more resources that need to be managed, patched, and deployed. Tagging is one of the ways that helps our organizations keep track of resources, especially if we provision them and we move on to our dream job somewhere else. Let me know how you handle things today.

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

Working with T-SQL function AVG ()

Manvendra Deo Singh from SQLServerCentral

Learn about the T-SQL function, AVG(), and see how it is used in a few different cases.

External Article

The VALUES clause or building tables out of nothing

Additional Articles from SimpleTalk

The VALUES clause makes inserting literal values into a table simple and easy. In this article, Joe Celko explains how to use the VALUES clause.

Technical Article

Implementing ETL Logging on Lakehouse using Delta Lake's Time Travel capability

Additional Articles from SQLServerCentral

In this article I demonstrate how to use Delta Lake's time travel functionality for ETL logging along with steps to take to implement.

Blog Post

From the SQL Server Central Blogs - Refreshing Tables in Data Masker

Steve Jones - SSC Editor from The Voice of the DBA

Data Masker for SQL Server is a product that helps to change data for compliance purposes. It works well, but it isn’t intuitive in a few ways. We bought...

Blog Post

From the SQL Server Central Blogs - Setting up MinIO for SQL Server 2022 s3 Object Storage Integration

aen from Anthony Nocentino Blog

Introduction In this post, I will walk you through how to set up MinIO, so you can use it to work with SQL Server 2022’s s3 object integrations. Working...

 

 Question of the Day

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

 

Choosing Filestream

At what size should you consider using Filestream for storing blob data in the filesystem instead of a Varbinary column?

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)

SQL Server Collation

Where can I set the collation for data in a SQL Server 2019 database?

Answer: At the instance, database, column, or expression levels

Explanation: We can set collation at the instance, database, or column levels. We can also set collation in an expression. Ref: Collation - https://docs.microsoft.com/en-us/sql/relational-databases/collations/collation-and-unicode-support?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 2016 - Administration
Creating index for a very huge table - Hello, I would want to get some opinion on creating indexes on a very large table. My developer recently execute an index creation job and the job run for more than 30hrs until it ran out of transaction log space thus got terminated. I check the size of the intended table and it's super huge! […]
what minimum permission i should give to new login , new user and new schema. - Hi, I have made a new login, new user (as I have associated my database to login) and new schema. I need to know what minimum permission I should give to my new login, new user and new schema, so that the person should be able to create tables drop table and perform crud operations […]
SQL Server 2016 - Development and T-SQL
Importing XML into SQL Tables using SSIS package - Hi everyone, I have a XML file which consists of data like this: 1001 Ben
House no 280NYUS
street 100CaliforniaUS
  I have designed ssis package and Now I am able to move Individual data to Individual table. And Address data […]
Administration - SQL Server 2014
Unable to drop a user - I have a user 'Dev_User' in a new dev server which I am trying to drop and recreate. I generated a script using sp_help_revlogin proc from a an old dev server since SID doesn't match even though the password matches. This user has admin rights on the server and there are some applications which connect […]
Strange Write Statistics - Hi Experts, I ran the below query and for a table I am getting very high writes and its increasing every second. The table here is a master table which is having only 17 records?   TableName Reads Writes Supplier 13 13460167 SELECT TableName = object_name(s.object_id), Reads = SUM(user_seeks + user_scans + user_lookups), Writes = […]
Development - SQL Server 2014
How to get creole language - I need to update a report to show the month name in the specific language - creole. I use the function below which uses  sys.syslanguages  table. I need the month names for creole now but this table does not have Creole. Is it safe to update this system table and Creole? Any ideas? Thank you. […]
Looking for odbc connect parameters in msdb-database - hello, I want to monitor the odbc connections. In table sys.dm_exec_sessions I find all actually opened ODBC-Connections. But where I find the parameters of the ODBC-Connect-string? For example: An Access-Applications connects with the following parameters: "ODBC; Driver=SQL SERVER; Server= BlaBla; Database=ABC; UserID=Hans; Trusted_Connection=yes; Description=Wertet Summen aus; APP=Test.accdb" I am looking for this parameters. Have anyone […]
Select @XML.nodes with Name spaces Help Please error msg 2209 XQuery nodes - Hi All, I have spent a few hours after revisiting this serval times and have never come up with a working solution for Nodes which contain a space in name.  the node I want is called   Item param error Msg 2209, Level 16, State 1, Line 18 XQuery [nodes()]: Syntax error near 'Item'   This […]
SQL Server 2019 - Administration
TLS 1.2 - OK, I have been doing a lot of research, and I am continuing that research, into some issues we are having with out SQL Servers since the implementation of TLS 1.2.  We are under the gun to get all of these issues resolved very quickly.  As I have been researching, I have found that all […]
Working with field specifications - I was reading the book: "Database Design: For Mere Mortals" by Michael J.Hernandez. In it, he goes in to detail on field specifications. He writes: "Field specifications constitute the “data dictionary” of the database. Each field specification stores data on the characteristics of a particular field within the database." Here is an example of one […]
restore a specific table from a Full backup using Quest Litespeed - Hi, Is it possible to restore a specific table from a Full backup using Quest Litespeed without restoring the entire database? will it restore the tables with same schema without missing any keys and data.? will it overrides the table ? Any suggestions please. Thanks.
Read Only Routing Problem - Good morning All, I have a set up that consists of 3 servers (Srv1, Srv2 and Srv3) In this exmaple Srv1 is the pricinple. Read only routing is configured such that it should connec to Srv2, Srv3 and if they fail then back to the princple Srv1 The Read only Routing list looks like (Srv2, […]
Clarification on the database design process - I was reading the book: "Database Design: For Mere Mortals" by Michael J.Hernandez. In it, he goes into detail on the database design process. There is a section where he summarises it as best as he could: "Next we looked at an overview of the entire database design process. The process was consolidated into the […]
SQL Server 2019 - Development
Stats histogram comparison with data in table (Windows function) - Hi, I'm comparing the stats histogram with the actual data distribution from a table (for this example Person.LastName on AdventureWorks) like so: ;with e as ( select lastname, count(*) norows, ROW_NUMBER() OVER (order by (select 1)) rn from person.person group by lastname having count(*) >=1 ) select e.lastname , e.norows , e.rn , h.step_number step […]
General
Hey, I am trying to learning SQL on my own and I am stuck in an error. - I am trying to find a average from a column but all I am getting is an Unrecognised name error msg. This is the query. Select End_time - Start_time as time_duration, Avg(time_duration) as avg_time From table I am getting an error " Unrecognized name : time_duration" Where should i establish the column "time_duration" to perform […]
 

 

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

 

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