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
Gouache painting of a wooden music box with a long vermilion perforated paper strip curling down to the floor

Additional Logging for SQL Server Agent: Three Methods

January 28, 2020
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Log, SQL Scripts, SQL Server Agent

Additional logging for SQL Server Agent means raising the Agent error log level, so the Agent writes more lines about its own work. This post reads the current level, changes it with T-SQL and restores it in the same script, and shows the Management Studio and registry routes.

Read More
Gouache painting of a grid of pale blue mosaic tiles in a wooden frame with one vermilion tile

Display Rupee Symbol in SSMS and T-SQL With FORMAT

January 27, 2020
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server Management Studio, Unicode

To display rupee symbol and Indian digit grouping in SSMS, format the number with an Indian culture, or use the Unicode character 8377. This post compares en-IN, hi-IN, gu-IN and kn-IN, shows the nvarchar rule that keeps the symbol from turning into a question mark, and formats dates for the same cultures.

Read More
A flock gathered at a gate gives a concrete scene for counting a collection

What are Different Methods to Know the Row Count of Table? – Interview Question of the Week #261

January 26, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Counter, SQL DMV, SQL Scripts, SQL Server, SQL Server Management Studio, SQL System Table

Question: What are Different Methods to Know the Row Count of Table? The answer to this question is very simple and many.

Read More
RID Lookup

SQL SERVER – Heaps, Scans and RID Lookup

January 25, 2020
Pinal Dave
SQL Performance
Clustered Index, Execution Plan, SQL Heap, SQL Index, SQL Scripts, SQL Server

The question was do heaps are very bad and always force a table scan? Let us learn about RID Lookup, Heaps and table scan.

Read More
A rack of lake water samples at dawn, one cloudy tube marked with a red clip.

Capturing sp_WhoIsActive Snapshots to a Table Every Minute

January 24, 2020
Pinal Dave
SQL Tips and Tricks
DBA, SQL Monitoring, SQL Server, SQL Server Agent

Capture sp_WhoIsActive snapshots every minute, keep seven days, and query past blockers and long requests from a logging table.

Read More
Title card: WAIT_ON_SYNC_STATISTICS_REFRESH

SQL SERVER – Resolve WAIT_ON_SYNC_STATISTICS_REFRESH Wait Type

January 23, 2020
Pinal Dave
SQL Performance
SQL Server Management Studio, SQL Statistics, SQL Wait Stats

During Comprehensive Database Performance Health Check I recently faced a brand new wait type WAIT_ON_SYNC_STATISTICS_REFRESH.

Read More
Gouache painting of a chest of drawers pulled partly open, each drawer holding a sage ball of yarn and one vermilion ball

Find All Columns With a Specific Name in SQL Server

January 22, 2020
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Datatype, SQL Scripts, SQL Server

To find all columns with a specific name, query sys.columns and join sys.types for the data type. This post lists the matches with their schema, leaves out system objects, and then uses the same catalog to find names that appear with different data types.

Read More
Previous 1 … 126 127 128 129 130 131 132 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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