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 tear-off desk calendar with its first and last pages of the month held apart by two brass paperweights.

SQL SERVER – Query to Find First and Last Day of Current Month – Date Function

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

One query to find the First and Last Day of Current Month in SQL Server, plus the last day of the previous month and the first day of the next.

Read More
SQL SERVER - UDF - User Defined Function to Find Weekdays Between Two Dates

SQL SERVER – UDF – User Defined Function to Find Weekdays Between Two Dates

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

A user defined function that returns the number of weekdays between two dates, skipping Saturday and Sunday. It was written by Alexander Chigrik.

Read More
SQL SERVER - @@DATEFIRST and SET DATEFIRST Relations and Usage

SQL SERVER – @@DATEFIRST and SET DATEFIRST Relations and Usage

April 22, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Utility

How SET DATEFIRST changes the first day of the week, and how @@DATEFIRST returns the current value, which also changes with SET LANGUAGE. Simple examples.

Read More
SQL SERVER - SQL Commandments - Suggestions, Tips, Tricks

SQL SERVER – SQL Commandments – Suggestions, Tips, Tricks

March 20, 2007
Pinal Dave
SQL Performance
Best Practices, Database, Software Development, SQL Backup and Restore, SQL Constraint and Keys, SQL DateTime, SQL Download, SQL Error Messages, SQL Function, SQL Index, SQL Joins, SQL Server DBCC, SQL Server Security, SQL Stored Procedure

My 20 SQL Commandments for SQL Server, rewritten from an Oracle article: know your data, test with realistic data, write identical statements, and more tips.

Read More
Card file of index cards, going through records one at a time like a cursor

SQL SERVER – Simple Cursor to Select Tables in Database with Static Prefix and Date Created

November 30, 2006
Pinal Dave
SQL Tips and Tricks
SQL Cursor, SQL DateTime, SQL Scripts, SQL Server, SQL Stored Procedure

A simple cursor to select tables in a database by a static prefix like b_ or delete_ and by date created, so you can drop, print or index old tables.

Read More
Previous 1 … 26 27 28 29
  • Books
  • Testimonials
  • Privacy Policy

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