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

Daily Coping Tip

Be thankful for your food and the people who made it possible

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.

Admin Challenges Across Scale and Time

I've never been interested in working on large systems. I know some people relish the challenge, and certainly there is a lot to learn, but I've always valued my sleep and time with family. I like getting away from work, seeing my wife and kids, and I've found enough after hours work on (relatively) small systems to keep me occupied.

To be fair, I've often dealt with large in terms of numbers of systems, rather than a large single system. For some reason, managing 200-300 instances that have 50GB databases is much less stressful than a 10TB single instance, at least for me.

In 1999, I was offered a job managing a 13TB database on SQL Server v6.5. I declined that job, and was glad I did. I think a 40TB SQL Server 2017 instance is likely easier to manage, though maybe Taryn Pratt would have taken either challenge. I was interested to see her writeup on migrating a 40TB database recently.

Even if you don't have a large multi-TB system, the challenges Taryn faced are similar to ones I've had on smaller systems, where I was still space constrained. In some places, a 50GB system might be limited in storage, and you might encounter some of the same issues. You also might have the same moving target problem, where the information you are moving keeps changing and your processes struggle to catch up.

This is the type of documentation and evaluation that I'd like to see more people produce about their daily (or weekly or yearly) challenges. Having examples of what worked, maybe what didn't, and the thoughts behind solving problems helps others learn and grow their skills. Even if you only write this for internal co-workers, it's a good learning experience.

It's also good practice for your communication skills, which are going to be very important in the new normal of pandemic work environments.

I'd love to publish more stories like this, of how you solved the challenges you face as a developer or DBA. If you can write about things, send me a draft. If you need help anonymizing things for your employer, I'm happy to help. If you don't want to do this publicly, at least consider documenting this type of effort internally. Others might learn, and you'll have a nice item to present to your boss at review time.

Steve Jones - SSC Editor

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

 
 Featured Contents

Calling Procs from PowerShell with Parameters

FrankDolan77 from SQLServerCentral

Building on his last article, Frank shows how to add parameters to your stored procedure calls from PoSh.

Getting started with SQL Server stored procedures

Additional Articles from MSSQLTips.com

In this article we look at different examples of creating SQL Server stored procedures.

Introducing SQL Change Automation 4.3

Additional Articles from Redgate

The latest version of SQL Change Automation now integrates with SQL Clone to let you use a snapshot of your database’s schema as a baseline. This simplifies migration development in complex databases, avoiding problems like invalid objects or circular dependencies, and you can verify migration scripts on a copy of the currently released database.

From the SQL Server Central Blogs - SQL on-demand in Azure Synapse Analytics

James Serra from James Serra's Blog

The new SQL on-demand (to be renamed SQL serverless) offering within Azure Synapse Analytics opens up a whole new world of getting insights into data immediately, at low-cost, using...

From the SQL Server Central Blogs - Extended Events Gets a New Home

SQLRNNR from SQL RNNR

One of the most versatile and awesome power tools given to SQL Server now has a new home! This new home will serve as a fabulous repository of extensive...

 

 Question of the Day

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

 

Holding Dirty Pages

What must happen before a dirty page is written to disk?

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)

Finding the Average Sale in R

I have a dataframe in R, called sales, with a column that stores the revenue amount (Revenue). I want to get the mean of all rows in this dataframe. Which expression will return this?

Answer: mean(sales$Revenue)

