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
SQL SERVER - How Many Line of Code Do You Have in Database?

SQL SERVER – How Many Line of Code Do You Have in Database?

June 12, 2015
Pinal Dave
SQL Tips and Tricks
SQL Saturday, SQL Scripts, SQL Server, SQLAuthority Author Visit

After the first SQLSaturday in Sri Lanka, here is a question worth a script: how many lines of code do you have in your database? Here is a way to count them.

Read More
Wooden jigsaw puzzle with scattered pieces on a table, a SQL Server puzzle

SQL SERVER – Puzzle with Year Function

June 9, 2015
Pinal Dave
SQL Puzzle
SQL DateTime, SQL Scripts, SQL Server

After my MONTH() contest, here is a puzzle with YEAR function: what do MONTH and YEAR return for the date 0001-1-1, and why? Take a guess first.

Read More
SQL SERVER – FIX – Error 3702, Level 16, State 3 - Cannot Drop Database "DB_Name" Because it is Currently in Use

SQL SERVER – FIX – Error 3702, Level 16, State 3 – Cannot Drop Database “DB_Name” Because it is Currently in Use

June 5, 2015
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server

Error 3702 says you cannot drop the database because it is currently in use, and even speakers get stuck on it. Here are simple ways to get past it.

Read More
Error message dialog for SQL Server.

SQL SERVER – Error Msg 511 using SQL Server Sparse columns

May 30, 2015
Pinal Dave
SQL Tips and Tricks
SPARSE Columns, SQL Error Messages, SQL Scripts

A reader got Msg 511 when adding a sparse column. Sparse columns reduce the maximum row size from 8060 to 8018 bytes. Here is what that means for you.

Read More
SQL SERVER - What are T-SQL Window Functions? - Notes from the Field #082

SQL SERVER – What are T-SQL Window Functions? – Notes from the Field #082

May 28, 2015
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Scripts

Kathi Kellenberger, one of my favorite SQL authors, explains what T-SQL window functions are and how the OVER clause works in SQL Server.

Read More
SQL SERVER - Adding Reference Data to Master Data Services - Notes from the Field #081

SQL SERVER – Adding Reference Data to Master Data Services – Notes from the Field #081

May 21, 2015
Pinal Dave
SQL Tips and Tricks
Master Data Services, Notes from the Field, SQL Scripts, SQL Server, SQL Server Security

Reeves Smith shows how to add reference data to Master Data Services with the MDS add-in for Excel, so the business can manage it themselves.

Read More
A basket of mixed shells beside one-of-each shells and grouped shells

Interview Question of the Week #020 – What is the Difference Between DISTINCT and GROUP BY?

May 17, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts

Explain the difference between DISTINCT and GROUP BY with a self-contained demo, HAVING filters, and a correlated-subquery plan comparison.

Read More
Previous 1 … 164 165 166 167 168 169 170 … 366 Next
  • Books
  • Testimonials
  • Privacy Policy

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