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

Daily Coping Tip

Tell someone about a book or article you found helpful

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.

Data Analysis Without a Server

Most of us that subscribe to this site are data professionals, and we work with large amounts of data fro our organizations that is usually stored on a server class system, with TB sized, high performance storage systems. Whether on premises, in the cloud, or another data center, our employers have made an investment to provide high quality data services for our clients. This large investment is often a big decision, and setting up a new system to experiment with data analysis can often seem to take ages.

The R language has been popular for data analysis for years, though the data sets examined were often limited in size, usually because of workstation limitations. One of the reasons Microsoft added R services to the data platform was to move analysis closer to big stores of data and increase the ability of organizations to "operationalize" or deploy their analysis and models to a wider audience.

Deciding when to make that investment can be tricky, but the more that someone can prove some value from a smaller experiment, the more likely it is that an organization might decide to move forward. Recently, I ran across an interesting article, where the author had analyzed a billion row dataset on a commodity laptop. In this case, a Macbook Pro costing US$4000, but that's a pittance compared to deciding to invest in HDFS storage, a Big Data Cluster, or even a large cloud experiment.

What caught my eye here is that the analysis tool used, OmniSciDB, was engineered to run on CPUs, not GPUs, and performed very well in analyzing the data. I haven't found the time or set up the disk space to try and load the billion rows into a SQL Server columnstore index, but I'd be curious how that might perform on the same data. The queries run are fairly simple aggregations, and my guess is SQL Server would perform extremely well once the index was built. If someone else wants to try it and take notes, I'd love to read the experiment as an article on SQLServerCentral.

It has become more and more likely that before we embark on any large project in an enterprise that we perform some sort of prototyping and development on a small system. I think that's true whether we're building a web app or setting up a data science experiment that might drive our business forward. I always enjoy reading when someone has run tried a large scale analysis experiment on a workstation, not a server, and I hope we continue to see more people doing this and sharing their results in the future.

Steve Jones - SSC Editor

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

 
 Featured Contents

Configuring Availability Groups in Ubuntu

Jignesh Raiyani from SQLServerCentral

In this article, we will review how to configure Always On Availability Groups in Ubuntu Server using the Pacemaker cluster. The following are the high-level steps to configure Always On Availability Groups (AOAG) with an Ubuntu server. Install SQL Server on Ubuntu 16.04 Install Pacemaker agents and configure the cluster Create Always On Availability Groups Create […]

Redgate Streamed Returns

Additional Articles from Redgate

Our virtual community event is back with a global feel. Featuring speakers including Donovan Brown, Abel Wang, Kendra Little & Damian Brady, we have a full day of live content & networking opportunities, spanning world-wide time zones. So, wherever you are in the world, join us live on Wednesday August 26.

Subset in R including List, Data Frame, Matrix and Vector

Additional Articles from MSSQLTips.com

In this article we will examine the R Language subsetting operators, types of subsetting and differences in behavior for different R objects like vectors, lists, and data frames.

From the SQL Server Central Blogs - Power BI Monthly Digest – August 2020

Devin Knight from Devin Knight

In this month’s Power BI Digest Matt and I will again guide you through some of the latest and greatest Power BI updates this month.

From the SQL Server Central Blogs - Setting default values for Array parameters/variables in Azure Data Factory

Rayis Imayev from Data Adventures

(2020-Aug-14) Setting default values for my parameters or variables in Azure Data Factory (ADF) may be a trivial task, but it gets more interesting when those elements are Arrays....

 

 Question of the Day

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

 

Replacing sysconfigures

I was refactoring an old query that was looking at the sysconfigures system table. To use a more modern DMV, what should I query?  

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)

Rebuilding System Databases

I realize that one of my SQL Server 2019 instances was installed with the wrong collation. Rather than re-install, I want to detach the user databases and rebuild the system databases. How do I do the rebuild?

Answer: Run setup with the /ACTION=REBUILDDATABASE parameter

