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 - 2005 - Last Ran Query - Recently Ran Query

SQL SERVER – 2005 – Last Ran Query – Recently Ran Query

January 3, 2008
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL System Table

Want to see the last ran query on SQL Server 2005? This quick script uses sys.dm_exec_query_stats to list recent queries with the time each one ran.

Read More
A wooden frame with a leather triangle in one corner and a red stone inside the frame but outside the triangle.

geometry STEnvelope: A Bounding Box Includes Extra Space

January 3, 2008
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

geometry STEnvelope can include points outside the original shape. These two triangle tests keep envelope membership beside exact containment.

Read More
SQL SERVER - Fix : Error 15281 SQL Server blocked access to STATEMENT OpenRowset/OpenDatasource of

SQL SERVER – Fix : Error 15281 SQL Server blocked access to STATEMENT OpenRowset/OpenDatasource of

January 2, 2008
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server Security

Error 15281: SQL Server blocked OpenRowset/OpenDatasource because Ad Hoc Distributed Queries is off. Turn it on in Surface Area Configuration or with sp_configure.

Read More
A full bookshelf with a red bookend placed to leave room for the next volume

Adding a New Year Partition Before the Calendar Rolls Over

January 1, 2008
Pinal Dave
SQL Tips and Tricks
DBA, SQL Server, SQL Server Agent, Table Partitioning

Add a new year partition before January data arrives by checking boundaries, preparing NEXT USED, splitting an empty range, and scheduling the work.

Read More
SQLAuthority News - Thank You to Blog Readers

SQLAuthority News – Thank You to Blog Readers

December 31, 2007
Pinal Dave
SQLAuthority News
Database, DBA

Thank you very much to all my blog readers for reading SQLAuthority.com through 2007. I wish you the very best for the year 2008.

Read More
Gouache painting: on three barn shelves stand jars of honey from one harvest

GROUPING SETS: Choose Nonhierarchical Subtotals Explicitly

December 30, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Reports, SQL Scripts, SQL Server

GROUPING SETS lets me choose independent subtotal combinations instead of assuming one hierarchy. I list the groups the report needs explicitly. That can exclude detail rows while retaining summaries across different dimensions.

Read More
Change SA SQL Server password.

SQL SERVER – Change Password of SA Login Using Management Studio

December 29, 2007
Pinal Dave
SQL Tips and Tricks
SQL Server Security

How to change password of SA login using Management Studio: log in with Windows Authentication, open the SA login properties, set the new password and test it.

Read More
quality

SQL SERVER – Difference Between Quality Assurance and Quality Control – QA vs QC

December 28, 2007
Pinal Dave
SQL Tips and Tricks
Developer, Software Development, SQL Server

A Tea Time chat at our India office turned into a debate on Quality Assurance vs Quality Control. Here is a simple way to tell QA and QC apart.

Read More
Two hands hold a bicycle inner tube under water in an enamel basin as a thin stream of bubbles rises from one spot.

Writing Tests for Stored Procedures

December 27, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Stored Procedure, SQL Transactions, Testing

Write tests for stored procedures with arrange, act, and assert steps in T-SQL, isolated data, and a repeatable check before every change.

Read More
SQL SERVER - TRUNCATE Can't be Rolled Back Using Log Files After Transaction Session Is Closed

SQL SERVER – TRUNCATE Can’t be Rolled Back Using Log Files After Transaction Session Is Closed

December 26, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts

Can TRUNCATE be rolled back? Inside an open transaction yes, but once the session is closed TRUNCATE can’t be rolled back using log files, while DELETE can.

Read More
Previous 1 … 545 546 547 548 549 550 551 … 591 Next
  • Books
  • Testimonials
  • Privacy Policy

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