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 - Result of EXP (Exponential) to the POWER of PI - Functions Explained

SQL SERVER – Result of EXP (Exponential) to the POWER of PI – Functions Explained

July 9, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

Quick examples of PI(), POWER() and EXP() in SQL Server, and the answer to the title: EXP to the POWER of PI returns 23.1406926327793.

Read More
SQL SERVER - FIX : ERROR Msg 244, Level 16, State 1 - FIX : ERROR Msg 245, Level 16, State 1

SQL SERVER – FIX : ERROR Msg 244, Level 16, State 1 – FIX : ERROR Msg 245, Level 16, State 1

July 8, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Function, SQL Scripts

Msg 244 and Msg 245 come from converting a value to an incompatible data type, often with CAST or ISNULL. Examples of both, and why ISNULL casts to the first type.

Read More
SQL SERVER - Convert Text to Numbers (Integer) - CAST and CONVERT

SQL SERVER – Convert Text to Numbers (Integer) – CAST and CONVERT

July 7, 2007
Pinal Dave
SQL Interview Questions and Answers
Best Practices, SQL Function, SQL Scripts

How to convert text to integer with CAST and CONVERT, whether they fail on alpha-numeric values (yes), and how to pull only the numbers from a string.

Read More
SQL SERVER - Definition, Comparison and Difference between HAVING and WHERE Clause

SQL SERVER – Definition, Comparison and Difference between HAVING and WHERE Clause

July 4, 2007
Pinal Dave
SQL Interview Questions and Answers
Best Practices, SQL Scripts

I asked every candidate the difference between HAVING and WHERE clause, and none got it right. HAVING filters groups, while WHERE filters individual rows.

Read More
SQL SERVER - Comparison : Similarity and Difference #TempTable vs @TempVariable

SQL SERVER – Comparison : Similarity and Difference #TempTable vs @TempVariable

July 3, 2007
Pinal Dave
SQL Performance
SQL Scripts, SQL TempDB

#TempTable and @TempVariable both live in tempdb, but they differ in scope and purpose. Their similarities and differences, explained side by side.

Read More
SQL SERVER - 2005 Comparison SP_EXECUTESQL vs EXECUTE/EXEC

SQL SERVER – 2005 Comparison SP_EXECUTESQL vs EXECUTE/EXEC

July 2, 2007
Pinal Dave
SQL Performance
SQL Cursor, SQL Download, SQL Scripts, SQL Stored Procedure

SP_EXECUTESQL vs EXECUTE/EXEC in SQL Server 2005: what they share for dynamic SQL, like late compile and variable scope, and how they differ.

Read More
Gouache painting: on a bakery bench a narrow stoneware crock holds risen dough that has been sliced flat at its rim by a bench scraper

REPLACE Return Limits: Cast the Input to max

June 28, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

REPLACE return limits can truncate text at 8,000 bytes. Cast the searched input to max first, then compare Unicode and non-Unicode byte lengths.

Read More
Previous 1 … 342 343 344 345 346 347 348 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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