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
ISDATE function in SQL Server.

SQL SERVER – Validate Field For DATE datatype using function ISDATE()

July 12, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

A CSV import crashed on the date 30/2/2007. Use the ISDATE() function to validate a VARCHAR column in a staging table before moving rows to a DATETIME field.

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
A clock showing current date and time.

SQL SERVER – Retrieve Current DateTime in SQL Server CURRENT_TIMESTAMP, GETDATE(), {fn NOW()}

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

There are three ways to retrieve the current datetime in SQL SERVER.
CURRENT_TIMESTAMP, GETDATE(), {fn NOW()}

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 - 2005 NorthWind Database or AdventureWorks Database - Samples Databases - Part 2

SQL SERVER – 2005 NorthWind Database or AdventureWorks Database – Samples Databases – Part 2

June 15, 2007
Pinal Dave
SQL Tips and Tricks
SQL Download, SQL Sample Database, SQL Scripts, SQL Server

Three tested ways to install the NorthWind and Pubs sample databases on SQL Server 2005, starting from SQL2000SampleDb.msi, with screenshots for each.

Read More
SQL SERVER - Fix : Error 8629 The query processor could not produce a query plan from the optimizer because a query cannot update a text, ntext, or image column and a clustering key at the same time.

SQL SERVER – Fix : Error 8629 The query processor could not produce a query plan from the optimizer because a query cannot update a text, ntext, or image column and a clustering key at the same time.

June 13, 2007
Pinal Dave
SQL Performance
SQL Error Messages, SQL Server

Error 8629 appears when one UPDATE changes a text or image column and a clustering key together. Here is why SQL Server blocks it and a fix.

Read More
collation conflict

SQL SERVER – Cannot Resolve Collation Conflict For Equal to Operation

June 11, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Collation, SQL Error Messages, SQL Joins, SQL Scripts, SQL Server

Cannot resolve collation conflict for equal to operation. In MS SQL SERVER, the collation can be set at the column level.

Read More
Previous 1 … 339 340 341 342 343 344 345 … 350 Next
  • Books
  • Testimonials
  • Privacy Policy

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