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
Sage and slate-blue ceramic beads, a small vermilion spacer and an empty ring on a braided cord.

CONCAT_WS: Keep NULL and Empty Strings Separate

July 5, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL NULL, SQL Server, SQL String

CONCAT_WS joins values with a separator, but NULL and empty strings have different effects. These examples keep the original fields beside the combined text and byte length.

Read More
LAST_VALUE window frame illustration, two wooden trays holding smooth stones beside a brass divider.

LAST_VALUE: Set the Window Frame for the Final Row

July 5, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Order By, SQL Server

LAST_VALUE changes with its window frame. Compare implicit and whole-partition frames, order tied rows and preserve a final NULL.

Read More
Three long shallow trays of blue ceramic pebbles beside a small square tray of six ochre and rust beads.

BIT_COUNT: Count Set Bits Without Changing Integer Width

July 4, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server 2022

BIT_COUNT counts active positions in a typed value. Keep integer width visible and distinguish a missing mask from a zero count.

Read More
SQL SERVER - Explanation of WITH ENCRYPTION clause for Stored Procedure and User Defined Functions

SQL SERVER – Explanation of WITH ENCRYPTION clause for Stored Procedure and User Defined Functions

July 1, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server Encryption, SQL Stored Procedure

Use WITH ENCRYPTION to hide the code of a stored procedure or UDF, but keep a copy of the script. Once encrypted, there is no simple way to decrypt it.

Read More
Previous 1 … 81 82 83 84 85 86 87 … 92 Next
  • Books
  • Testimonials
  • Privacy Policy

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