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 - @@IDENTITY vs SCOPE_IDENTITY() vs IDENT_CURRENT - Retrieve Last Inserted Identity of Record

SQL SERVER – @@IDENTITY vs SCOPE_IDENTITY() vs IDENT_CURRENT – Retrieve Last Inserted Identity of Record

March 25, 2007
Pinal Dave
SQL Performance
SQL Function, SQL Index, SQL Scripts

@@IDENTITY vs SCOPE_IDENTITY() vs IDENT_CURRENT: how each one returns the last identity value, and why a trigger can make @@IDENTITY give the wrong one.

Read More
A gouache ceramic workshop separates wet ceramic pieces in a basin from dry pattern molds in a fitted wooden rack.

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

Clean Cache commands affect different parts of SQL Server memory. I separate buffer-pool testing from execution-plan testing.

Read More
SQL SERVER - Fix: Error Msg 128 The name is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted.

SQL SERVER – Fix: Error Msg 128 The name is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted.

March 22, 2007
Pinal Dave
SQL Performance
SQL Download, SQL Error Messages, SQL Scripts, SQL Server Security

Msg 128, The name is not permitted in this context, shows up when one column is used as the DEFAULT of another. Use only constants, expressions or variables.

Read More
SQL SERVER - DBCC command to RESEED Table Identity Value - Reset Table Identity

SQL SERVER – DBCC command to RESEED Table Identity Value – Reset Table Identity

March 15, 2007
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server DBCC, SQL Server Security

DBCC CHECKIDENT with RESEED lets you reset table identity to any value. Reseed to 0 so the next insert gets 1, and never go below values already in the table.

Read More
Two conveyor belts of parcels, one running straight through and one stopping at a machine that discards duplicates.

SQL SERVER – Union vs. Union All – Which is better for performance?

March 10, 2007
Pinal Dave
SQL Performance
SQL Download, SQL Scripts

UNION removes duplicate rows like SELECT DISTINCT, while UNION ALL keeps them all. My early notes on Union vs. Union All, with a link to the rewritten post.

Read More
SQL SERVER - Script to Determine Which Version of SQL Server 2000-2005 is Running

SQL SERVER – Script to Determine Which Version of SQL Server 2000-2005 is Running

March 7, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

A quick way to see which version of SQL Server 2000 or 2005 is running: SERVERPROPERTY returns the product version, the product level and the edition.

Read More
SQL SERVER - QUOTED_IDENTIFIER ON/OFF and ANSI_NULL ON/OFF Explanation

SQL SERVER – QUOTED_IDENTIFIER ON/OFF and ANSI_NULL ON/OFF Explanation

March 5, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts

What do SET QUOTED_IDENTIFIER and SET ANSI_NULLS do around every stored procedure you create? A plain explanation of both settings, ON and OFF.

Read More
Previous 1 … 359 360 361 362 363 364 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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