SQLServerCentral - www.sqlservercentral.com

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

Featured Contents

Featured Script

The Voice of the DBA

Infect Your Colleagues with the Learning Bug

Today we have a guest editorial as Steve is away on sabbatical.

If you’re reading this you’re in the habit of investing some time in your career. You scan the SQLServerCentral.com newsletter, read things that are interesting, and at least occasionally give the question of the day a try. You probably supplement that with a book or two, some favorite blogs, some free online webinars, and maybe even a conference like the PASS Summit when funding can be had. You’re investing in you.

I’d also wager that you put more effort into extra learning than your colleagues. Why is that? Maybe you’ve learned the value of investing in you from being promoted or getting a new job or getting a raise for your abilities. Or maybe you learned from the mistake of not investing in you and struggled to find a new job. Or maybe they have adopted the practical yet cynical view of learning what they need to know when they need it and not spending time learning stuff they may never use. Or, maybe, they read some bad articles or got some bad advice or just can’t see the good stuff because of the noise.

Should we encourage them to learn more? And if so, why? The unselfish reason is that a relatively small investment of learning can help them stay employable and maybe even earn a bit more. The selfish reason is that if they learn they’ll push you to learn more and to do more – an upward cycle to be certain. Note that some people just won’t buy into extra effort and if they don’t, that’s ok, it’s not our place to bully them into doing it our way. The big win, if it works out, is that you change the culture of your team toward learning, and that leads to all kinds of good things.

So you want to encourage them to learn more – how do you do that? I’ve had a lot of success with sharing interesting and relevant links via email. If they choose to read it they get something with zero noise. If they respond, I’ll ask them what they think, or mention that the author has written good stuff on other topics, or maybe mention someone else who has written on the same topic. It’s a slow trickle of email, not even one a week when I do it, because I want it to be really relevant or interesting. Email isn’t the only way. I’ve taken colleagues to user group meetings and met up with them at SQLSaturday, suggesting topics and speakers that I think they will most enjoy.

It’s soft sell and slow sell, if you can call it selling at all. What I try to offer is a window into a world where there is a lot of interesting stuff to learn that can make work easier and more interesting. It’s showing that while the search engine of your choice is good for answering a question, the kind of learning you and I do is to learn the questions. It’s modeling life-long learning and what I llike best about it is that it’s humble – it’s a way of saying here is yet another thing I didn’t understand or know well enough.

I’ll close by saying that you can lead the horse to water at best. Don’t get frustrated when a colleague is less enthused than you. You’re not at the same place in life or career and pushing will just frustrate everyone. Do what you do, share lightly and specifically, and what to see what happens.

Andy Warren from SQLServerCentral.com

Join the debate, and respond to today's editorial on the forums

ADVERTISEMENT

As Corrupt as it Gets

Data recovery at its best

With Paul Randal and the DBA Team

Read the free article

Featured Contents

 

Data Mining: Part 11 XMLA and the automation

Daniel Calbimonte from SQLServerCentral.com

In this lesson we will learn the basis about XMLA and we will execute the command line to create DM objects. More »


 

SQL Server Analysis Server (SSAS) KeyColumn vs NameColumn vs ValueColumn

Additional Articles from MSSQLTips.com

What is the difference between the KeyColumn, the NameColumn, and the ValueColumn for a dimension attribute in SQL Server Analysis Services? When should you use each one for a dimension attribute? Check out this tip to learn more. More »


 

SQL Monitor Metric: Memory used by ad hoc queries running once

Press Release

This metric measures the amount of memory used by the total number of ad hoc queries in the plan cache that have only run one time. This value is only accurate for the instant the query is run, and the value can change radically from one capture time to the next. More »

Question of the Day

Today's Question (by Gary Varga):

Given the following PowerShell script:

$databaseName = "DB1"

Function CheckConnection1
{
 Write-Host $databaseName
}

Function CheckConnection2
{
 Param ($databaseName)

 Write-Host $databaseName
}

$databaseName = "DB1"

Function CheckConnection1
{
 Write-Host $databaseName
}

Function CheckConnection2
{
 Param ($databaseName)

 Write-Host $databaseName
}

Function CheckConnection3
{
 if(!$databaseName)
 {
  $databaseName = "DB3"
 }

 Write-Host $databaseName

 Return  $databaseName
}

Function CheckConnection4
{
 $databaseName = "DB4"

 Write-Host $databaseName
}

