| A community of more than 1,600,000 database professionals and growing |
| | Maintain Your Trustworthiness Many of us that are DBAs and/or sysadmins find ourselves with privileged access to many systems. We can often read the data that's stored in these systems, whether that's a relational database, a NoSQL store, or even a mail system. As a result, it is incumbent upon us to be trustworthy and maintain confidentiality with privileged information. Overall I think most of us do this, but there are always some rogue administrators out there, some of which might take malicious actions. There have been a few people that were arrested or sued for hacking into systems, trashing backups, or causing other issues. Often those are emotional outbursts that disrupt operations, and many people are aware there is an issue. However, what if people weren't aware they were being hacked in some way? I ran across this story about some "admin" software being sold on a hacker forum site, which was marketed as sys admin software, but used to control other people's computers without their knowledge. This is essentially a remote access trojan application that a developer sold to others who used it to steal data from their victims. The software developer was arrested and signed a plea agreement, knowing that it was used in a malicious manner. For those of us that have privileged access, we might learn passwords of users as we watch them enter the value over and over. We certainly might work with their data to help them solve an issue or understand the manipulation taking place. We We may have auditing systems or logs that allow us to replay or examine the data values people have entered into applications. We do this with their permission and understanding, or at least someone's permission. A user might not know we have substantial instrumentation, perhaps even the equivalent of a keystroke logger, but there will be some management that is aware of the existence of these tools. While I've played a few pranks on people, moving keyboards or mice, I've always ensured they knew it was me in a short period of time. Using admin software to spy on others without their knowledge is a breach of trust and ethics, in my opinion. Even being asked to use this by management would be immoral for me. Knowing this type of software exists, is important, and if you find it, I'd make sure you report it to management immediately, preferably to a few different people. If anyone is using tools to spy on users, they're likely up to no good and I'd hope we would all attempt to put a stop to the practice. 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 ( 4.6MB) 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 | | Become a more efficient SQL developer with SQL Prompt Learn how to write SQL faster and more efficiently with these exclusive short videos from Data Platform MVPs and SQL Server experts. With SQL Prompt you can strip out the repetition of coding and write SQL 50% faster. Check out the tips |
| | How to track every change to your SQL Server database See who’s changing your database, alongside affected objects, date, time, and reason for the change with SQL Source Control. Get a full change history in your source control system. Learn more |
|
|
|
| | | Danilo Dominici from SQLServerCentral.com In this first article of the Stairway to SQL Server on Linux, learn how to set up your host server. More » |
| Press Release from Redgate In this free eBook Shawn McGehee offers advice on query tuning, cutting stored procedures, and system process design and implementation for high availability. Discover how to perform backup and restore operations using SQL Server Management Studio (SSMS), basic T-SQL scripts and Redgate's SQL Backup tool. More » |
| Additional Articles from MSSQLTips.com In this webcast, Tim Smith takes a look at various tips and tricks to assist you with performance tuning your SQL Server databases. Knowing how to find and resolve problems is key to improving performance, so join him to learn how to optimize your systems More » |
| SQLServerSteve from SQLServerCentral Blogs by Steve Bolton …………In the last installment of this amateur series of self-tutorials on DIY data mining metrics, we saw how... More » |
|
|
| | Today's Question (by Steve Jones): I have a data frame in R that I am using to track my travel for the year. The data looks like this: > travel Passenger FlightDate Destination Miles Dollars 1 Steve 20180225 LHR 11789 1100 2 Steve 20180512 LHR 10989 1500 3 Steve 20180620 LHR 11789 1800 4 Steve 20180830 LHR 11789 1100 5 Steve 20181015 LHR 9678 2700 6 Steve 20181212 LHR 10520 1500 7 Steve 20180810 MSY 2427 440 8 Steve 20180225 OSL 1502 210 9 Steve 20180225 DCA 1475 310 I want to convert this from a wide format to a long format that I will use to plot my consumption of both distance and cost. I plan on trying to get this format of data: Passenger Destination variable value 1 Steve LHR Miles 11789 2 Steve LHR Miles 10989 3 Steve LHR Miles 11789 4 Steve LHR Miles 11789 5 Steve LHR Miles 9678 6 Steve LHR Miles 10520 7 Steve MSY Miles 2427 8 Steve OSL Miles 1502 9 Steve DCA Miles 1475 10 Steve LHR Dollars 1100 11 Steve LHR Dollars 1500 12 Steve LHR Dollars 1800 13 Steve LHR Dollars 1100 14 Steve LHR Dollars 2700 15 Steve LHR Dollars 1500 16 Steve MSY Dollars 440 17 Steve OSL Dollars 210 18 Steve DCA Dollars 310 What function should I use? |
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 in this category: R Language. We'd love to give you credit for your own question and answer. To submit a QOTD, simply log in to the Contribution Center. |
|
|
| |
ADVERTISEMENT | Extract, Transform, and Load with SQL Server Integration Services: With Microsoft SQL Server, Oracle, and IBM DB2 Readers will learn by example how to use Microsoft SQL Server 2016 Integration Services (SSIS) as they design and implement extract, transform, and load (ETL) solutions to support a business application that integrates with a data warehouse and an online Web store across a heterogeneous system. This volume describes proven methods to support common ETL needs, such as databases communicating directly with each other, using files to exchange data, or performing database operations using Web services. Pick up your copy of this great book today at Amazon today. |
|
|
|
|
|
| Yesterday's Question of the Day |
| Yesterday's Question (by Steve Jones): I started tracking sales for my side business by weeks. Since the volume is low, I decided to store the data in a table that tracks the total sales for each week of the year. Here is a sample of some data: SalesWeek SaleTotal 1 50.00 2 70.00 4 60.00 7 40.00 8 80.00 I send some marketing emails out, but I'm not very consistent. I want to see if I'm missing sales on those weeks where I didn't send an email. I decide to write this code that will help me analyze the sales for all weeks, populating 0s in the weeks where there are no sales. WITH myTally(n) AS (SELECT n = ROW_NUMBER() OVER (ORDER BY (SELECT null)) FROM (VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10)) a(n) CROSS JOIN (VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10)) b(n) ) SELECT xxxx , COALESCE(s.SaleTotal, 0) AS SalesTotal FROM myTally m yyyy dbo.Sales s ON m.n = s.SalesWeek ORDER BY m.n What should I replace the xxxx and yyyy with to get the report of sales for all weeks, both passed and future? (choose 2) Answer: Replace xxxx with "m.n" Replace yyyy with "LEFT OUTER JOIN" Explanation: The answers are that we need to replace XXXX with m.n and replace yyyy with LEFT OUTER JOIN. If we get the s.SalesWeek as the first column, we will only ever get the values in that table, so weeks that have no sales will have a null for this column. In our set, we'd see this: SalesWeek SalesTotal 1 50.00 2 70.00 NULL 0.00 4 60.00 NULL 0.00 NULL 0.00 7 40.00 8 80.00 NULL 0.00 We replace yyyy with a left outer join becuase we want all the weeks to appear (from m.n), but if there isn't a match, we get a NULL from the right table with this join. An inner join only will show the matching weeks, so only the 5 sample rows shown. A right outer join will likewise only show those 5 rows. Ref: Using a CTE as a Tally Table - http://www.sqlservercentral.com/articles/T-SQL/173370/ » 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. SSMS failing to install on windows 10 - Ssms keeps hanging on the isolated VS step and fails with error 80070643 What does your backup process look like? - Hi, I'd be interested to hear how most of you have your backups set up. I know a lot of it... Ideas on Passing filename from script task to data flow task. - Hi Team, I have a Script task(VB code),I have the output as filename to pick the most recent file from my... pattern matching lookup table and sql join - Hi, I have a master table which looks like this Terminal_Prefix PINPad_Prefix Joins clarification - Let's say I have Table A and Table B. Table A can join onto Table B because both tables have a... Partioning Huge Table (650GB about) - Hi all, in my data warehouse (SQL Server 2016 Std) I need to maintain 36 (!!) versions of a table in order... Urgent:Transaction Rollback - Hi Experts, We have a procedure in database A which is inserting 10 millions records from a table in a database... Problem Converting DATE. Trying to Purge Data Oldest than 30 days from Performance Counter Table where date column is char (24) - Hello Acttually i have a regular MSFT performance monitor counter running, which counters are being collected into a SQL Server table. Because... Count the amount of times values appear in the database - Hello, I have a table of "jobs" which I need to export to an online accounting software. What I need to... Huge number of tables - Hi all, I've inherited a situation where we have a business critical system with gigantic number of tables, 240,000 - yes, nearly... OPENROWSET problem - I have a test server (TEST1) running SQL 2012 and Windows 2012R2. One of the developers wants to use OPENROWSET... Finding strings with 3 consecutive numbers - Hi all, As per my project described in : https://www.sqlservercentral.com/Forums/1983777/Huge-number-of-tables (well worth following!!) I want to find all tables (from sys.tables) that have (any) 3... Row with Non-Zero Value - I have the following table and want to find the row with non-zero value for revenue and quantity for each... Splitting a comma separated string in one field and populate several fields - I need to split the values of one field that has a variable number of names ( I have 10 receiving... DATEADD YYYYMM - This gives me last month, can't figure out next month. DECLARE @yrMo How to imbed an image into an email sent by dbmail - Hello all and thank you in advance for your time and expertise. I am sending out customer statements in email using... Pass Subreport Value to Main report - Can you pass a total value from a subreport to a main report? I am not finding much luck on... stored procedure not receiving null value from parameter in SSRS 2008 R2 report - I have a question on how to pass a parameter equalling NULL to a stored procedure linked to my SSRS... Using case logic in SSIS - HI experts, I have a CSV column "Withdrawal" with either TRUE or FALSE as values. The destination SQL table has a... The SQL Saturday Thread - As popular as SQL Saturday is, I'm surprised that nobody created a thread dedicated to SQL Saturday, so I created... |
|
| 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 |
|
|