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 wide new road ending at an old one-lane stone bridge, cars queued at the bridge and the road behind empty.

Choosing Hardware for SQL Server Now

April 12, 2013
Pinal Dave
SQL Tips and Tricks
Disk, Hardware, SQL CPU, SQL Server

Choosing hardware for SQL Server Now means matching core cost, memory, and storage latency to measured workload needs and future growth.

Read More
A solid slate-colored rectangular tile beside a sage triangular tile, a loose cream cord and a red pebble.

geometry STArea: Measure the Polygon Interior

April 11, 2013
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

geometry STArea measures polygon interior rather than its outline. These local planar shapes show equal areas with different perimeters, a hole subtraction and zero-area instances.

Read More
SQL SERVER - Fix : Error: 217 Implicit conversion from data type datetime to int is not allowed.

SQL SERVER – Fix : Error: 257 Implicit conversion from data type datetime to int is not allowed.

April 9, 2013
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server

Implicit conversion from data type datetime to int is not allowed. I hit this error with ISNULL and a date, and the fix is right in the message: use CONVERT.

Read More
Gouache painting of a wooden chute carrying a red apple from one crate of green apples into another

How to Pass Stored Procedure Result to Another Procedure in SQL Server

April 7, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL Variable

To pass stored procedure result values from one procedure to another, use an OUTPUT parameter. This post tests RETURN codes, INSERT … EXEC and table-valued parameters on a small order demo. It also shows the errors each method raises and when a function is the better tool.

Read More
Dandelion seeds drifting over a garden wall toward neighboring lawns already dotted with dandelions.

Auditing WITH GRANT OPTION: Who Can Hand Out Permissions

April 6, 2013
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Login, SQL Server, SQL Server Security

Audit WITH GRANT OPTION at database and server scope, trace delegated permissions, and remove delegation with a reviewed CASCADE plan.

Read More
SQL SERVER - Group by Rows and Columns using XML PATH - Efficient Concating Trick

SQL SERVER – Group by Rows and Columns using XML PATH – Efficient Concating Trick

April 5, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL String, SQL XML

A reader wanted students and courses grouped by course and instructor in a single row. Here is a simple concatenation trick with XML PATH that does it.

Read More
Two delivery trolleys stopped nose to nose in a narrow corridor, neither able to pass

What Is a Deadlock in SQL Server?

April 4, 2013
Pinal Dave
SQL Performance
Best Practices, Database, SQL Performance, SQL Server

A deadlock in SQL Server is two sessions each holding what the other needs. I caused one on purpose and read error 1205. Why it is not the same as blocking, who gets killed, and the boring fix that works.

Read More
Previous 1 … 269 270 271 272 273 274 275 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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