SQLServerCentral - www.sqlservercentral.com

A community of more than 1,600,000 database professionals and growing

Featured Contents

The Voice of the DBA

GUI or CLI

There's a debate over on Scott Hanselman's blog about the GUI v CLI in the comments for his Azure CLI post. It's a blend of people complaining about one or the other, mixed with a few (I think) rational people that recognize the GUI and CLI are both valuable. In fact, there's one person that mentions SQL Server and the SSMS GUI that can generate scripts for later use.

I like the command line, but sometimes it's hard. I don't remember the syntax for a variety of commands, especially PowerShell where I use tab completion constantly. I don't even remember options for many T-SQL functions, because I don't use them very often. I may find myself depending on Google or BOL for a quick refresher, but often I'll just use use SSMS if I can to pick some items in the GUI, click Script, and then examine the code before executing it.

I really don't mind someone wanting to use the GUI the vast majority of the time they're working, but someone should be comfortable with a CLI interface. If there is a task that need repeating multiple times, then I really want everyone using the CLI. It doesn't matter how you've written the code, executing something from a CLI is much more reliable than having to click around a GUI, trying to be consistent and quick, over and over. The CLI just works better.

I'd like to think that most computer professionals these days are able to use a CLI, even if they aren't too comfortable. The growth of PoSh as a wrapper around so many features and functions in the MS stack certainly contributes to this, as well as fact we seee so much code as code, not as images from a GUI. Github and collaboration, as well as lots of code samples in articles should mean that many people are comfortable working with code and executing it from some CLI.

I'm sure there are plenty of exceptions. Someone that works mostly with SQL Server might be happy running code in a query window and use SSMS for everything else. They might not even be aware that they can build things like SQL Agent Jobs from a CLI. I get it, the GUI is quick and easy. I use it for jobs, for Extended Events, and various other tasks where the code is complex and cumbersome. However, if something is easier from a command line, I like using it. Perhaps that's why my console of choice, ConEmu, is always just a CTRL+~ away.

Steve Jones from SQLServerCentral.com

Join 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. feed

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
SQL Clone

NEW product launch: SQL Clone - live stream this March!

Data Platform MVPs Grant Fritchey and Steve Jones show how to create database copies in seconds using MBs of disk space with Redgate’s NEW database provisioning tool SQL Clone! Tune in to this live stream session on March 29th 2017. Register now.

Featured Contents

 

Adding Years, Months and Days

Pete Revell from SQLServerCentral.com

Adding Years, Months and Days to Years, Months and Days, with Bonus UK Public Holiday calculation. More »


 

Managing Azure SQL Database Recovery

Additional Articles from Database Journal

Azure SQL Database offers several benefits, built into the underlying cloud infrastructure, that leverage resiliency and redundancy. You can take advantage of this functionality to facilitate failover and failback in response to events that affect availability of an Azure region. More »


 

From the SQLServerCentral Blogs - SQL Server 2016 SP1 – A significant change to licencing

matthew.mcgiffen 73574 from SQLServerCentral Blogs

Myself of all people am probably least likely to get excited by licencing changes in a product, but with the... More »


 

From the SQLServerCentral Blogs - Power BI Custom Visuals Class (Module 41 – Image Viewer)

Devin Knight from SQLServerCentral Blogs

In this module you will learn how to use the Image Viewer Power BI Custom Visual.  The Image Viewer visual... More »

Question of the Day

Today's Question (by Steve Jones):

What is the U-SQL SQL.MAP datatype used for?

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: U-SQL.

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

Introducing Microsoft SQL Server 2016: Mission-Critical Applications, Deeper Insights, Hyperscale Cloud

With Microsoft SQL Server 2016, a variety of new features and enhancements to the data platform deliver breakthrough performance, advanced security, and richer, integrated reporting and analytics capabilities. In this ebook, we introduce new security features: Always Encrypted, Row-Level Security, and dynamic data masking; discuss enhancements that enable you to better manage performance and storage: TemDB configuration, query store, and Stretch Database Get your copy from Amazon today.

