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 - Clear SQL Server Memory Caches

SQL SERVER – Clear SQL Server Memory Caches

July 22, 2008
Pinal Dave
SQL Performance
SQL Scripts, SQL Server DBCC

Need to clear SQL Server memory caches on a production server you cannot restart? Three DBCC commands free up memory by cleaning the cache.

Read More
SQL SERVER - FIX - ERROR : 9004 An error occurred while processing the log for database. If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.

SQL SERVER – FIX – ERROR : 9004 An error occurred while processing the log for database. If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.

July 21, 2008
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Error Messages, SQL Scripts

Error 9004 means an error occurred while processing the log for database, so it will not attach. Here are the steps that worked for me, starting with emergency mode.

Read More
Uneven cheese portions balance equally because the wider piece contains large holes.

Splitting a Big Table Into Equal Key Ranges for Batch Work

July 21, 2008
Pinal Dave
SQL Performance
Batch, Ranking Functions, SQL Paging, Temp Table

Equal-width key ranges fail when ids have gaps. NTILE cuts by row count instead, so every worker gets a fair share of the table.

Read More
Diagram of two SQL Server instances, each with a Service Broker holding Message, Contract and Service, joined by a dialog conversation; the two BrokerEndpoint boxes talk over TCP and the LISTENER_PORT value 5000 is marked in red

Change Service Broker Port: Drop and Recreate the Endpoint

July 20, 2008
Pinal Dave
SQL Tips and Tricks
Service Broker, SQL Scripts, SQL Server

Service Broker hit error 9692 because another application used its port. To change Service Broker port, drop the endpoint and create it again on a new port. Both scripts are here.

Read More
SQL Server - Fix - Error : 9692 The _MSG protocol transport cannot listen on port because it is in use by another process.

SQL Server – Fix – Error : 9692 The _MSG protocol transport cannot listen on port because it is in use by another process.

July 19, 2008
Pinal Dave
SQL Tips and Tricks
Service Broker, SQL Error Messages, SQL Scripts

Error 9692 says the Service Broker transport cannot listen on port because another process uses it. Find that program with netstat, or move the port.

Read More
A wrapped parcel waits safely in a receiving cubby beside a prepared delivery shelf.

SQL SERVER – Introduction to Service Broker

July 18, 2008
Pinal Dave
SQL Tips and Tricks
Database Mail, Service Broker, SQL Server

Service Broker supports transactional asynchronous messaging within SQL Server. I separate queued work from the application that processes it.

Read More
Several plain paper folders arranged in a small wooden tray beside a closed notebook.

Organising Notes You Have Already Written

July 18, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Learn to organise notes around problems, useful search terms, and review dates so earlier SQL Server work becomes easy to find and trust.

Read More
A sledgehammer below a small picture hook, a small red tack hammer on the shelf beside it

Checking Which Accounts the SQL Server Services Run As

July 17, 2008
Pinal Dave
SQL Tips and Tricks
DBA, SQL Server Configuration, SQL Server Security, SQL Server Services

Inventory SQL Server services and their accounts, compare virtual and managed identities, and verify permissions after a change.

Read More
SQL SERVER - Readers Contribution to Site - Simple Example of Cursor

SQL SERVER – Readers Contribution to Site – Simple Example of Cursor

July 16, 2008
Pinal Dave
SQL Tips and Tricks
SQL Cursor, SQL Scripts

A reader wanted to join values from several rows into one record. Imran Mohammed answered with a simple example of cursor code in SQL Server 2005.

Read More
SQL SERVER - Deferred Name Resolution

SQL SERVER – Deferred Name Resolution

July 15, 2008
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts

Why can a stored procedure with a wrong table name be created, but not one with a wrong column name? Deferred Name Resolution explains it.

Read More
Previous 1 … 526 527 528 529 530 531 532 … 592 Next
  • Books
  • Testimonials
  • Privacy Policy

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