Function CheckConnection5
{
 Param ($databaseName)

 $databaseName = "DB5"

 Write-Host $databaseName
}

Function CheckConnection6
{
 Param ($databaseName)

 Write-Host $databaseName
}


$databaseName = CheckConnection1 $databaseName
$databaseName = CheckConnection2 $databaseName
$databaseName = CheckConnection3 $databaseName
CheckConnection4 $databaseName
CheckConnection5 $databaseName
CheckConnection6 $databaseName

What is written to the console?

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 2 points in this category: powershell.

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 Hardware will provide the fundamental knowledge and resources you need to make intelligent decisions about choice, and optimal installation and configuration, of SQL Server hardware, operating system and the SQL Server RDBMS.

Pick up your copy of this great book from MVP Glenn Berry at Amazon today.

Yesterday's Question of the Day

Yesterday's Question (by Mitesh Oswal):

What will be output of the following select statement

DECLARE @NCHAR NCHAR(10) ='ABC' ,

        @NVARCHAR NVARCHAR(10) = 'ABC'

SELECT

DATALENGTH(@NCHAR),

DATALENGTH(@NVARCHAR),

LEN(@NCHAR),

LEN(@NVARCHAR)

Answer: 20,6,3,3

Explanation:

In order to get the number of characters excluding trailing blanks we would use the LEN() function, For all other purposes we'd use DATALENGTH().

Trailing spaces are not taken into account for the LEN function,

http://msdn.microsoft.com/en-us/library/ms190329.aspx

http://msdn.microsoft.com/en-us/library/ms173486.aspx


» Discuss this question and answer on the forums

Featured Script

Physical Server or a Virtual Machine?

sreekanth bandarla from SQLServerCentral.com

Simple T-SQL Script to know whether your SQL Server is running on a Physical box or a VM. Note: This Script works only on 2008R2 SP1 and above.

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.

SQL Server 2014 : Administration - SQL Server 2014

