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

Daily Coping Tip

Remember that self-care is not selfish. It’s essential.

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.

Emergency Preparedness

Emergency Preparedness is a pretty hot topic this year. Honestly, it should be a hot topic every year. Sure, with Covid, this year has had a special tang to it. However, we’ve seen fires in California, just as in other years, tropical storms and hurricanes, just as in other years, and all sorts of disasters around the world, just as in other years. Making preparations for a few days, or weeks, isolated in your house, or, being able to walk out of the house within 10 or 15 minutes and survive for two or three days on what you carry, these things just make sense.

Further, to make these work, it’s a great idea to practice. Bugging out, running from your house because of a natural disaster, or a not so natural one, isn’t easy to do, unless you practice. Practice can be easy & fun. We call it camping. Same idea for bugging in, staying put because of something like Covid. Practice is necessary here too. It’s easier to practice this. Don’t go shopping for a week and see how you do.

Just as emergency preparedness in the physical world requires planning and then practice to test those plans, so it should be in your IT infrastructure. You’ve implemented a failover architecture? That’s great. Have you tried failing it over to see how it works? With the applications attached? Now fail it back. You’ve got an off site location where you can restore your databases? Excellent. Do you know how to get there? Have you driven the route? Can you get there more than one way? Have you tested the restores? On, and on, the questions pile up quickly. Have you built, and have you tested, an emergency plan?

If not, best get on it.

Grant Fritchey

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

 
  Featured Contents

Configuring SQL Server Always on Azure Servers(Iaas)

VishnuGupthanSQLPowershellDBA from SQLServerCentral.com

Configuration of SQL Server Always on in Azure Virtual machines differs in multiple ways comparing with the on-premise Implementations. This article will help you to have a handy note to configure always on in Azure servers from a DBA perspective.

Transfer data from SQL Server to MySQL

Additional Articles from MSSQLTips.com

In this article we look at how to use PowerShell to transfer data from SQL Server to MySQL.

From the SQL Server Central Blogs - Extended Events: Filter on Stored Procedure Name

Grant Fritchey from The Scary DBA

I just received a question about Extended Events: What about filtering on the stored procedure name. You know I love writing and talking about Extended Events. The answer is,...

From the SQL Server Central Blogs - Certified Azure Database Administrator (DP-300) – Passed!!!

gbargsley from GarryBargsley

Deja Vu, back in March I saw a Tweet about the beta Microsoft Certification Exam DP-300. I work with Azure and Databases, so I thought to myself why not...

 

  Question of the Day

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

 

Syncing Git Files

Which command will send the changes I've made in a local git repository to a remote system?

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)

Getting Debug Messages in PowerShell

I have a script that uses Write-Debug to output certain debug information to the console. How do I get this information to appear for the user. I am testing with this script:

write-host("starting") write-debug("debug 1") write-debug("debug 2") write-host("ending") 

If I run this from the command line, how do I get the debug messages ("debug 1" and "debug 2") to appear without stopping the script from running?

Answer: Set $DebugPreference="Continue"

