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 plain pale wooden block with a square opening beside a larger vermilion cube.

TRY_CONVERT Integer Validation: Check the Target Type

July 11, 2007
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL NULL, SQL Server

TRY_CONVERT integer validation starts with the destination type and a separate input policy. This example compares blank, signed, decimal and overflowing text without writing data.

Read More
A row of moored rowboats in a quiet harbor, with one weathered red dinghy hidden behind the pilings.

Keeping an Inventory of Every SQL Server You Own

July 11, 2007
Pinal Dave
SQL Tips and Tricks
DBA, SQL Documentation, SQL Instance, SQL Server

Build an Inventory of Every SQL Server you own, including hidden instances, owners, versions, recovery details, and a process to keep it current.

Read More
SQL SERVER - Count Duplicate Records - Rows

SQL SERVER – Count Duplicate Records – Rows

July 11, 2007
Pinal Dave
SQL Tips and Tricks
Duplicate Records, SQL Scripts

A simple query to count duplicate records in a table using GROUP BY, HAVING COUNT(*) and ORDER BY, with the most repeated values first. A video is included.

Read More
SQL SERVER - 2005 - List All Stored Procedure Modified in Last N Days

SQL SERVER – 2005 – List All Stored Procedure Modified in Last N Days

July 10, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Scripts, SQL Stored Procedure

A query on sys.objects to list every stored procedure modified in last N days, or ones created lately. I use 7 days; change it to what you need.

Read More
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 - FIX : Error : msg 8115, Level 16, State 2, Line 2 - Arithmetic overflow error converting expression to data type

SQL SERVER – FIX : Error : msg 8115, Level 16, State 2, Line 2 – Arithmetic overflow error converting expression to data type

July 6, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

Msg 8115, arithmetic overflow error, comes when a value is too big for its column, like 111111 in a TINYINT. Check the value or widen the column definition.

Read More
Previous 1 … 545 546 547 548 549 550 551 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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