e

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

How do I start SQL Server with minimal configuration?

Answer: Use the -f startup parameter

Explanation:

The -f parameter will start SQL Server with a minimal configuration.

Ref: Start SQL Server with Minimal Configuration - 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.

SQL Server 2016 : SQL Server 2016 - Administration

File Share Witness in Multiple Clusters - Morning All, Can a single File Share Witness (about 10GB in size) be used to provide quorum for multiple clusters. I have...

SQL Server 2016 DBA Training - Hi people, I've been working as a SQL developer for a number of years, with an increasing amount of DBA work...


SQL Server 2016 : SQL Server 2016 - Development and T-SQL

Find out consecutive date difference by comparing with master table - Dear All, Please help me to sort out it I have reporttable where the fault report date and complete date is inserted...

Need Correct Index for slow query - This is the query which app uses and it takes 30 seconds. select * from tablename FOR XML AUTO, ELEMENTS Table is...

Encapsulating complex logic without using a scalar UDF - I have business logic for date comparisons that go beyond the typical DATEDIFF functionality.  For example, when determining the number...


SQL Server 2014 : Administration - SQL Server 2014

How to update a column in one DB from another DB? - Both DB's are attached to my SQL Sever 2014 instance. DB1 = farwest DB2 = sanroque I need to update the DB1 table, which holds...

Availability Group and Confluence - Is anyone hosting a Confluence instance and using AG? We are testing and consistently getting errors that the user cannot login...

DB restore stucks after recovery step - Hi, trying to restore my db for testing https://www.sqlservercentral.com/Forums/1862799/checkdb-Multiple-IAM-pages-for-object I splitted the restore process into 2 steps, i restore full with...


SQL Server 2014 : Development - SQL Server 2014

Excel Import - Truncation Error - I'm trying to import data from a spreadsheet, but the last column containing URLs is giving problems Error 0xc020901c: Data Flow...


SQL Server 2012 : SQL 2012 - General

Question about indexing - Hi, I am trying to learn about indexing. I have looked all over and cannot get a straight answerer as to what...

Replication topology doubt - Hi, We need to replicate 3 DBs like this, using sql transactional replication 2.way: Server=2 (active); Database=DBco <-> Server=1 (passive); Database=DBco Server=2 (active);...

Unknown Physical_Device_Name Path for SQL Server Backups - While cleaning up and documenting backup processes in an environment that is new to me, I have come across several...


SQL Server 2012 : SQL Server 2012 - T-SQL

prefix is not preserved in xml - hi,     This link has following https://msdn.microsoft.com/en-us/library/bb510442.aspx Namespace Prefixes Namespace prefixes are not preserved. When you specify XQuery against an xml type column, the serialized...


SQL Server 2008 : SQL Server Newbies

need Help for failed JOB - Hi All, I had problem for job schedule in my SQL anyone can help for step by step solving this issue...


Reporting Services : Reporting Services

Report with multiple parameters. - My report creates a patient list of radiology patients and has a parameter for ExamType, Location, Ordering MD, and Dictating...


Data Warehousing : Integration Services

Prevent Loading bad data into Table from excel spreadsheet - How do I prevent the bad data from excel loading into a table? I already have a pacakge loading from excel...

Source Code Control organization - I am admittedly a newbie to Source Code Control (TFS in our case). We started the process by storing all...

Searching for strings in SSIS packages... - I recently had to examine an existing SSIS package and I noticed that in several job steps within the package,...


Data Warehousing : Strategies and Ideas

Request for sanity check of basic ETL process and database placement - Is anything below obviously impractical, or against accepted practices in the below flow chart for a PoC ETL? I'm a...


SQL Server 7,2000 : Data Corruption

16 inconsistencies found running DBCC checkDB - I was getting 16 inconsistency errors on one table - and it appears may have been for awhile.. I was able...

This email has been sent to {user_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.
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 ©2017 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
Contact: webmaster@sqlservercentral.com