Explanation: $DebugPreference is used to control some behavior of Write-Debug. Ref: About Preference Variables - https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-7

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
Reorder rank upon condition - What  i like to do is to rank that when a customer address come more than once ( like 1390 des Rosiers)  the first  of the group should be a uneven number while respecting the order in NoSeqTrt ? Hoping that my explication is clear. Thanks in advance for your advice. Cheers
SQL Server 2016 - Administration
SPN for Always On Listener - Suppose I have the following two node cluster configured with an AG.  All are on the same domain, use the same service account, and have named instance SQLInstance. SQLA and SQLB run on port 123 and SQLC (listener) runs on port 789 Node1 - SQLA Nodel2 - SQLB AG Name - TestAG AG Listener - […]
Unexplained tempdb growth - I left for vacation 2 weeks ago and while I was out, the tempdb drive had to be extended because it was growing like crazy.  Before I left, I was monitoring some connections in the Activity Monitor; and upon leaving, I just locked my desktop. Would the Activity Monitor cause the tempdb to grow like […]
Planning a SQL Server Reporting Services (SSRS) 2016 installation - Hello experts, I'm trying to learn the architectural concepts of SSRS. Does SSRS have to be installed on the same host as the SQL Server that houses the ReportServer and ReportServerTempDB databases? Or can those dbs be hosted on, say, a separate cluster with the SSRS "front end" being set up as a web server? […]
Linked server to Oracle timing out - Hello experts, I am trying to get a linked server to an Oracle database to work. But I don't know why it keeps hanging when I try to expand the Tables section, with this error: Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft […]
SQL Server 2016 - Development and T-SQL
SUM and JOIN 2 columns with different tables but it duplicates results - Good day! Need help re SUM and JOIN 2 columns with different tables but it duplicates results here's the sample data tables; Transfer Shipment table; Loc Code   -   Item No   -   Description   -   Description2   -   Variant Code   -   Qty Location1       Item01         Active                Black […]
Remove spaces from an unstructured Text field - Hi Forumers, I've got a table with several Notes fields and I'm trying to remove ALL spaces from the text & replace with an underscore so the text is still easy to read. I've used REPLACE with LTRIM & RTRIM which fixed most spaces but not all. I found when I pasted the text into […]
Administration - SQL Server 2014
SQL server index recommendations different from one environment to another - Hello, happy friday, SO i have 3 servers, each runs same application, same version, same database, BUT, i use Brent ozar BlitzIndex to help me out on index recommendations, when i run it on 1 environment, it gives me recommendations from changing index, or adding a new, or removing. When i run it on the […]
Development - SQL Server 2014
Parse Semi colon data in seperate columns - Hi: I have semi-colon separated data in one column and I would like to split that in separate columns. CREATE TABLE #tblTest (FileData nvarchar(MAX)) INSERT INTO #tblTest values ('TEST1;Testing 123;') INSERT INTO #tblTest values ('TEST2;Testing.234;') INSERT INTO #tblTest values ('TEST3;Testing 345;') INSERT INTO #tblTest values ('TEST4;Testing 456;') INSERT INTO #tblTest values ('TEST5;Testing5.67;') SELECT * FROM […]
GROUP BY and SUM in inner join - My project contains below TABLES and sample data for it :: CREATE TABLE [DBO].[TBL_Budget] ( BudgetId INT IDENTITY(1, 1) NOT NULL ,BudgetName NVARCHAR(200) NOT NULL ,BudgetType INT NOT NULL ,BudgetAmount INT NOT NULL ,CONSTRAINT PK_Budget PRIMARY KEY (BudgetId) ) INSERT INTO [DBO].[TBL_Budget] VALUES ('B1',101, 500000) INSERT INTO [DBO].[TBL_Budget] VALUES ('B2',201, 1000000) --------------------------------------------------------------- CREATE TABLE [DBO].[TBL_School] […]
SQL Server 2019 - Administration
Table Create Date issue? - I'm running SQL Server 19.  Is there a known issues with the table create date?  (search didn't yield anything)  The Create and Modify date are taken from sys.all.objects. I created a database on July 17th and created most of the tables on the same date. Now looking at the Create Date (as part of a […]
SQL Server 2019 - Development
SSIS Expression Task - Does it even work? - Okay, so I gave up on setting a string variable... and now I'm trying to just set a value for a Boolean variable, based on whether or not a variable with an integer row count is greater than zero or not.    This continues to fail with the error: Error: The wrapper was unable to […]
SSIS Expression Task - Can you set the value of a NON-Boolean variable? - From what I've seen online in various Google searches, folks have repeatedly claimed to be able to set the value of a variable using an Expression Task, but then the only examples show it setting a value for a Boolean variable as opposed to any kind of string or numeric type of variable.   I need […]
SSDT
how to pass datetime variable from Execute SQL task to the execute process task - i have created two datetime variables in execute sql task and wanted to pass those variable to executed procees task following it.  I was able to create the variables in the result set of Execute SQL task but they are not passed on to the next task. any suggestions are welcome. thanks
Integration Services
Weird behaviour on Excel connection manager and files - I have an SSIS package that iterates over Excel files and it has been working fine without any issue for the past fortnight. Recently, it has been failing when new files are added due to the 'External table not in the expected format'. Nothing about the files have changed, but what I have noticed is […]
 

 

RSS FeedTwitter

This email has been sent to newsletter@newslettercollector.com. 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

 

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