FiFa>>>?????????? ??????????????????·???·????????? - ??? ?????? ???????? ???????? ?? ?? ??? 2014?7?14?. Live stream online ??? ?????? ????????? HNK ????????????????????????????????????????????2014?? ?????????:???????????????????????????????????????? ???????????? ?????????????????????????????????????2014 ?? - ????????????????????????????????????2014 2014?7?9?. [url=http://watchsoccerlivetv.blogspot.com/]http://watchsoccerlivetv.blogspot.com/[/url]

TV:::?????????? ??????????????????·???·????????? - ??? ?????? ???????? ???????? ?? ?? ??? 2014?7?14?. Live stream online ??? ?????? ????????? HNK ????????????????????????????????????????????2014?? ?????????:???????????????????????????????????????? ???????????? ?????????????????????????????????????2014 ?? - ????????????????????????????????????2014 2014?7?9?. [url=http://watchsoccerlivetv.blogspot.com/]http://watchsoccerlivetv.blogspot.com/[/url]

TV:::??? ?????? ???????? ???????? ?? ?? ??? 2014?7?14? - ??? ?????? ???????? ???????? ?? ?? ??? 2014?7?14?. Live stream online ??? ?????? ????????? HNK ????????????????????????????????????????????2014?? ?????????:???????????????????????????????????????? ???????????? ?????????????????????????????????????2014 ?? - ????????????????????????????????????2014 2014?7?9?. [url=http://watchsoccerlivetv.blogspot.com/]http://watchsoccerlivetv.blogspot.com/[/url]

?????????? ??????????????????·???·????????? - ??? ?????? ???????? ???????? ?? ?? ??? 2014?7?14?. Live stream online ??? ?????? ????????? HNK ????????????????????????????????????????????2014?? ?????????:???????????????????????????????????????? ???????????? ?????????????????????????????????????2014 ?? - ????????????????????????????????????2014 2014?7?9?. [url=http://watchsoccerlivetv.blogspot.com/]http://watchsoccerlivetv.blogspot.com/[/url]

??? ?????? ???????? ???????? ?? ?? ??? 2014?7?14? - ??? ?????? ???????? ???????? ?? ?? ??? 2014?7?14?. Live stream online ??? ?????? ????????? HNK ????????????????????????????????????????????2014?? ?????????:???????????????????????????????????????? ???????????? ?????????????????????? ;-)???????????????2014 ?? - ????????????????????????????????????2014 2014?7?9?. [url=http://watchsoccerlivetv.blogspot.com/]http://watchsoccerlivetv.blogspot.com/[/u

How to repair .mdf file? - My sql databases in SQL Server 2014 has the status "suspend" as I saw in SQL Management Studio. I can't...


SQL Server 2014 : Development - SQL Server 2014

sp_send_dbmail truncates when attaching query results. - Installed SQL Server 2014 CU1. While testing sp_send_dbmail I noticed the query results, when attached are cut off or truncated....


SQL Server 2012 : SQL 2012 - General

Locking behavior on indexed views - Hey, I have a question regarding the locking behavior of indexed views. We have a 3rd party application and something like...

events calendar not display - http://edu2share.com/video/view/608 http://www.youtube.com/watch?v=aebze_xdCSo http://www.nuovicittadini.info/en/node/32078 http://www.youtube.com/watch?v=KmJBpDwtS3Y http://www.youtube.com/watch?v=ZzJfJgX3q00 http://www.nuovicittadini.info/en/node/32145 http://forum.zqgame.com/viewthread.php?tid=147461 http://edu2share.com/video/view/610

Mirroring - Hi experts, what are the commonly used system tables for mirroring

Problems installing updates to SQL2012 Enterprise Edition - I'm getting an error when I install the update. I've tried installing SP2, and it updated the components, but not...


SQL Server 2008 : SQL Server 2008 - General

The bride looked stunning - [url=http://www.nuovicittadini.info/en/node/39507]FIFA World Cup Final 2014 Live Stream[/url]

what are my options? Rollback taking an age. - So a process was started last night to make an update to every row of a large table (380 million...

Format File issue with Bulk Insert - Have the following .txt file: [code="other"]fname,HTMLContent,email "Kelly","<span style=""font-family:Arial,sans-serif; font-weight:normal; color:#0c2577; font-size:16px;"">Solutions","kelly@reynold.com"[/code] Using the following format file: [code="other"]9.0 3 1 SQLCHAR 0 150 "," 1 fname "" 2 SQLCHAR...

High Fragmentation Index ... - Hi All, At the moment I am tuning the indexes with high fragmentation ..I created a maintenance plan for rebuild...

use trigger or better option? - I have a process where I reload 20 reports on a remote server each morning. This completes anywhere between 4:30...

DR setup for a customer server - One of our customers has requested to setup a Disaster recovery site.. Their motive is just to cover up for some...


SQL Server 2008 : SQL Server Newbies

Flatten table and count number of occurrences per empid - Hi all, I have a table that contains multiple activities by empid and I need to rollup counts on each activity. Basically...


SQL Server 2008 : SQL Server 2008 Administration

SQL SERVER PATCHING USING SCCM - Hi, Can we patch the SQL Server using SCCM? Please provide me the steps to do it or provide me any...


SQL Server 2005 : Administering

SQL is not able to start after service acct changed - Hi, Have a SQL 2005 Instance that fails to start with error below.....I had to change the service acct.. "SQL Server (MSSQLSERVER)...


SQL Server 2005 : T-SQL (SS2K5)

finding gaps between termination date and next enrollment date and filter by gap >= 45 days for year 2013 - Hello experts! I need your help. I would like to calculate the date gap between the first termination date and the next...


Reporting Services : SSRS 2012

Balance Sheet/Income Statement Report using SSRS - I am trying to create a balance sheet, income statement report using ssrs. Due to lack of experience, I am...


Data Warehousing : Integration Services

In control flow: how to create date time stamp to use in downstream tasks. - I have a control flow which unzips 14 unique files, drops them into a process folder, and then after they're...


Data Warehousing : Analysis Services

Need current week and previous week using Date parameter - Hi, I have the Date].[Year - Week - Date].[Week] hierarchy and now i want sales of previous week and current week for comparision...


SQLServerCentral.com : Anything that is NOT about SQL!

Anyone going to SQL Bits 17-19 June Telford ICC, UK - Is anyone going to SQL bits who would like to meet up on the Wednesday or Thursday. @Gail - I know you...

Are the posted questions getting worse? - Is it me, or are the posted questions getting worse these days? I just read a post by someone apparently in...


SQL Server 7,2000 : Administration

Space used in Data File of filegroup is not uniform in SQL server - Hi Folks, I have created database which has 1 file group with 4 data files, where two data files are created...

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 ©2014 Red Gate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
Contact: webmaster@sqlservercentral.com