SQLServerCentral - www.sqlservercentral.com

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

Featured Contents

The Voice of the DBA

A Fun Distraction

As we approach the Christmas holiday, this is a time when work usually slows down and many of us spend some time trying to relax and recharge away from the challenges and responsibilities we face in technology. Unless you work in an organization that looks to profit from the holiday, I suspect this is the slowest time of the year for you. Budgets haven't been decided for the new year and many of us aren't pressured with deadlines between Christmas and New Years.

Since lots of us might have some extra time, I thought I'd ask the question about what might entertain you across the next few weeks. I'm sure a few of you have some ideas, perhaps something to catch up on that might be geek related. I'm also guessing that some of you don't have any plans, and might be looking for something to entertain and distract you.

Today I'm asking you to share with everyone a way that you might spend some of your time away from work the next two weeks. Perhaps there's a science fiction book you've been wanting to read. Maybe there's a geeky movie or TV show that you'd like to see. Perhaps you're working on maker project that's fun, like building a drone, a clock, or some other technological gadget. Or maybe you're doing something non technical. Perhaps you've got a cooking project or a car improvement, or just want to learn how to open a lock.

I'll be traveling in Ireland for the next week with my family, so we likely won't be tackling any projects, but I am going to try and read The Three Body Problem, on a recommendation from my oldest. Other than that, if I find time, I might see if I can convince my family to watch some of the classic sci fi I haven't seen yet.

Have a great holiday, and share some of your ideas for leisure activities this week and I'll be back after Christmas.

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 ( 2.6MB) 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 Search

Find SQL in your database for free

For example, want to rename one of your table columns but are not sure what stored procedures reference it? Using Redgate’s free SSMS add-in, SQL Search, you can search for the column name and find all the stored procedures that use it. Find out more and download now.

SQL Prompt

How can you help your team write better, shareable SQL faster?

Find out by discovering 15 Super SQL Tips from Microsoft MVPs and other SQL Server experts. Using SQL Prompt to write, refactor, and share SQL, they show how it strips away the repetition of coding and standardizes it everywhere. View the tips and dow...

SQL Toolbelt

Not enough hours in your day?

The SQL Toolbelt lets you reduce the time spent on SQL Server development and administration. Cambridge University developer David Spaxman, for example, says: “I’m saving 10-12 hours a week using the SQL Toolbelt.” Learn how you can double your productivity, speed up deployments and protect your data. Download a free trial.

Featured Contents

 

Managing Log Files Sizes the Easy Way

Mark Roworth from SQLServerCentral.com

Learn an easy, rough, and ready way to manage log files in this piece. More »


 

Introduction to C# Scripting for SQL Server DBAs

Additional Articles from MSSQLTips.com

Microsoft has introduced an interactive C# scripting technology inside the Visual Studio 2015 environment. In this post, Jeffrey Yao looks at how we can use this to perform SQL Server tasks. More »


 

From the SQLServerCentral Blogs - Reflecting on Ten Years of SQLSaturday

Andy Warren from SQLServerCentral Blogs

It’s hard to believe it’s been more than 10 years since we started the planning for the first event in... More »


 

From the SQLServerCentral Blogs - What’s the little popup window in #SQLPrompt?

Steve Jones from SQLServerCentral Blogs

Awhile back I was working in SSMS and saw this window. It threw me off since I was trying to write... More »

Question of the Day

Today's Question (by Steve Jones):

In SQL Server 2016 SP1+ Standard Edition, how many databases can be put in an Availability Group?

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: always on.

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 Steve Jones):

When I create an Inline User-defined Function, which of these reflects the structure of the function?

Answer: This can return a table from a query inside of a RETURN statement surrounded by parenthesis

Explanation:

An Inline Table Valued Function has some rules. This only returns a table, no output parameters or other values. There is no BEGIN or END keywords. Instead a RETURN statement follows the AS with a query inside of parenthesis.

Ref: Inline User-Defined Functions  - https://technet.microsoft.com/en-us/library/ms189294(v=sql.105).aspx


» 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

Backup SQL2008 db into new SQL 2016 Is this possible? - Our vendor has a new version of their application that we will be upgrading to in the coming year. Today...

Instance Stacking vs. VM Stacking - I'm in a situation where we have the option to put multiple SQL instances on a single VM, or spread...


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

Need sql help - Hi I have a following scenario. File has 4000 records.4(1,2,3,4) sets of records make one final record.I am moving whole set of...

conditional where clause - I have this problem I cannot solve. In a stored procedure I need to make a select query. A parameter...


SQL Server 2014 : Administration - SQL Server 2014

Stored Procedure help - I wrongly posted this in SQL Server 2005 so re-posting here as I couldn't move it. I'm running SQL Server...

Backing up log in High Availability - Hi, I am backing up the transaction log via a maintenance plan every 15 minutes on my secondary high avail server....

logical file name different in sys.database_files vs. sys.master_files - I restored a copy of a database from a 2008r2 instance to a 2014 instance that is clustered with a...


SQL Server 2014 : Development - SQL Server 2014

Long running insert - Hi! Having problem with an insert that take very long time to complete, there is a warning about Type Conversion in...

Is there a way to extract only credit card numbers from text - i have below sample data, i try to extract valid credit card data. But i was not able to do...


SQL Server 2012 : SQL 2012 - General

Copy BAckup Files to Non Prod servers - Hello Experts, I need to copy backup files from Prod server to Non Prod server but the problem is both are...

Let the optimizer do it's thing -- wrong - I've heard this advice everywhere. Don't do things to change the way the sql optimizer produces plans etc. "it's smart...


SQL Server 2012 : SQL Server 2012 - T-SQL

Bitwise & NULL - I have a large number of yes/no columns for a table. Rather than creating a bit field for each, I'd...

Latin small letter u with diaeresis - Hi, I have a source table which is under SQL 2014 and I am doing ETL on it (no transformation logic...

Converting time - from "seconds after midnight" - Hello all, We have time saved in our db in a seconds after midnight format and need to convert it to...


SQL Server vNext : SQL Server 14 - Development

Query tuning - Help needed - Hi all, I've been looking into this query and trying to see if there is any better way to write or...


SQL Server 2008 : SQL Server 2008 - General

How to see index coding - Hi Experts , sp_helptext view_name sp_helptext Procedure_name but how can i see index code : sp_helptext index_name --> i got error from...

NULL Datetime causing NULL string when converting - Here's the Query: [code="sql"]SELECT [description], CASE WHEN startDate IS NULL THEN CASE WHEN endDate IS NULL THEN '(''' + [description] + ''',''' + 'NULL' + ''',' + '''' + 'NULL' + ''',''' + code + ''')' ELSE '(''' + [description] + ''',''' + 'NULL' + ''',' + '''' + CONVERT(VARCHAR(8),...

Log waits - Dear All, I have a database which is causing job failure looking from the error logs, it states that the log...

Confusion Over OR and And Operators - Suppose I want to find customers in the customers table who are not in the US or the UK. To me...


Career : Certification

Alternatives to Microsoft Certifications - Is there any good alternatives to Microsoft's certification route? I found the process of dealing with Microsoft's website traumatic at best....

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