| A community of more than 1,600,000 database professionals and growing |
| | Making Choices I wrote about shutting down some travel for the foreseeable future. Its been a long couple of years for me. If you look at my speaking schedule, I've presented at an average of 20+ events for the last few years. This year was a few less, but I've had more travel outside of that. By the end of the year, I'll have spent 9 weeks outside of the US. While some of that is vacation, it's a lot of time away from home. In addition to the events, I've had other travel for work that doesn't appear there, as well as some vacation time for volleyball (my daughter competes) and family time. Lately I've been seeing all the tweets and posts about SQL Bits 2018. I won't be going, which is sad for me. I love the event, it's my favorite and my wife would love to go with me sometime, maybe in 2018. As I see speakers submitting and the excitement building, it feels like I should just send in a session, but I realize I need to stick with my decision. Making choices is hard. For a couple years I've been saying I need to travel a bit less, but I haven't done a good job of slowing down my travel. I find that I've done that with other work demands in the past (and personal ones), and I see plenty of other people doing the same thing. This fall I made the commitment that I'd limit travel next year, and I talked to my manager as well. We agreed on a plan, and she's holding me to the plan, even when I get a bit excited about new events. My current job allows me some flexibility in how I work, but in past jobs I've had similar ways that I could change my job, if I made the effort do so. Your employer will ask a lot of you, and often keep asking. I've certainly had some bosses that were unreasonable and demanded too much, but most were willing to work with me. It took me a number of years to learn to push back and say no, as well as learn to make choices among different situations. I find if I don't make choices, I'll tend to over commit and under deliver, while being disappointed in myself that I couldn't make it all work. Or I become a little burned out, spending too much time trying to keep all the balls in the air and running myself ragged. Balance is important, not only between work and life, but also within work. I find that the more I make choices and stick with them, the better adjusted I am in all of my life. I'm a little sad that I won't speak at as many events next year, but I'll pick and choose a few, and hopefully get some things done at work that I've been putting off. I'm also hoping that life will seem less chaotic and busy in general, with a little more time to relax and smell the sawdust. 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.3MB) 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 | | Database migrations inside Visual Studio Feeling the pain of managing and deploying database changes manually? Redgate ReadyRoll creates SQL migration scripts you can use to version control, build and release, and automate deployments. Try it free |
| | The industry standard for comparing and deploying SQL Server database schemas Trusted by 71% of Fortune 100 companies, SQL Compare is the fastest way to compare changes, and create and deploy error-free scripts in minutes. Plus you can easily find and fix errors caused by database differences. Download your free trial |
|
|
|
| | | Paul Hunter from SQLServerCentral.com Create the definition of your holidays and have them available for any year. Create a Calendar including holidays and business/work dates. More » |
| SQL Compare includes many options to make comparing objects easier on the developer. Auto mapping is one of these, and if often saves a little time and frustration. However, there are times that you many need to customize your mapping, and this gives you a technique for doing so. More » |
| Additional Articles from MSSQLTips.com Vitor Montalvao explains how to work with the basic configuration settings for a SQL Azure database from the Microsoft Azure portal itself. More » |
| Steve Jones from SQLServerCentral Blogs I ran across a post from a tester, wondering how to write a query for birthday months. This makes sense,... More » |
| Cláudio Silva from SQLServerCentral Blogs Last night, I received Adam Machanic’s (b | t) newsletter “Announcing sp_whoisactive v11.20: Live Query Plans”. For those who don’t know about... More » |
|
|
| | Today's Question (by Steve Jones): I have a table with a few rows in it. ContactID FirstName 1 Tom 2 Peyton 3 Eli 5 Drew I have this code. What happens when I run this? DECLARE @name VARCHAR(100) = 'Bob'; SELECT @name = c.FirstName FROM dbo.Contacts AS c WHERE c.FirstName = 'Joe' PRINT @name |
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: T-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 | T-SQL Querying (Developer Reference) Squeeze maximum performance and efficiency from every T-SQL query you write or tune. Four leading experts take an in-depth look at T-SQL’s internal architecture and offer advanced practical techniques for optimizing response time and resource usage. Get your copy from Amazon today. | | |
|
|
|
|
|
| Yesterday's Question of the Day |
| Yesterday's Question (by Steve Jones): I have a table with data that looks like this: OwedTo OwedBy Beer Steve Ally 2 Steve Tugberk 1 Steve Dave 1 Steve Grant 4 Grant Ally 4 Grant Dave 2 Grant Steve 1 Ally Grant 2 Ally Dave 3 Ally Steve 4 I decide to write an aggregate like this: SELECT bt.OwedTo , SUM(bt.Beer) FROM dbo.BeerTally AS bt GROUP BY bt.OwedTo WITH ; |rollup> Which operator in the WITH clause results in more rows in the results? Answer: Cube They return the same number of rows Explanation: Both queries return the same number of rows. Rollup includes a subtotal for each group. CUBE will include a grant total as well. In this case, with only one group, the results are the same. Ref: The Difference Between Rollup and Cube - http://www.sqlservercentral.com/articles/T-SQL/163572/ Group by - click here Rollup » 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 Restore takes long time - how do I clear committed transactions from log ? - Hi everyone, There is so many blog posts and articles out there about this case and I have been reading, but... ENCRYPTBYPASSPHRASE Output Length Difference - We noticed there is a difference in the length of the output from SQL Server 2008 and 2014 versus 2017.... INDEX MATCH IN SQL.... IS IT POSSIBLE?? - Mail – craig.jenkins@monmotors.com & dm_os_process_memory shows more memory usage than dm_os_memory_clerks & dm_os_buffer_descriptors - Hi, I'm looking for some help finding some missing memory and how to reclaim it without restarting the SQL service. The original... OR in JOIN criteria - Apologies if this has been asked before, searching for it yields too many results. I've been eliminating NOT EXISTS in some... Calculating varying process capacity - Hello again, SQL experts, I'm facing an interesting challenge. I have a production process that runs from 8 AM to 7... Full text catalogmaintenance - Hello I have never really done anything with full text catalogs apart from install the service, but as a DBA, should... Creating databse backups automatically in specific period of time - Hi Guys, I am creating back ups of my database using code: USE QlikView; GO BACKUP DATABASE QlikView TO DISK = 'C:\Program... Replacement for rowmodctr in sys.sysindexes? - I have a proc where I update stats based on rowmodctr value in sys.sysindexes. But because this view is deprecated... Log shipment failed - Hi there, Had a log shipment process implemented successfully since months for 5 databases from primary to secondary server Everything worked fine... I got date conversion error - Dear colleagues, I got a very peculiar situation. Here is my code: Declare @startdate as datetime Declare @enddate as datetime Declare @newfee as... Row count differences with CTE vs Temp table Vs view - Hi All, Just for curiosity to see if anyone else has come across an issue like this - SQL 2014 - not sure... SQL 2012 - Interview Questions (Sample) - Hi Guyz, Warm greetings ! I'm very happy to post some interview questions today which I'd faced recently via a Skype. Could you please... how does sql stmt gets executed ? - Hi All, Trying to understand how does below sql stmt gets executed. The reason why I am asking is , I... ALIGNMENT - Hello all, I have the quest to make Procedure again. But this time I have the syntax, but I dont know how... UPDATE with JOINS and WHERE clause - The following code gives me the correct value for HV2Norm. SELECT IDBew, ZPTDoelgroep, ZPTIND, HV2Norm FROM ( SELECT B.IDBew, B.ZPTDoelgroep, B.ZPTIND, M.HV2Norm FROM MasterTabelHV2NormNew... SQL Server instance slowness - Good Morning Experts, Application users have reported slowness. We checked SQL Server CPU and its fine. We added some memory. We... Report Execution Has Expired or Cannot Be Found - I wrote a python program to bulk download ssrs reports. The program sends a url to the browser to download an... How to Automate the closing of a window? - What is the best way to automate the clearing out of an error message that pops up a few times... Design Input for ETL of OLTP Database - Hello All - I wasn't sure exactly where my question fit, so thought i'd put it here first. I just started... |
|
| 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 ©2017 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. Contact: webmaster@sqlservercentral.com |
|
|