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
A viewing window onto a bakery, a red stool in front, the door beside it closed

Granting VIEW SERVER STATE Without Handing Out sysadmin

January 8, 2009
Pinal Dave
SQL Tips and Tricks
DBA, SQL DMV, SQL Login, SQL Server Security

Grant VIEW SERVER STATE or SQL Server 2022 performance permissions to a monitoring login, add job history access, and test its limits.

Read More
Sqlcmd command window.

SQL SERVER – sqlcmd vs osql – Basic Comparison

January 5, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Utility, sqlcmd

sqlcmd vs osql: which one should you use to run queries from the command prompt? A short comparison of isql, osql and sqlcmd, and why I pick sqlcmd.

Read More
SQL SERVER - 2008 - Change Color of Status Bar of SSMS Query Editor

SQL SERVER – 2008 – Change Color of Status Bar of SSMS Query Editor

January 4, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Server Management Studio, SQL Server Security, SQL Utility

Change the color of status bar in SSMS 2008 for each server, so a query meant for development never runs on production by mistake. Step by step with images.

Read More
SQL Server 'WAITFOR' execution context in Visual Studio.

SQL SERVER – Time Delay While Running T-SQL Query – WAITFOR Introduction

January 3, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL DateTime, SQL Scripts, SQL Utility

WAITFOR makes a T-SQL batch pause for a set time, or until a clock time, before the next statement runs. I show both uses with small examples.

Read More
A weather vane with a red rooster turning with the wind on a barn roof

Rolling Date Ranges Forward Without Hard-Coded Years

January 1, 2009
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL DateTime, SQL Server, SQL Stored Procedure

Replace hard-coded years with indexed date ranges for current periods, full months, year-to-date comparisons, and any requested year.

Read More
A plain blank certificate folder beside a small toolbox and notebook on a warm wooden desk.

Is a Certification Worth It, and What to Study Instead

December 29, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Decide whether a SQL Server certification supports your next role, then build practical study projects around recovery, security, and tuning.

Read More
SQL SERVER - Fix : Msg 15151, Level 16, State 1, Line 3 Cannot drop the login 'test', because it does not exist or you do not have permission

SQL SERVER – Fix : Msg 15151, Level 16, State 1, Line 3 Cannot drop the login ‘test’, because it does not exist or you do not have permission

December 28, 2008
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server Security

Msg 15151 said it cannot drop the login ‘test’, even for a sysadmin. The message was misleading: an open SSMS session for that login was blocking it.

Read More
Previous 1 … 482 483 484 485 486 487 488 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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