| A community of more than 1,600,000 database professionals and growing |
| | Great Developers Use Source Control I was rewatching Ike Ellis (b|t) talk on the habits of Great SQL Developers from SQL in the City 2018, and his first item was "Use Source Control". I happen to agree with Ike, which is why I'm writing this, and I really hope you do as well. Certainly at Redgate we've built tools that help you get your T-SQL code into a VCS, but whether you want to work manually, use someone else's tool, use our SQL Source Control or ReadyRoll, I'd ask that you consider getting all your code into some sort of VCS (Version Control System). Ike notes that if viewers did this one thing, he'd be thrilled. I agree. Please, learn to use version control. If you wonder why, listen to Ike's talk. He relates a story that notes that using source control doesn't make you a better developer, but that better developers do use a VCS. This is a habit that helps build better habits and is a step on the journey to you becoming a great developer. Does it help? Well, I think it does in some sense. Developers that use a VCS often build a habit of checking in changes before they try something that might be problematic. They also in a more integrated fashion with their work, and easily rollback problematic code without wasting time (or focus) trying to undo something. They get a previous version back and move forward. I do think that this one thing changes the way you view code, and it provides you with a safety net. This is one of those skills that I'd really recommend you learning, as it will pay back it's value tremendously over time as you learn to depend on the VCS and stop doing things like keeping multiple objects or files around, and trying to sort out what code is where. As you work with others, or even with your past self, you'll learn to include better comments that help you change focus quickly and understand the particular reason behind a version of code. This will help you learn to be a better developer. There are numerous ways to get your T-SQL code into a VCS. There are tools, but there are plenty of PoSh or other scripting methods. In fact, every DBA should get in the habit of scripting out instance level objects (which most tools don't handle). Store them away, and then repeat as you need to make changes. You might be surprised how often you'll be glad you have the previous version of a job, a schedule, a linked server, or more. I learned to keep all my scripts, from replication to running a quick report for a business user, in a VCS. I've never regretted this choice. 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 ( 3.7MB) 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 | | 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 |
| | Free data protection and privacy livestream Many of you will be aware that the new GDPR legislation comes into effect in May and, in light of this, Redgate recently hosted a livestream that included sessions to help you become best equipped to deal with the challenges GDPR brings to compliant database management. Watch the recording |
|
|
|
| | | Deepak Kumeri from SQLServerCentral.com Hot standby disaster recovery process where SharePoint farm will become available in minutes More » |
| Additional Articles from SimpleTalk In the final article in this series, Robert Sheldon demonstrates combining data sources with multiple formats into one Python data frame. More » |
| This webinar will show you how to use Redgate's SQL Test to include automated testing as part of a database DevOps workflow. There will be a walk-through of an automated build and deployment process with DLM Automation in VSTS, and plenty of time to ask questions. More » |
| Solomon Rutzky from SQLServerCentral Blogs Part of having good security is giving users the fewest / least permissions possible in order to execute the code. However,... More » |
| Jason Brimhall from SQLServerCentral Blogs Not long ago, I wrote a rather long article about a new-ish feature within SQL Server Management Studio (SSMS) that... More » |
|
|
| | Today's Question (by Steve Jones): Which components of SQL Server are shared by all instances on the same host, regardless of version? |
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: Installation. 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 | Design and configure SQL Server instances and databases in support of high-throughput applications that are mission-critical and provide consistent response times in the face of variations in user numbers and query volumes. Learn to configure SQL Server and design your databases to support a given instance and workload. Pick up your copy of this great book today at Amazon today. |
|
|
|
|
|
| Yesterday's Question of the Day |
| Yesterday's Question (by Steve Jones): What does this return in Python 3.5? >>> -81 // 4 Answer: -20 Explanation: The // operator is an integer division operator. In this case, the result of the division is converted to an integer, as the floor of the integer. That is 21 in this case. Ref: Python Integer Operations - 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. Upgrade SQL Server 2017 OS Question. - We are planning to upgrade our SQL server environment to 2017. So which will the best OS 2012 vs 2016? What are... For Multiple DB - I want to execute this for Multiple DB how should I use this in Cursor DECLARE @note VARCHAR(2000) ,@id INT DECLARE... Replacing hidden characters - I'm to replace 2 hidden characters CHAR(0xC2) and CHAR(0x92). SELECT Visual studio 2017 data tool SSIS with Oracle OLEDB data source - We recent upgraded our server from 2014 to SQL 2017. And we use visual studio 2017 data tools for SSIS,... Ginormous Production Log File - Help! - the log file for a database for a fairly small database is up to 46 Gig - and growing it is threatening... My Backup Jobs Aren't Working - Permission Issue? - I set up a pair of Job Agents to backup the database for a web application weekly and daily the SQL... Must-have hands-on reports for SQL Server DBA - Hello! I'm fairly new to SQL Server and i have been wondering if you guys masters, professionals who have been in... Multiple instances in one server - Hi, I have a client that has almost 4.000 databases, each for a customer. We are restructuring the server and migrating to SQL... Combine 2 numeric fields to a DATETIME field - Hi, What's the easiest way to take 2 numeric fields and display them as a DATETIME field. I have tried many... Avoid subselects for single condition with max() - Hello, Personally I feel bad about to use subselects in queries, it the condition is only one simple entry. But I... What is faster? Creating calculated field within table or creating calculated fields within query? - Hi, what is faster? Best, Jacek using IF and ELSE if to tell SSMS to jump to that section of code - USE GTM_ODS First, i declare the variable and set it . . . . DECLARE @FTA VARCHAR (10) SET @FTA= 'Korea' IF @FTA = 'Korea' Select...............known good code........................etc ELSE IF... null date parameter for a stored procedure - I have a stored procedure that has a parameter of date named dateStored. The default value is null. In the stored procedure... SQL Server 2014 Reporting issue - I am Configure SQL Server 2014 Reporting server. and i Developed and Deploy Reports using visual Studio 2013 and access... how to take DataBase Backup from remote server to local system - hi.. i want to take the DB Backup from the remote server to the local system.. i'm using sql server2008 enterprise edition and... Migrating only database structure having lakhs of objects - Good Morning Experts, We have a request to elevate only the database structure from Dev to QA. Size of database is... How to get difference between two dates in days and hours? - Hi, I'm looking code to find difference between two dates in days and hours. Example: date1: 2013-04-07 14:45:41.013 - date2: 2013-04-05 10:45:41.013 I... adding variables to a table with an execute SQL task - Hi, I am having issues with a logging table I setting up. I have 5 variables that are populated in the... Links in forum posts - I seem to continuously have major problems when posting a response in the forum and including a link. I use... Move distribution database to another drive - We enabled Replication over the weekend for one of our main prod servers. All went fine, except that the distribution... |
|
| 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 |
|
|