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 - 2005 Row Overflow Data Explanation

SQL SERVER – 2005 Row Overflow Data Explanation

June 23, 2007
Pinal Dave
SQL Performance
SQL Scripts, SQL Server Security, SQL String

Is 8060 bytes per row still the limit in SQL Server 2005? Yes, but varchar, nvarchar, varbinary, sql_variant and CLR types are excluded. That is row overflow data.

Read More
Two identical white enamel jugs side by side on a shelf, one completely empty and one holding a single measure of water.

SQL SERVER – Explanation and Comparison of NULLIF and ISNULL

June 22, 2007
Pinal Dave
SQL Tips and Tricks
DBA, SQL Function, SQL NULL, SQL Scripts, SQL Server

NULLIF returns NULL when two expressions are equal and the first one when they are not. Here is how it compares with ISNULL and the matching CASE expression.

Read More
Three red ribbons on a sail, two streaming smoothly and one fluttering upward, a hand ready on the rope.

A Simple Dashboard From DMVs

June 21, 2007
Pinal Dave
SQL Tips and Tricks
DBA, SQL DMV, SQL Monitoring, SQL Wait Stats

A dashboard from DMVs can show live requests, database state, waits, and backups when its queries refresh without adding load.

Read More
Gouache painting of three differently shaped hourglasses on a stone garden wall, the middle one with red sand

Current Date and Time in SQL Server: GETDATE, SYSDATETIME and More

June 21, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts

You can read the current date and time in SQL Server in eight ways, and they differ in precision and time zone. This post runs them side by side, shows that each one is evaluated once per statement, and picks the right one for defaults, audit columns and reports.

Read More
SQL SERVER - Find Length of Text Field

SQL SERVER – Find Length of Text Field

June 20, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

LEN works for VARCHAR but not for TEXT. To find the length of text field data, use DATALENGTH(textfield). A one line example shows how.

Read More
SQLAuthority.com News - Journey to SQL Authority Milestone of SQL Server

SQLAuthority.com News – Journey to SQL Authority Milestone of SQL Server

June 19, 2007
Pinal Dave
Personal
Database, DBA, SQL Download

My 200th post, a thank you to my readers and a look at the Journey to SQL Authority milestones: interview questions, coding standards, jobs, humor and more.

Read More
SQL SERVER - Delay Function - WAITFOR clause - Delay Execution of Commands

SQL SERVER – Delay Function – WAITFOR clause – Delay Execution of Commands

June 18, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts

The WAITFOR clause delays a batch, stored procedure or transaction until a set time or for an interval. I use it daily after restores. DELAY and TIME examples.

Read More
SQL SERVER - De-fragmentation of Database at Operating System to Improve Performance

SQL SERVER – De-fragmentation of Database at Operating System to Improve Performance

June 17, 2007
Pinal Dave
SQL Performance
Computer Network, DBA, SQL Index, SQL Scripts

Why does de-fragmentation of database files at the operating system level skip MDF files? SQL Server has them open, so stop the services first.

Read More
SQL SERVER - 2005 - UDF - User Defined Function to Strip HTML - Parse HTML - No Regular Expression

SQL SERVER – 2005 – UDF – User Defined Function to Strip HTML – Parse HTML – No Regular Expression

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

A simple SQL Server function to parse HTML and keep only the text, with no regular expressions needed. Copy the UDF and try it on your own data.

Read More
SQL SERVER - sp_HelpText for sp_HelpText - Puzzle

SQL SERVER – sp_HelpText for sp_HelpText – Puzzle

June 15, 2007
Pinal Dave
SQL Puzzle
SQL Scripts, SQL Stored Procedure

What happens when you run sp_HelpText on itself? It prints its own code. Plus tips for long lines, encrypted objects and searching object code.

Read More
Previous 1 … 566 567 568 569 570 571 572 … 589 Next
  • Books
  • Testimonials
  • Privacy Policy

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