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
Lemons in a row beside a red citrus press, a glass of juice before each one except a dry lemon

SQL SERVER – Quick Note on CROSS APPLY

January 4, 2008
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL Server

A quick note on CROSS APPLY: think of it as an inner join to a table valued function that takes parameters, something a regular JOIN cannot do.

Read More
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
Previous 1 … 779 780 781 782 783 784 785 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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