| A community of more than 1,600,000 database professionals and growing |
| | BYOD This editorial was originally published on Jan 18, 2012. It is being re-run as Steve is on vacation. Some minor edits were made As laptop prices have plummeted over the last few years to the point where most technical people can afford to purchase their own machine for around $500. Unless you want a really high end machine, in which case you'll be looking at something over $1000. I have even used Macbooks for my work. There are quite a few people working with SQL Server on OSX, however, so if you want one for work, you can make the switch, and here are a few blogs for you (Aaron Bertrand, Brent Ozar, Joe Webb) As computers become a commodity, and we use them more and more to live our lives as well as work, does it make sense for workers to purchase their own machines and use them in a corporate setting? I know some companies give workers a computer allowance and the workers can take the machine with them if they quit, presumably if they work at the company for longer than a few months. Other companies give their employees money for technology, which can be exciting for technical people that might want to upgrade their monitors or other accessories regularly. There are definite security and data concerns, but with cheap memory, disks, and hypervisors, it's possible to get around those issues, and allow employees to work with the tools they are familiar with. I ran across this blog that talks about workers owning their own devices in the future, even being required to provide them. Just like many other professions where the workers must own their own set of tools. On one hand this seems crazy. Employers should provide computers, and as a young worker in this business, I would have struggled to purchase a $1500-2000 laptop. Or maybe I wouldn't have. Maybe I would have seen it as an investment in my career, just like college was. These days, we have even more devices, and while IT departments struggle to secure them, that doesn't stop people from using them, or wanting them. I think I'd like to provide my own smartphone and laptop, and get some sort of allowance from my employer each year to offset the cost. I don't know how we'd handle the data/security pieces of this scenario, but I'm there would be no shortage of ideas from the various software vendors. Steve Jones from SQLServerCentral.comJoin the debate, and respond to today's editorial on the forums |
|
| ADVERTISEMENT | | Free eBook: SQL Server Backup and Restore With the tools, scripts, and techniques in this free eBook, you will be prepared to respond quickly and efficiently to disaster, whether it's disk failure, database corruption, or accidental data deletion. Download the free eBook. |
| | Monitor database drift with new DLM Dashboard Make sure your databases are in their expected state when you deploy changes with new DLM Dashboard. Track database schemas and get an email alert as soon as they drift. Free tool. |
| | SQL Prompt v7 now supports Visual Studio 2015 as well as SSMS 2016 It also lets you create your own placeholders in snippets, open an actions list when you select text in a query, use different tab colors, and find more invalid objects. Find out how. Find out how. |
|
|
|
| | | Gregory Larsen from SQLServerCentral.com There are times when retrieving data for complex business requirement requires you to temporarily store one or more results sets for a short period of time. Typically these temporary tables are stored in the scope of the current connection, but they may also need to be available across multiple connections. More » |
| Additional Articles from MSSQLTips.com When replicating data to other servers it is always a concern that the subscribers may be far behind. In this article, Tim Smith shares some queries to help monitor SQL Server replication row counts. More » |
| Grant Fritchey from SQLServerCentral Blogs Not for you, for me. I’m sure you’ve heard the statement: Praise in public. Criticize in private. I agree with this approach.... More » |
| Prashanth Jayaram from SQLServerCentral Blogs Overview MS SQL Server is the relational database management system used to store information in form of tables, views, indexes, triggers,... More » |
|
|
| | Today's Question (by Steve Jones): What is returned from this batch? SELECT TRY_CONVERT(VARCHAR(10), 'Mar 34, 2016 4:56 PM') |
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: TRY_CONVERT(). 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 | SQL Server 2012 Integration Services Design Patterns SQL Server 2012 Integration Services Design Patterns is a book of recipes for SQL Server Integration Services (SSIS). Design patterns in the book show how to solve common problems encountered when developing data integration solutions. Because you do not have to build the code from scratch each time, using design patterns improves your efficiency as an SSIS developer. In SSIS Design Patterns, we take you through several of these snippets in detail, providing the technical details of the resolution. Get your copy from Amazon today. | |
|
|
|
|
|
|
| Yesterday's Question of the Day |
| Yesterday's Question (by Steve Jones): I am working with Row Level Security and have a function that determines if a particular user should have access to rows in a table. My function looks like this: CREATE FUNCTION DBO.RLS_Customer_Check (@username AS sysname) RETURNS TABLE WITH SCHEMABINDING AS RETURN SELECT 1 AS RLS_Customer_Check_Result WHERE @username = USER_NAME() GO I have a table, CustomerAccessList, with a column for CustomerID and UserName. I add a filter predicate as follows: CREATE SECURITY POLICY rls_CustomerFilter ADD FILTER PREDICATE dbo.rls_customer_check(customerid) ON dbo.CustomerAccessList; GO Now the bsmith user wants to insert a row into the CustomerAccessList table for a new customer, with no rows in the table matching the customerID. The bsmith user has rights to insert/update the table. Here is the insert statement that bsmith runs: INSERT dbo.CustomerAccessList ( CustomerID, username ) VALUES ( 5 -- CustomerID , 'bsmith' -- username ) What happens when they perform the insert with this FILTER PREDICATE? Answer: The insert succeeds Explanation: The insert actually succeds. A filter predicate filters out rows that a user might not have access to directly see. However if the user has rights to insert data into the table, even if the subsequent row will be filtered. Ref: Row Level Security - https://msdn.microsoft.com/en-us/library/dn765131.aspx » Discuss this question and answer on the forums |
|
|
| | Nate Hughes from SQLServerCentral.com I ran into an issue recently where a table was changed (in beta) and subsequently a view that relied on it was rendered unusable. The idea for this script stemmed from that - to create a script to quickly identify and refresh any view that depends on a changed table. There's room to grow as I realize this isn't a deep dive nor does it cover things like nested views, table functions, etc. but it's a good first pass CYA and I'd welcome any comments or suggestions. Full disclosure: the dev who made the initial table change also made a note in our problem tracking system that the view should be dropped but failed to include a script to do so. That problem as also been mitigated. More » |
|
|
| Database Pros Who Need Your Help |
| Here's a few of the new posts today on the forums. To see more, visit the forums. Default constraints OR INSERT trigger for Audit columns (create date time/user) - Which is the best practice to implement in audit columns for create datetime and create user, INSERT trigger or default... User shouldn't be able to run but can in production - HI, I have a user that an A/D account that has no access to a production DB. But I caught that... Multiple DataFiles on SAN disks? - In the past, an i/o performance enhancing option was/is to split up your database into multiple datafiles and put each... Replicas, indexes and different SQL versions - Hi all We're upgrading on of our servers from SQL2005 to SQL2012. On the 2005 box, we have mirroring set up to... Dealing with large tables (Financial transactions) - Hi, We have in our production database a large table that is storing financial transactions, currently the table has about 90mlns... Optimize SP - Hi, I have created this SP and I am wondering if anyone can help me optimise the sp and its taking... DATEADD shortcut - I inherited some old code with what appears to be some kind of shorthand/shortcut for doing DATEADD(day, x, x). It... Copy image from one folder to another with sql server except duplicate image - Hello, I am planning to implement a script to copy image from one folder to another with sql server script. But... Add two columns to make one total - okay guys, I am stuck. I have two columns that I need to add and make one total for a... Find hierarchyID from different parts of a node? - I started working with the hierarchyID data type. So far it's been pretty great working with the built-in functions rather... Correction Needed - Msg 102, Level 15, State 1, Line 3 Incorrect syntax near ','. [code="sql"];with cte as (select chppon, datediff(day, case when chrcdt between... Dropping primary key improves performance - I am continually plagued by performance problems. When I display the estimated execution plan, the estimated cost and number of... Memory recommendation - I was told that the memory needs to be atleast 30% of the largest database size. Is there a document... OPENXML vs nodes() - Hi, In our invoice SP we pass the data as XML to send all the rows at once to the database. To... 0 is equal to zero length string. Can someone explain how this can be? - --I know this has to do with an implicit conversion of the varchar to int, --but why does the zero... Rebuild Index Task doesn't completes in Maintenance Plan - Hi , I am fairly new to SQL Server Administration. My maintenance plan was running fine with rebuild index task but for... SQL Server Agent jobs not running as scheduled - Hi all, has anyone encountered sql server agent not actually running the jobs it is schdeduled to run?! It was recently... Optimizing Queries - Hi, I have some queries which are taking about 6 seconds to run against a table with 12,000,000 odd records. The... SSIS package creation with txt file having multiple select statements - Hi, I have a TXT File with 20 Select statements. Requirement is Execute each Select statement and Email the output in CSV... PowerBI Desktop - CALENDAR() function - I have a working PBIX file that looks at symptom data over time, and I was trying to do the... |
|
| This email has been sent to [email protected]. To be removed from this list, please click here. If you have any problems leaving the list, please contact the [email protected]. | 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 ©2015 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. Contact: [email protected] |
|
|