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 - UDF - Remove Duplicate Chars From String

SQL SERVER – UDF – Remove Duplicate Chars From String

December 5, 2007
Pinal Dave
SQL Tips and Tricks
Duplicate Records, SQL Function, SQL Scripts, SQL String

A reader, Virendra Chauhan, shared a UDF that removes duplicate chars from one large string. Here is his REMOVE_DUPLICATE_INSTR function and how to call it.

Read More
A small wooden organizer separates blank index cards into several tidy compartments.

Finding the Right System View for the Question You Have

November 30, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Choose SQL Server system views by the question they answer, distinguish catalog metadata from runtime counters, and understand reset boundaries.

Read More
SQL SERVER - Correct Syntax for Stored Procedure SP

SQL SERVER – Correct Syntax for Stored Procedure SP

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

What is the correct syntax for stored procedure code? Anything between BEGIN and END is part of the procedure, and anything after GO is not, as my examples show.

Read More
SQL SERVER - 2005 - List All Stored Procedure in Database

SQL SERVER – 2005 – List All Stored Procedure in Database

November 27, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure

Want to see all stored procedure in database at once? Run SELECT * FROM sys.procedures. This simple query works only with SQL Server 2005.

Read More
SQL SERVER - Generate Incremented Linear Number Sequence

SQL SERVER – Generate Incremented Linear Number Sequence

November 21, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server

A reader asked how to generate an incremented linear number sequence in SQL Server, like a sequence in Oracle. A short WHILE loop script does it.

Read More
SQL in Sixty Seconds' Image Alt Text.

SQL SERVER – Generate Script with Data from Database – Database Publishing Wizard

November 16, 2007
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Download, SQL Scripts

Need to copy data along with the schema? The Database Publishing Wizard scripts schema, data or both into one SQL file you can run on another server.

Read More
dbcc

SQL SERVER – DBCC CHECKDB Introduction and Explanation – DBCC CHECKDB Errors Solution

November 13, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL Server DBCC

DBCC CHECKDB checks the logical and physical integrity of every object in a database, and it already runs CHECKALLOC, CHECKTABLE and CHECKCATALOG for you.

Read More
Previous 1 … 299 300 301 302 303 304 305 … 336 Next
  • Books
  • Testimonials
  • Privacy Policy

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