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 - Recently Executed T-SQL Query

SQL SERVER – Recently Executed T-SQL Query

October 16, 2009
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Function, SQL Scripts, SQL System Table

fn_get_sql() and DBCC INPUTBUFFER will be deprecated. Use sys.dm_exec_query_stats and sys.dm_exec_sql_text to see each recently executed T-SQL query.

Read More
Two shallow ceramic bowls hold red beads joined by cream cords, with a blue bead resting in front.

geography Point: Latitude Comes Before Longitude

October 4, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

geography Point uses latitude, longitude and SRID arguments. Its coordinate order differs from POINT text, so inspect both returned properties.

Read More
SQL SERVER - Insert Values of Stored Procedure in Table - Use Table Valued Function

SQL SERVER – Insert Values of Stored Procedure in Table – Use Table Valued Function

September 23, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL Stored Procedure, SQL Table Operation

How do you insert values of stored procedure output into a table? The traditional temp table way, and an alternate method with a Table Valued Function.

Read More
Gouache painting: on a farm table two bundles of asparagus, each tied with twine around three spears, sit side by side

Integer Division: Keep Quotient and Remainder Together

September 22, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

Integer division and modulo can reconstruct the original signed dividend. These read-only cases keep both operands, quotient, remainder and reconstructed value together.

Read More
A string of dried chili peppers hung in order from smallest to largest, hands adding one fresh red pepper in place.

Ordered Comma Lists With STRING_AGG and WITHIN GROUP

September 18, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL NULL, SQL Server, SQL String

Build ordered comma lists with STRING_AGG and WITHIN GROUP, remove duplicates, handle nulls, and avoid fixed-length result limits.

Read More
SQL SERVER - Converting Stored Procedure into Table Valued Function

SQL SERVER – Converting Stored Procedure into Table Valued Function

September 17, 2009
Pinal Dave
SQL Performance
SQL Function, SQL Stored Procedure

Not every stored procedure should become a Table Valued Function. Here is which kind of SP qualifies, mainly one whose output you insert into another table.

Read More
A cream jar and shallow bowl sit beside a slate-blue triangular panel, a looping sage cord and a small red bead.

geometry STDimension: Count Dimensions, Not Points

September 13, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

geometry STDimension describes dimensionality rather than the number of coordinates. A mixed collection reports its highest-dimensional element.

Read More
Previous 1 … 54 55 56 57 58 59 60 … 92 Next
  • Books
  • Testimonials
  • Privacy Policy

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