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 - Search Text Field - CHARINDEX vs PATINDEX

SQL SERVER – Search Text Field – CHARINDEX vs PATINDEX

April 8, 2007
Pinal Dave
SQL Performance
SQL Function, SQL Scripts, SQL Server, SQL Server Security, SQL Utility

CHARINDEX and PATINDEX both return the start position of a pattern in a text field. PATINDEX allows wildcards, CHARINDEX does not. Examples use AdventureWorks.

Read More
clean cache

SQL SERVER – Stored Procedure – Clean Cache and Clean Buffer

March 23, 2007
Pinal Dave
SQL Performance
SQL Scripts, SQL Server, SQL Server DBCC, SQL Server Security, SQL Stored Procedure, SQL Utility

DBCC FREEPROCCACHE will invalidate all stored procedure plans that the optimizer has cached in memory. Let us learn how to clean cache. 

Read More
SQL SERVER - Fix: Sqllib error: OLEDB Error encountered calling IDBInitialize::Initialize. hr = 0x80004005. SQLSTATE: 08001, Native Error: 17

SQL SERVER – Fix: Sqllib error: OLEDB Error encountered calling IDBInitialize::Initialize. hr = 0x80004005. SQLSTATE: 08001, Native Error: 17

March 16, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server Security, SQL Utility

A Sqllib error with hr = 0x80004005 and Native Error 17 says SQL Server does not exist or access denied. The simple fix is to enable TCP-IP in Configuration Manager.

Read More
SQL SERVER - T-SQL Script to find the CD key from Registry

SQL SERVER – T-SQL Script to find the CD key from Registry

February 28, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure, SQL Utility

Need the SQL Server CD key used at install time? The undocumented xp_regread reads it straight from the registry. Log in as SA if you lack permission.

Read More
SQL SERVER - What is New in SQL Server Agent for Microsoft SQL Server 2005

SQL SERVER – What is New in SQL Server Agent for Microsoft SQL Server 2005

February 26, 2007
Pinal Dave
SQL Tips and Tricks
SQL Download, SQL Error Messages, SQL Server Agent, SQL Utility

A TechNet article I liked on what’s new in SQL Server Agent for SQL Server 2005: security, proxy accounts, shared schedules, WMI alerts and Database Mail.

Read More
Restore database using SSMS.

SQL SERVER – Restore Database Backup using SQL Script (T-SQL)

February 25, 2007
Pinal Dave
SQL Video
SQL Backup and Restore, SQL Error Messages, SQL Scripts, SQL Server, SQL Utility

Restore Database backups with a T-SQL script: read the logical file names with RESTORE FILELISTONLY, set single user mode, then run RESTORE WITH MOVE.

Read More
SQL SERVER - Query Analyzer Shortcuts

SQL SERVER – Query Analyzer Shortcuts

January 20, 2007
Pinal Dave
SQL Tips and Tricks
SQL Download, SQL Shortcut, SQL Utility

A handy table of Query Analyzer Shortcuts with each key combination and what it does, like CTRL+E to execute a query, plus a PDF copy you can download.

Read More
Previous 1 … 29 30 31 32 33 Next
  • Books
  • Testimonials
  • Privacy Policy

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