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

Daily Coping Tip

Focus on what’s good today, no matter how tough

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.

Live versus Stored Data

I've been working with various technologies as experiments over the last few years. I'm curious how useful I find them, as well as how they might help the clients and customers I run into at Redgate Software.

I think Jupyter notebooks are a technology that has a lot of promise, and their use is growing in many organizations. One of the interesting things with notebooks is they can store results inside them, which allows a transfer of information in an interesting fashion. If I re-run a cell, the results can change and comparing them is challenging, but that is a separate issue. At least I can capture the results and share them.

I've also been working with Power BI at times. I saw a demo of a query from PBI to Excel, where the data was then stored in the PBIX file. This query was disconnected, but it could be refreshed. You can also configure how this works, so you get the choice of live or stored data.

If you are distributing information to users, those of us in the database world often think about having live data available and queried from a database, but often the same data gets queried over and over, which creates a load on our system. I know the data is often cached in these situations, but cache is a previous resource, so limiting the repeat queries can be valuable.

I do think this is a decision point for some applications, where we might choose to limit the amount of live data v stored data. There are times when speed matters more than having exact data, so cached or stored data works well. Sometimes the most current data is critical, and you need to query the database.

How do you decide when you want a live connection to a database, and when stored data is acceptable. I don't know that I have any rules, but I evaluate each situation and try to work with users to make a decision. I suspect most people do the same thing, but if you always use live data, let me know today.

Steve Jones - SSC Editor

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

 
 Featured Contents

Getting started with the SQL MERGE statement

aveek22 from SQLServerCentral

This article is focused on beginners who have already started writing SQL queries and are now diving deep towards more data processing and complex queries in SQL. When we talk about data processing, an important concept that comes to our mind is performing ETL workloads to a data warehouse. ETL is a very complex topic […]

Is Tempdb Causing a Bottleneck?

Additional Articles from Redgate

One of your SQL Server instance shows a major dip in performance or throughput, affecting all the user databases. You notice that the slow interludes coincide, as if orchestrated. On investigation, it appears that several transactions running over that period were using a lot of space in tempdb. However, which of them, if any, are causing the tempdb bottleneck, and why?

Create SQL Server Graphics with ggplot2 and R Services

Additional Articles from MSSQLTips.com

Learn how to create charts and graphs with R and how you can use R code in SSMS to generate and save graphs to an external file.

From the SQL Server Central Blogs - Logical crossroads in Azure Data Factory (IF and Filter operations)

Rayis Imayev from Data Adventures

(2021-Jan-19) I was raised listening and reading fairy tales where the main character would reach a crossroad with a large stone that had some directions written on it – turn...

From the SQL Server Central Blogs - Power BI: Making Date & Time Keys

DataOnWheels from DataOnWheels

Saving the Day from Delay Part 2 Creating DateKey and TimeKey columns can be done with built in functions in the Power Query editor. Quick call out, if you...

 

 Question of the Day

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

 

Setting the Date

What is SET DATEFIRST used for?

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)

Strange Code

I see this code in a stored procedure in a git repository for SQL Server 2019:

DECLARE @dbs CURSOR

What happens if this is run?

Answer: Nothing

