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
An unfinished rope-knot challenge sits between two empty interview chairs

Interview Question of the Week #008 – Write Scripts to Convert String to Title Case or Proper Case

February 22, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL String

Convert string values to title case with a corrected function, ordered SQL Server aggregation, and clear limits for personal names.

Read More
Gouache painting: a plain cream ribbon unrolled along a short wooden shelf, the ribbon stopping at the shelf edge where one vermilion pin marks the last spot

SQL SERVER – Quiz with DATEADD Function – SQL Puzzle

February 17, 2015
Pinal Dave
SQL Puzzle
SQL DateTime, SQL Function, SQL Scripts, SQL Server

The DATEADD function returns the last day of the month when the day does not exist, so one month after January 31 is February 28. This post keeps the quiz, runs every query on SQL Server 2025 and explains the month rule and the Msg 517 overflow with the real results.

Read More
SQL SERVER - Msg 8152, Level 16, State 14 - String or Binary Data Would be Truncated

SQL SERVER – Msg 8152, Level 16, State 14 – String or Binary Data Would be Truncated

February 14, 2015
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Error Messages, SQL Scripts, SQL Server

Msg 8152, String or binary data would be truncated, is an error most developers have seen. Here is what causes it and why the setting that hides it needs care.

Read More
A letter slot seen from inside a front door, with a fine metal cage fitted behind it.

SQL SERVER – One Trick of Handling Dynamic SQL to Avoid SQL Injection Attack?

February 6, 2015
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Scripts, SQL Server, SQL Server Security

SQL Injection is not a SQL Server problem, it comes from coding habits. Here is one trick of handling dynamic SQL to avoid SQL injection attack on a search page.

Read More
SQL SERVER - Invoking a Stored Procedure from Azure Mobile Services - Notes from the Field #066

SQL SERVER – Invoking a Stored Procedure from Azure Mobile Services – Notes from the Field #066

February 5, 2015
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Server, SQL Server Security

Can you call a SQL stored procedure from Azure Mobile Services? In Notes from the Field #066, Kevin Hazzard shows how, with a bit of humor along the way.

Read More
SQL SERVER - FIX - Error 3201 - Cannot open backup device. Operating system error 3

SQL SERVER – FIX – Error 3201 – Cannot open backup device. Operating system error 3

January 30, 2015
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server

BACKUP DATABASE failed with Error 3201, cannot open backup device, operating system error 3. The cause was a missing default folder. Here is the fix.

Read More
A hand picking the three ripest red strawberries from each plant along a garden row

Top N per Group: Three Ways and Which Is Fastest

January 29, 2015
Pinal Dave
SQL Performance
Execution Plan, Ranking Functions, SQL Performance, SQL Server, SQL Top

Compare top N per group with ROW_NUMBER, APPLY and a correlated subquery, define tie behavior, and measure plans with a supporting index.

Read More
Previous 1 … 243 244 245 246 247 248 249 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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