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 project new project dialog box.

SQL SERVER – Introduction to CLR – Simple Example of CLR Stored Procedure

October 19, 2008
Pinal Dave
SQL Performance
CLR, Software Development, SQL Scripts, SQL Stored Procedure, SQL Utility

An introduction to CLR in SQL Server 2005 and later, with a simple CLR Stored Procedure built in Visual Studio that prints the current system datetime.

Read More
Execution time statistics.

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

October 18, 2008
Pinal Dave
SQL Performance
Best Practices, SQL DateTime, SQL Function, SQL Scripts

Which way to select only date part from DATETIME is faster? After more tests on large tables, I now suggest the DATEADD and DATEDIFF method over CONVERT.

Read More
SQL SERVER - Get Common Records From Two Tables Without Using Join

SQL SERVER – Get Common Records From Two Tables Without Using Join

October 17, 2008
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts

Sachin wanted common records from two tables without writing a join condition. Imran Mohammed shows how INTERSECT in SQL Server 2005 does it.

Read More
A painting shows a walnut cabinet with nested storage trays and three unlettered wooden keys.

Closure Table: Read and Validate Hierarchy Paths

October 17, 2008
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Index, SQL Joins

A closure table stores ancestor and descendant paths. Read those relationships efficiently and compare them with the authoritative parent edges.

Read More
SQL SERVER - Downgrade Database to Previous Version

SQL SERVER – Downgrade Database to Previous Version

October 16, 2008
Pinal Dave
SQL Performance
Database, Software Development

Can you downgrade database files from SQL Server 2005 to 2000? No tool does it. Install the old version, recreate the schema and move the data yourself.

Read More
UNION result with all rows.

SQL SERVER – Introduction and Example of UNION and UNION ALL

October 15, 2008
Pinal Dave
SQL Performance
SQL Joins, SQL Scripts, SQL Union clause

A simple example of UNION and UNION ALL with two table variables. UNION removes the duplicate rows, while UNION ALL keeps every row from both tables.

Read More
SQL SERVER - Get Numeric Value From Alpha Numeric String - UDF for Get Numeric Numbers Only

SQL SERVER – Get Numeric Value From Alpha Numeric String – UDF for Get Numeric Numbers Only

October 14, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

A simple UDF that gets only the numbers from an alpha numeric string, using PATINDEX and STUFF, with test values for empty, NULL and mixed strings.

Read More
Gouache painting: on a workbench, a pair of plain smooth brass tweezers holds one polished clay marble, while a wide wooden clamp holds a bundle of three marbles tied with string; a loose marble and a second tied bundle lie nearby, one string vermilion

JSON_QUERY or JSON_VALUE: Match the JSON Shape

October 13, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL NULL, SQL Server, SQL String

JSON_QUERY or JSON_VALUE depends on the JSON shape you need. One read-only document exposes scalar, object, array, JSON null and missing-path results side by side.

Read More
SQLAuthority News - SQL Injection - SQL Joke, SQL Humor, SQL Laugh

SQLAuthority News – SQL Injection – SQL Joke, SQL Humor, SQL Laugh

October 12, 2008
Pinal Dave
SQLAuthority News
Best Practices, Database, DBA, SQL Humor, SQL Server Security

The SQL Injection cartoon readers sent me many times, finally on the blog. Plus a demo of how dynamic SQL opens the door to it, and a way to close it.

Read More
A baker's hand fitting a star nozzle to a piping bag, a round nozzle set aside beside a half-decorated cake

OLE DB or ODBC for Connecting to SQL Server

October 11, 2008
Pinal Dave
SQL Tips and Tricks
Linked Server, SQL Connection, SQL Server, SSIS

Choose OLE DB or ODBC for SQL Server by the component you run, especially SSIS, linked servers, and applications using current drivers.

Read More
Previous 1 … 513 514 515 516 517 518 519 … 590 Next
  • Books
  • Testimonials
  • Privacy Policy

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