Explanation: The mean() function will take the column as a parameter. The dataframe name needs to be supplied as well. Ref: mean() - https://www.r-tutor.com/elementary-statistics/numerical-measures/mean

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
Stored Procedure with Money Value - hi everyone, I've a "problem" with a Stored Procedure and .net application because two values (money) are managed as double and this generate a mismatch with currency (should be 187,50 but is 18750). In SQL, I created a User Table and SP: CREATE TYPE tbl_FIC_InvoiceGuest AS TABLE ( Invoice_Token nvarchar(50) NULL, Invoice_Total money NULL, ) […]
How to compare strings by letters in certain places - Hello All, I need help to compare strings, please. For example, I have two strings with various words: one has six letters long words and the other - with five. I need to find out the words which have certain letters in certain positions. For example I want to see Betty for five letters and […]
SQL Server 2016 - Administration
SQLServer2016 SP2 CU14 - Hi, Version: Microsoft SQL Server 2016 (SP2) (KB4052908) - 13.0.5026.0 (X64) Mar 18 2018 09:11:49 Copyright (c) Microsoft Corporation Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2016 Standard 10.0 (Build 14393: ) (Hypervisor) We would like to install latest patch CU14 .But Last time CU12 installation was failed in this server. Can we […]
SQL Server 2016 - Run Jobs on Dynamic Logical Schedule - Hello, In SQL 2016, I currently have monthly, weekly and daily maintenance plans that run on a fixed schedule. As a new requirement, I need to run it more dynamically than on a fixed time. The plan is: 1. If 1st of month - then run Monthly job 2. Then check if this is a […]
SQL Server 2016 - Development and T-SQL
sql2016 - if column cell changes, insert value into another column cell - How can I calculate or insert TrimWgt (17.15 from MasterRolls value =3) and (17.15 from MasterRolls value = 4) into another column if the MasterRolls column increments or different from the the previous. If I had another column in the table or I can create another table. Please assist. My table is updating every 30-60 […]
Development - SQL Server 2014
PIVOT table with more than one aggregate and for only weeks with data. - I need help to pivot my sql output for Class with aggregates of QTY and CUBES for WEEKS. Some rows will only have one of the classes. I would like to end up with something like this.   SELECT Datepart(wk, ompcreateddate + 84) AS week, CONVERT(VARCHAR, ompcreateddate + 84, 101) AS date, cmopostcode AS Zip, […]
SQL Server 2019 - Administration
Azure Data Studio and Jupyter Notebooks - Trying to install the PowerShell Kernel for ADS and it wont complete the download, this I am guessing is down to our policy to no longer allow connections to anything using the older TLS/SSL protocols, so it's blocking the download.   Anyone know of a way I can force ADS to use a different version […]
SQL Server 2019 - Development
SSMS SQL Editor "shortcut in the current line" - My fingers were fumbling at the keyboard in the SSMS SQL query editor window, and I ended up with a little [->] icon in the gray gutter bar on the left (where break point icons show). I knew approximately the keys I was working with and searched the Web. On this page: https://docs.microsoft.com/en-us/sql/ssms/sql-server-management-studio-keyboard-shortcuts?view=sql-server-ver15 I found […]
Reporting Services
SSRS page footer doesnt go all the way at the bottom of each or any page - Hello, I have a report almost like an invoice, and i put a page header, and it works, always appears at the top of the ssrs report page no problem. THE PROBLEM.... i have a page footer, and there is a gap between the bottom and the invoice totals etc., i attached a screen shot, […]
TextBox Property>Action>GotoURL for Multiple Values? - Hi I am using two stuff commands in my query. One gets the date of an action, there can be more than one and it was requested to have them strung along do it looks like 1/1/19,2/1/19,3/1/19 etc.... The other stuff command builds a url so the report can link back to the page for […]
SSRS 2016
How to access SSRS out of network - Hi All, I and new to SSRS and have Installed and configured a Reporting Service in my client (Its working in my network and users can access it). I want to test it at first to find out if the users can access to my reports via Internet?(because the final server which is going to […]
SSDT
SSIS dtexec Error - The 'OraOLEDB.Oracle.1' provider is not registered. - Hi I am have one SSIS package that connects to Oracle and pulls the data. I am trying to execute this package using DTExec utility. "C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\DTExec" /ISSERVER "\SSISDB\\\.dtsx" /SERVER "" But I am facing oracle connectivity error "The 'OraOLEDB.Oracle.1' provider is not registered on the local machine." continuously. I have designed […]
Strategies and Ideas
Need help resisting falling back to dimensional/snowflake schemas - In a structure for an International business with a SalesOrder and SalesOrderLine, a data model needs created that answers these questions: 1. Show me which SalesOrders are in the sale region of South-East Asia 2. Show me the status of each sale order item. 3. Show me the total sales against each sales region compared […]
Integration Services
Import Active Directory objectGUID using .Net Provider for MS Directory Services - For a few years now I have been using SSIS and a ".Net Provider for OleDB\OLE DB Provider for Microsoft Directory Services" Connection in to extract Active Directory account information into a text file, so that I can cross check AD user accounts with accounts in older "downstream systems" that can't talk with Active Directory.  […]
SSIS - How to convert DateTime from ISO format - Hello, In my source file having DateCreated column as ISO format string like '2020-08-05T05:50:49.844Z'. I want to convert from ISO date string to DateTime2 in SSIS. Please advice best way to achieve this. Thanks, Sabarish
 

 

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

 

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