Explanation: Nothing happens. This is a valid variable declaration. You can declare a cursor as a variable and then set the value to be a cursor. Ref: declare - https://docs.microsoft.com/en-us/sql/t-sql/language-elements/declare-local-variable-transact-sql?view=sql-server-ver15

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
WHATSAPP:+1(706)521–4615 WHERE CAN I GET NCLEX CERTIFICATES WITHOUT EXPERIENCE - WHATSAPP:+1(706)521–4615 WHERE CAN I GET NCLEX CERTIFICATES WITHOUT EXPERIENCE https://www.premiumcertifications.com/premium-certifications-express/buy-nclex-certifications-online/ BUY REGISTERED NCLEX CERTIFICATES WITHOUT EXAMS-PASS NCLEX EXAMS WITHOUT EXPERIENCE-BUY NCLEX CERTIFICATIONS WITHOUT EXPERIENCE- BUY ORIGINAL NCLEX CERTIFICATE WITHOUT EXAMS - BUY NCLEX CERTIFICATES ONLINE in Baltimore, Maryland - how to get NCLEX certificate WITHOUT EXPERIENCE - Buy Registered NCLEX-RN certificate Online in Colorado - […]
SQL Server 2017 - Development
Lookup and insert into column without dynamic SQL? - Hi all, 99% sure the answer to this question is "it is not possible", but figured I'd check anyway. Suppose I have the following schema: CREATE TABLE #FieldValues ( ID INT IDENTITY PRIMARY KEY, Field1 VARCHAR(500), Field2 VARCHAR(500), Field3 VARCHAR(500) ) CREATE TABLE #FieldDefinitions ( ID INT IDENTITY PRIMARY KEY, DefinitionName VARCHAR(50), FieldName VARCHAR(50) ) […]
SQL Server 2016 - Development and T-SQL
Find unmatched between 2 tables using field as selection criteria - I have the following tables as a example. Table 1 EmpID, LastName, FirstName 1,Smith,John 2,Jones,Bob 3,Citizen,Jane Table 2 EmpID,ReqID,ReqDesc 1,1,Car 1,2,Diploma 1,3,Phone 2,1,Car 2,3,Phone 3,1,Car 3,2,Diploma 3,3,Phone I want to return all records from Table 1 that don't have an entry in Table 2 that don't have a Diploma for example so ReqID = 2 […]
Administration - SQL Server 2014
Do I need to install two patches for 2014 individually? - We are on version SP3/CU4 for SQL Server 2014.  Since CU4, there have been two security patches released, one on 2/11/20 and the other recently on 1/12/21. If I install the latest 1/12/21 security patch, will it "include" the patch for 2/11/20, or do I need to install both of them (in sequence)?
Development - SQL Server 2014
Save results from Stored procedure to a CSV file. - I have a SqlAgentJob calling a stored proc. that loops through a list of locations and passes the location value and other parameters to a stored procedure.  I would like to save each of the results to a CSV on the server. Because i have 50+ locations my current method of a separate sqlAgenjob using […]
Execute As not reading system view - I have a stored procedure with the following: SELECT physical_name FROM sys.master_files Where physical_name like '%' + DB_NAME() + '.%' When the procedure is compiled normally, this runs fine, but when it is compiled With Execute As 'Paleo-Server\SQLServerZaloha', this select statement returns a null. I ran this statement I found on the web: grant view […]
SQL 2012 - General
Do I need to install two patches for 2012 individually? - We are on version SP4 for SQL Server 2012. Since SP4, there have been two security patches released, one on 2/11/20 and the other recently on 1/12/21. If I install the latest 1/12/21 security patch, will it "include" the patch for 2/11/20, or do I need to install both of them (in sequence)?
SQL Server 2012 - T-SQL
Summary query for number of attendees out of all - hi all i'm trying to write a query to summarize attendance counts per department i've two tables one for event log (login/logout) transactions and the other for users details i need to show the result as dept.      attend users      all users dept1             5        […]
update using self-join - confirm it looks at old values - I'm doing an update using a self-join, and just want to confirm something.  If the query updates a certain row I'll call row A, and then updates another row B based on a value in row A, does it look at the old value in row A, or the new value? Since we can't do […]
SQL Server 2019 - Administration
WHATSAPP:+1(706)521–4615 HOW TO BUY NCLEX CERTIFICATES WITHOUT EXAMS - WHATSAPP:+1(706)521–4615 HOW TO BUY NCLEX CERTIFICATES WITHOUT EXAMS https://www.premiumcertifications.com/premium-certifications-express/buy-nclex-certifications-online/ WHATSAPP:+1(706)521–4615 HOW TO GET NCLEX CERTIFICATES WITHOUT EXAMS-PASS NCLEX EXAMS WITHOUT EXPERIENCE-BUY NCLEX CERTIFICATIONS WITHOUT experience- BUY ORIGINAL NCLEX CERTIFICATE WITHOUT EXAMS - BUY NCLEX CERTIFICATES ONLINE in Baltimore, Maryland - how to get NCLEX certificate WITHOUT EXPERIENCE - Buy Registered NCLEX-RN certificate Online in Colorado […]
MYSQL ERROR - need desperate help - Hi, Im having a problem with new players selecting a player class. Keep getting this error. Message: Error Executing Database Query. URL: /ClassSelect.cfm? Location: C:\websites\myConvicts\www\ClassSelect.cfm Line #: 36 SQL: INSERT INTO DR_Player_Upgrade (PlayerID, UpgradeID, PurchaseDate) VALUES (2930848,27,CURRENT_TIMESTAMP) [Macromedia][SQLServer JDBC Driver][SQLServer]Violation of PRIMARY KEY constraint 'PK_DR_Player_Upgrade'. Cannot insert duplicate key in object 'dbo.DR_Player_Upgrade'. The duplicate key […]
SQL Server 2019 - Development
WHATSAPP:+1(706)521–4615 HOW TO GET NCLEX CERTIFICATES WITHOUT EXPERIENCE - WHATSAPP:+1(706)521–4615 HOW TO GET NCLEX CERTIFICATES WITHOUT EXPERIENCE https://www.premiumcertifications.com/premium-certifications-express/buy-nclex-certifications-online/ CONTACT US WHATSAPP:+1(706)521–4615 BUY NCLEX CERTIFICATES WITHOUT EXAMS-PASS NCLEX EXAMS WITHOUT EXPERIENCE-BUY NCLEX CERTIFICATIONS WITHOUT EXPERIENCE- BUY ORIGINAL NCLEX CERTIFICATE WITHOUT EXAMS - BUY NCLEX CERTIFICATES ONLINE in Baltimore, Maryland - how to get NCLEX certificate WITHOUT EXPERIENCE - Buy Registered NCLEX-RN certificate Online in Colorado […]
General Cloud Computing Questions
WHATSAPP:+1(706)521–4615 BEST PLACE TO BUY NCLEX CERTIFICATES WITHOUT EXAMS - WHATSAPP:+1(706)521–4615 BEST PLACE TO BUY NCLEX CERTIFICATES WITHOUT EXAMS https://www.premiumcertifications.com/premium-certifications-express/buy-nclex-certifications-online/ CONTACT US WHATSAPP:+1(706)521–4615 BUY NCLEX CERTIFICATES WITHOUT EXAMS-PASS NCLEX EXAMS WITHOUT EXPERIENCE-BUY NCLEX CERTIFICATIONS WITHOUT EXPERIENCE- BUY ORIGINAL NCLEX CERTIFICATE WITHOUT EXAMS - BUY NCLEX CERTIFICATES ONLINE in Baltimore, Maryland - how to get NCLEX certificate WITHOUT EXPERIENCE - Buy Registered NCLEX-RN certificate Online in […]
Reporting Services
Search Report definitions - I know that there is a query you can run in SQL to search the SQL text procedures & objects for a specific string. Is there a way to search the report definitions of all reports for a specific string (values, table references, etc.)?
Analysis Services
DAX how to rewrite this FILTER to CALCULATETABLE? - Ahoi,   i have been starting to look into DAX and there is something i could not find an answer to somehow. I am very new to DAX so im trying to understand the basics and have come across something bothers me. How do i rewrite the following Query using CALCULATETABLE instead of FILTER?   […]
 

 

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

 

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