 | A community of more than 1,600,000 database professionals and growing |
| | Trust But Verify Npm is the default package manager for the Node.js runtime. Most of us have heard of of Javascript, which is used extensively in writing applications. When developers write code using this framework, they often include code from other packages and developers, just referring to the functions they need. This allows applications to build on the work of others, without having to re-implement functionality that is commonly used. Many languages have libraries that are available for use, but most require that a developer download them, include them in their software and then publish the resulting software. In many node.js applications, the developer does some of this, but when they publish the application, the users pull down the versions of the packages that they need at that time. This allows developers to avoid including a lot of code in their applications, reducing file sizes, bandwidth, etc. Recently an issue arose with a popular package that is included in many applications. I first noticed this on Twitter, then saw it called out in a Visual Studio User Group meeting and then even more online. A programmer made some helpful changes to the package and was given rights to make more by the maintainer. This user when altered the package to include some malware that would attempt to steal bitcoins from users that ran an application using the package. This is much different than how our T-SQL code is structured, with all the code contained inside the database. There are some exceptions, but for the most part we can look at all the code that will be executed as a part of our batch. That doesn't mean that we aren't responsible for reviewing and checking out code. This might not be easy in the Javascript world, but it should be easy(ier) for us. I know the warnings about testing code exist, but I'm always somewhat surprised when users ask questions on the SQLServerCentral forums, and then can't understand why simple code (select count(total) from mytable) doesn't work on their system because they don't have a mytable. That causes me to think that too few people actually look at code before they run it. If they don't check a 10-30 line set of code, do they ever check something as complex as Ola's script? Likely not. Part of our duty as professionals is to be careful with code that we get from others, run it in a sandbox, test it, make sure this is code that will work well for us. Not many of us can download code from the web and have it run on our SQL Server without modification, but if we're asking questions on a forum, we might just do that. If the problem is complex and the code is large, we might not pay enough attention. As SQL Server expands to get code in R, Python, Java, and more, we may need to be more diligent in scanning code to look for problems such as data leakage. Can you imagine getting some Python code from the web that should break strings apart into works and find out that somewhere in the complex class structures this code also sends a copy of your data to some malicious website? I can, and it's why I'd be very careful vetting code on the data platform. Steve Jones from SQLServerCentral.comJoin the debate, and respond to today's editorial on the forums |
| The Voice of the DBA Podcast Listen to the MP3 Audio ( 5.2MB) podcast or subscribe to the feed at iTunes and Libsyn. The Voice of the DBA podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music. | |
|
|
| ADVERTISEMENT |  | NEW SQL Provision: Create, protect, & manage SQL Server database copies for compliant DevOps With SQL Provisions virtual cloning technology, databases can be created in seconds using just 1MB of storage, and sensitive data can be anonymized or replaced with realistic data to ensure it is protected as it moves between environments. Download your free trial |
| |
|
|
| |  | Philip Robinson from SQLServerCentral.com Visualise and compare the output of set statistics io on with Power BI to assist with performance tuning. More » |
 | Additional Articles from MSSQLTips.com In this tip we look at some additional scripts that you can use to monitor your SQL Server AlwaysOn Availability Groups. More » |
 | New case study from Redgate. Since adopting SQL Provision, KEPRO, a leading US healthcare organization, have been able to achieve HIPAA compliance, save 15-20 hours a week in provisioning processes, and reclaim terabytes of disk space. More » |
 | Kenneth Fisher from SQLServerCentral Blogs I thought I would post this a bit early so everyone can memorize the words before Hanukka starts next week. I... More » |
 | Justin Figg from SQLServerCentral Blogs Deadlocks in SQL Server happen when 2 (maybe more) processes are fighting over a resource in the database and are... More » |
