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 tidy line of wooden artist mannequins where only the last one has a red bucket stuck on its head

Last Line of a SQL Script: The Joke Every DBA Has Lived

May 14, 2007
Pinal Dave
SQL Tips and Tricks
SQL Humor, SQL Scripts, SQL Server Management Studio, SQL Transactions

The last line of a SQL script decides whether your work is saved, rolled back, or still holding locks. Here are the classic endings and how to check them.

Read More
Gouache painting: in a gym corner, nine crisp foam tiles lock together into a perfect square

SQUARE: Expect a float Result From Numeric Inputs

May 14, 2007
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL NULL, SQL Server

SQUARE accepts numeric inputs convertible to float and returns float. Explicit decimal display keeps this small example readable without claiming exact decimal multiplication.

Read More
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 - Function to Parse AlphaNumeric Characters from String

SQL SERVER – UDF – Function to Parse AlphaNumeric Characters from String

May 13, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

UDF_ParseAlphaChars keeps only the alphanumeric characters in a string and strips everything else using PATINDEX and STUFF. A handy function, with a test.

Read More
SQL SERVER - 2005 - List all the database

SQL SERVER – 2005 – List all the database

May 12, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure, Undocumented SQL

Several ways to list all the database names on a server, from sp_databases and sp_helpdb to sys.databases and sp_msForEachDB. I use sp_databases myself.

Read More
CLR Support

SQL SERVER – Fix : Error : Msg 6263, Level 16, State 1, Line 2 Enabling SQL Server 2005 for CLR Support

May 12, 2007
Pinal Dave
SQL Tips and Tricks
CLR, SQL Error Messages, SQL Scripts, SQL Server, SQL Server Configuration

Error:
Fix : Error : Msg 6263, Level 16, State 1, Line 2 Enabling SQL Server 2005 for CLR Support

1) Enable Server for CLR Support.

Read More
SQL SERVER - Explanation SQL Command GO

SQL SERVER – Explanation SQL Command GO

May 11, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Utility

GO is not a T-SQL command. It tells SQL Server tools to send the current batch. Why a GO statement must sit on its own line, and how it ends a batch.

Read More
Previous 1 … 556 557 558 559 560 561 562 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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