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
Metal scissors beside cream and vermilion ribbon strips, with a sage box on slate cloth.

STUFF Boundaries: Insert Text and Handle NULL Results

March 31, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

STUFF boundaries govern insertion and deletion. See valid positions, zero length, NULL replacement and out-of-range starts.

Read More
A library card drawer pulled fully out with a single card standing up in it, photographed beside the end of a long shelf of books.

SQL SERVER – Index Seek Vs. Index Scan (Table Scan)

March 30, 2007
Pinal Dave
SQL Performance
SQL Index, SQL Joins, SQL Scripts, SQL Server

Index Scan retrieves all the rows from the table. Index Seek retrieves selective rows from the table.

Read More
SQL SERVER - Difference between DISTINCT and GROUP BY - Distinct vs Group By

SQL SERVER – Difference between DISTINCT and GROUP BY – Distinct vs Group By

March 29, 2007
Pinal Dave
SQL Performance
SQL Function, SQL Joins, SQL Scripts

What is the difference between DISTINCT and GROUP BY? They usually produce the same plan. Use GROUP BY for aggregates and DISTINCT to remove duplicates.

Read More
Two identical plain brass discs lying overlapped on a dark oiled steel bench

SQL SERVER – Fix : Error 8101 An explicit value for the identity column in table can only be specified when a column list is used and IDENTITY_INSERT is ON

March 28, 2007
Pinal Dave
SQL Tips and Tricks
SQL Download, SQL Error Messages, SQL Scripts, SQL Server, SQL Server Security

Error 8101 means you gave a value for an identity column. What IDENTITY_INSERT does, why there are two different errors, and why TRY CATCH misses it.

Read More
SQL SERVER - Fix : Error 701 There is insufficient system memory to run this query

SQL SERVER – Fix : Error 701 There is insufficient system memory to run this query

March 27, 2007
Pinal Dave
SQL Performance
SQL Download, SQL Error Messages, SQL Scripts, SQL Server DBCC, SQL Server Security, SQL Stored Procedure

For Error 701, insufficient system memory, compare max server memory with min server memory, check the paging file size, and free caches with DBCC commands.

Read More
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
A stick insect hidden among twigs in a hedge, given away only by its thin red legs

Auditing Who Holds CONTROL SERVER and IMPERSONATE Rights

March 21, 2007
Pinal Dave
SQL Tips and Tricks
DBA, SQL Audit, SQL Login, SQL Server Security

Audit CONTROL SERVER and impersonation grants alongside sysadmin and role inheritance, test effective rights, and remove excess access.

Read More
SQL SERVER - SQL Commandments - Suggestions, Tips, Tricks

SQL SERVER – SQL Commandments – Suggestions, Tips, Tricks

March 20, 2007
Pinal Dave
SQL Performance
Best Practices, Database, Software Development, SQL Backup and Restore, SQL Constraint and Keys, SQL DateTime, SQL Download, SQL Error Messages, SQL Function, SQL Index, SQL Joins, SQL Server DBCC, SQL Server Security, SQL Stored Procedure

My 20 SQL Commandments for SQL Server, rewritten from an Oracle article: know your data, test with realistic data, write identical statements, and more tips.

Read More
Previous 1 … 588 589 590 591 592 593 594 595 Next
  • Books
  • Testimonials
  • Privacy Policy

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