Explanation: To rebuild system databases, setup is run with the action parameter. Ref: Rebuild System Databases - https://docs.microsoft.com/en-us/sql/relational-databases/databases/rebuild-system-databases?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
Cannot connect to SSRS from SSMS - Hello,   I just install SSRS 2017 Reporting Service and have configure Report Server from Report Server Configuration Manager. Report Server Status is Started, mode is Native. I have setup all necessary setting like Service account, Web Service URL, Database, and Web Portal URL.   I can access Web portal URL from my browser, but […]
SQL Server 2017 - Development
Convert Access IIF with Switch in MSACCESS to SQL Server - I am in the process of converting an access query to T-SQL. There is an IIf statement which I am having trouble translating. SUM (LOTOSMIS_ACC_TYPE.sing_ind * LOTOSMIS_RET_DAILY.grs_amn * iif( gm_cd in (1105, 2123, 2124, 2150, 2152, 2191, 2192, 5143, 5145, 5146, 5245, 5253 ), switch(LOTOSMIS_RET_DAILY.gm_var=1, 0, TRUE, 1), 0)) AS RegSales What I gave tried […]
How to calculate future CostPrice value based on two other columns please... - Hello All Good Evening, Can you please help with this Issue --- Sample Data Begins Create Table #SampleData (DriverMon DATE, CostPrice Numeric, CurrentPercentage int, MonthtobeConsider Date,expensetype varchar2(20), LessorID int) Insert Into #SampleData Values(TO_DATE('01/01/2021', 'DD/MM/YYYY'),150,4,TO_DATE('19/10/2017', 'DD/MM/YYYY'), 'Lease', '4343') Insert Into #SampleData Values(TO_DATE('01/02/2021', 'DD/MM/YYYY'),120,4,TO_DATE('19/10/2017', 'DD/MM/YYYY'), 'Lease', '4343') Insert Into #SampleData Values(TO_DATE('01/03/2021', 'DD/MM/YYYY'),110,4,TO_DATE('19/10/2017', 'DD/MM/YYYY'), 'Lease', '4343') Insert Into […]
smtp in store procedure - vDear Team, it is regarding store procedure query for sending an email. i am unable to find the smtp codes like we used to do earlier. could you someone assist me how to smtp confuguration in it ac USE [msdb] GO /****** Object: StoredProcedure [dbo].[sp_send_dbmail] Script Date: 19/08/2020 12:33:29 ******/ SET ANSI_NULLS ON GO SET […]
SQL Server 2016 - Administration
CDC Setup wrapper functions - missing column __$command_id - Running SQL 2016 Standard SP2 CU14 (the most recent version) I see a lot about this issue and best i can tell its just a bug that Microsoft isn't going to fix. It seems there are different opinions of what to do. The wrapper function creates scripts for other functions that will return change data […]
SQL Server 2016 - Development and T-SQL
What am I doing wrong? OR with AND logic - I need help with my where clause. The criteria below works except source_ID '100' keeps showing up in my data.  Basically I have 2 OR's and 1 AND. What is the best way to use these together? Im sure I must be doing this incorrectly. FROM table1 WHERE (APPLE_IND = 1 OR GRAPES_IND = 1) […]
Administration - SQL Server 2014
AG recovery following disaster - Hi All. I'm looking for suggestions on the best way to recover from a disaster. Setup is an AG (asynchronous commit) on a two node cluster (one production, one DR). Forced failover with data loss following abrupt unplanned outage at production data centre. Have been in DR with production unavailable for a week. Lots of […]
SQL Server 2019 - Administration
Explanation of SQL Code - hi, can someone help me what does this code mean/do step by step. thank you so much, i understand the basics but what are the two dotes and the first line select distinct left(a.unq_id_src_stm,13) partija_13,a.unq_id_src_stm, b.cl_val_id into #t1 from tez_bdw_tut..sor_pd_ar a join TEZ_BDW_TUT..sor_ar_x_cl b on a.PD_AR_ID = b.AR_ID where b.cl_scm_id = 63 and 20200806 between […]
Error 1105 filegroup full - Hello  community, I currently emptying ndf file to other ndf files (with SSMS) and I get the error 1105 filegroup full for that particular database I am working on. But if I check the filegroup and the other ndf/mdf files there's plenty of  enough space left. So I can't figure out which filegroup is full. […]
Data transfer from sqlserver to Oracle - Hi , Source : SQL Server Table  ;  Destination : Oracle  Table What is the best way to schedule the data transfer when new record inserted in source(sql server table). Thank you for your suggestions. Thanks.
SQL Server 2019 - Development
In Both Tables, In Table #1 But Not Table #2, In Table #2 But Not Table#1 - I've two tables and each has a key set.  Each table has a user first name and a user last name and a 'key' which is lastname + firstname.  I know that isn't ideal, but given the underlying data, that is the best that can be done. I'd like to show a report that shows […]
SQL Azure - Administration
Azure Loadbalancers - This is more of a quick question.   So Setting up Availability groups cross region in Azure.  all of the networking is in place, the VNET Peers, etc. My question is about the load balancers. In the past, I have only ever provisioned 1 ag group cross-region and therefore 1 x  Standard Azure Load balancer […]
Reporting Services
lookup do not bring both amount from one account - 0 Votes"0 Ysa8989-0610 asked · 0 secs agoActions Lookup do not bring amount Hello There I have to datasets one for expenses and one for revenues, it is partially working because the lookup is bringing one amount only it should be bring all amount sitting there. Therefore I am out balance. The money is sitting there but my […]
SSRS 2014
Setting Start Date - I have a parameter in my report to put the sunday date in of the current week =DATEADD("d" ,7-DATEPART(DateInterval.WeekDay,Today(),FirstDayOfWeek.Monday),Today()) so for this week would put the date as 23/08/2020 I need to set a start date that puts in the Monday Date from 11 weeks ago based on the end of week date above so […]
SSDT
redirect row on truncation - I kind of have this working, but for my test row, it did not output to the file.  It is at least creating the files. So employeenumber is nvarchar(15) example data is 123456@mysub.ourdomain.us what gets inserted is the first 15 123456@mysub.ou I have this set for the table:   I do have a couple of […]
 

 

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

 

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