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 T-SQL Paging Query Technique Comparison (OVER and ROW_NUMBER()) - CTE vs. Derived Table

SQL SERVER – 2005 T-SQL Paging Query Technique Comparison (OVER and ROW_NUMBER()) – CTE vs. Derived Table

June 11, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Joins, SQL Paging, SQL Scripts, SQL Server

Paging in SQL Server 2005 with ROW_NUMBER: CTE vs. derived table. I compare both methods and show they give the same performance for common queries.

Read More
SQL SERVER - Retrieve - Select Only Date Part From DateTime - Best Practice

SQL SERVER – Retrieve – Select Only Date Part From DateTime – Best Practice

June 10, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL DateTime, SQL Function, SQL Scripts, SQL Server

The best way to select only the date part from a DATETIME value: my team member’s DATEADD and DATEDIFF method, and the CONVERT style 111 method I prefer.

Read More
SQL SERVER - UDF - Function to Display Current Week Date and Day - Weekly Calendar

SQL SERVER – UDF – Function to Display Current Week Date and Day – Weekly Calendar

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

A script and UDF that show each current week date with its day, from Sunday to Saturday, using DATEPART and DATEADD. Handy for a weekly calendar report.

Read More
SQL SERVER - User Defined Functions (UDF) Limitations

SQL SERVER – User Defined Functions (UDF) Limitations

May 29, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function

Why are stored procedures more flexible? Here are the User Defined Functions (UDF) limitations: fewer input parameters, no GETDATE(), one result set, and more.

Read More
SQL SERVER - 2005 Limiting Result Sets by Using TABLESAMPLE - Examples

SQL SERVER – 2005 Limiting Result Sets by Using TABLESAMPLE – Examples

May 27, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Random, SQL Scripts

TABLESAMPLE returns a random sample of rows by percent or row count. My examples show why the same query returns a different number of rows each time.

Read More
SQL SERVER - Script/Function to Find Last Day of Month

SQL SERVER – Script/Function to Find Last Day of Month

May 20, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Utility

A one line DATEADD query to find the last day of month for any date. It handles leap years: February 2008 gives the 29th and 2007 the 28th.

Read More
Function icon.

SQL SERVER – Math Functions Available in SQL Server

May 19, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server

One list of the Math Functions available in SQL Server, from ABS and CEILING to SQRT and TAN, and why RAND is the only nondeterministic one among them.

Read More
Previous 1 … 45 46 47 48 49 50 51 52 Next
  • Books
  • Testimonials
  • Privacy Policy

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