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 - SELECT vs. SET Performance Comparison

SQL SERVER – SELECT vs. SET Performance Comparison

April 27, 2007
Pinal Dave
SQL Performance
SQL Download, SQL Scripts, SQL Server Security

SELECT vs. SET for local variables: SELECT can assign several at once and runs faster in a loop, while SET is the ANSI standard and assigns one at a time.

Read More
SQL SERVER - Difference Between Unique Index vs Unique Constraint

SQL SERVER – Difference Between Unique Index vs Unique Constraint

April 26, 2007
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Index, SQL Scripts

Unique Index vs Unique Constraint: is there a difference? No. A unique constraint creates a unique index, and performance is the same. Syntax for both.

Read More
Configure and reconfigure options.

SQL SERVER – Enable xp_cmdshell using sp_configure

April 26, 2007
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Scripts, SQL Server, SQL Server Configuration, SQL Server Security, SQL Stored Procedure, SQL Utility

Enable xp_cmdshell with sp_configure: turn on show advanced options, set xp_cmdshell to 1 and run RECONFIGURE. The full script is ready to run in SSMS.

Read More
SQL SERVER - ERROR Messages - sysmessages error severity level

SQL SERVER – ERROR Messages – sysmessages error severity level

April 25, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server Security

SQL Server ERROR Messages explained: each has a number, a severity level and a state from 1 to 127, and all of them are stored in the sysmessages system table.

Read More
SQL SERVER - 2005 Take Off Line or Detach Database

SQL SERVER – 2005 Take Off Line or Detach Database

April 25, 2007
Pinal Dave
SQL Performance
SQL Scripts

To take off line a database in SQL Server 2005, use ALTER DATABASE SET OFFLINE with ROLLBACK AFTER 30 SECONDS or ROLLBACK IMMEDIATE instead of sp_dboption.

Read More
SQL SERVER - TRIM() Function - UDF TRIM()

SQL SERVER – TRIM() Function – UDF TRIM()

April 24, 2007
Pinal Dave
SQL Performance
SQL Function, SQL Scripts

SQL Server 2005 has LTRIM() and RTRIM() but no TRIM() function, so I wrote a simple UDF for SQL Server 2000 and 2005 that trims both sides. Video included.

Read More
SQL SERVER - Query to Find Seed Values, Increment Values and Current Identity Column value of the table

SQL SERVER – Query to Find Seed Values, Increment Values and Current Identity Column value of the table

April 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Identity, SQL Index, SQL Scripts, SQL Server, SQL System Table

A query to list every identity column with its seed, increment and current value, plus what those numbers mean and how to reseed a table safely.

Read More
Previous 1 … 325 326 327 328 329 330 331 … 336 Next
  • Books
  • Testimonials
  • Privacy Policy

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