This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
A red bead on a progress rail with coarse and fine reporting intervals

What does Keyword STATS Indicates in Backup Scripts in SQL Server? – Interview Question of the Week #138

September 3, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Backup and Restore, SQL Scripts, SQL Server

Many DBAs add STATS to their Backup Scripts without knowing why. It prints percent complete messages while the backup runs. Here is how it works.

Read More
Two plant trellises begin at different points, so an early flower is outside the shorter one

What is the Biggest Limitation of ISDATE() Function? – Interview Question of the Week #137

August 27, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL DateTime, SQL Function, SQL Server

Why does ISDATE(‘6666-04-30’) return 1 but ISDATE(‘1111-04-30’) return 0? Here are what I see as the two biggest limitations of the ISDATE() function.

Read More
A to Z alphabet smiley faces.

How to Allow Only Alphabets in Column? – Interview Question #136

August 20, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys, SQL Function, SQL Scripts, SQL Server

Question: How to Allow Only Alphabets in Column? Answer: This was a real world scenario and I have mixed feeling about this kind of question.

Read More
Two separate trays of objects presented together in one tray

How to Show Results of sp_spaceused in a Single Result? – Interview Question of the Week #135

August 13, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Stored Procedure

How do you show results of sp_spaceused in a single result? My co-interviewer asked this. I think it is a poor interview question, but here is the answer.

Read More
A brass object sits in a smaller case inside a selected large chest

How to Build Three Part Name from Object_ID? – Interview Question of the Week #134

August 6, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Scripts, SQL Server, System Object

If you only have an object_id, can you get the database, schema and object name? Here is a simple script that builds the Three Part Name from Object_ID.

Read More
A permanent shared workbench holds separate personal trays beside a foldable private bench

How is Oracle Temporary Table Different from SQL Server? – Interview Question of the Week #133

July 30, 2017
Pinal Dave
SQL Interview Questions and Answers
Oracle, SQL Server, Temp Table

How is an Oracle temporary table different from SQL Server temp tables? A question from our hiring interviews, with the syntax on both sides.

Read More
Two repeated runs of five work aprons and two rest scarves on a clothesline

How to Count Week Days Between Two Dates? – Interview Question of the Week #132

July 23, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL DateTime, SQL Scripts, SQL Server

How do you count Week Days between two dates in SQL Server? Here is a short script I built from scratch using spt_values and DATEPART.

Read More
Previous 1 … 22 23 24 25 26 27 28 … 58 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com