|
|
| | Today's Question (by Kendra.Little): Which of the following does the SQLServer: Databases\ Transactions/sec performance counter NOT count? |
Think you know the answer? Click here, and find out if you are right.
We keep track of your score to give you bragging rights against your peers. This question is worth 1 point. We'd love to give you credit for your own question and answer. To submit a QOTD, simply log in to the Contribution Center. |
|
|
| |
| Yesterday's Question of the Day |
| Yesterday's Question (by Kendra.Little): What does the "cost threshold for parallelism" setting configure in SQL Server? Answer: The cost at which a single serial plan will be considered for parallelism Explanation: The cost threshold for parallelism is the cost at which a single serial plan will be considered for parallelism. "Serial" means "single threaded" or "not parallel" in this case, not that it's a murderous psychopath query.
Let's say you have cost threshold for parallelism set at 50. You might see a parallel query with a cost of 45. That isn't breaking the rules - it means that running the query with a serial plan costed out higher than 50. Ref: Configure the cost threshold for parallelism Server Configuration Option - click here
» 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. Issue with midnight in stored procedure - I have a very straight forward check in a stored procedure that makes sure an EndTime was entered from an... Email results of Failed Jobs - Thanks you for your time and any help or questions are appreciated. Currently i have approximately 300+ jobs...and trying to get... sql management studio cannot install - hi. cannot install sql management studio 2017, says setup was blocked a pending reinstall. blind and use a screen reader... Entity-Attribute-Value is evil ? how to avoid... - Hi all consider the following scenario:I have a FILE table with known attributes (size, creation date, ...)The user needs to add... Error: Cannot insert duplicate key row in... a non-unique index?! - Cannot insert duplicate key row in object 'Payment' with unique index 'IX_Payment_PurchaseId'. The duplicate key value is (2999, C1234, 2018-12-13,... Stumped trying to shred XML data into table rows - Hello experts, I have the following table: MyTable ( MyKey varchar(100) not null primary key, ColXml varchar(max) null ) The ColXml column has xml data... how to speed retrieving data from big table data when select from it? - Problem I have table have 20 columns when make select data from new SQL query& Basic Question: Do you have to restart the instance if you change database or log file growth - Hi All, I have changed the default autogrowth to 300000MB. Do I need to restart the server instance in order... CREATE EXTERNAL DATA SOURCE - Im trying to extract data stored as a csv file in azure blob storage and import it into my main... delete records in batches?? and recursive for tables - I have number of tables , I want to purge record based 3 month timeline. eg: select * from sys.tables where name like 'abc%' I... Suggestion on import data - Hi, Every month I will import data into table. The data doesn't have any primary key. It has year and month... Where did our 30GBs go? - We have a bunch (~130 DBs) of databases that have the exact same table structure. We had an operation run over... Hi Team , Please help.. I have data in one table based on same id we have data some specific column i need to get first NOT NULL value . Incase in 1st row NULL second row 200 3rd roe 300 we have i need to select second row 200 only. - LEGALPARCELIDSEQUENCE_NOLEGALDESCRIPTIONPLANNO PERCENTILE_DISC for median calculation - Question: is PERCENTILE_DISC for median calculation works for both odd and even number of records? In SQL Server 2008 to calculate... Problem reading all Attributes into SQL table - Hello everyone. I'm writing a proc that imports several XML files and stores them in a SQL table. Here's a sample... Passing Datbase name as a parameter - Hello, I created a package which extracts data form one table and loads into another. For source I'm using SQL Command Select col1,... QueryStore practical everyday use - Hi We have been using QueryStore since day 1 of our SQLServer 2016 installation For every day usage though, the standard... SQL Server Active Directory helper? - Hi I am not able to start SQL Server Active Directory helper in my server 2003. What is the use of... problem with restore a backup in sql 2000. help me - Dear Members im have a full backup with 87 diferentials backup in same file this backup are create in sql server 2000... Do recruiters primarily recruit for contract jobs? - I live in New Mexico (yes, we're part of the USA, despite opinions to the contrary). New Mexico is primarily... |
|
| 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. Feel free to forward this to any colleagues that you think might be interested. If you have received this email from a colleague, you can register to receive it here.
| This transmission is ©2018 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. Contact: webmaster@sqlservercentral.com |
|
|