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
TCP/IP Dynamic Ports dialog box.

SQL SERVER – Find Port SQL Server is Listening – Port SQL Server is Running

March 15, 2014
Pinal Dave
SQL Interview Questions and Answers
SQL Server Management Studio, SQL Stored Procedure

The default instance uses port 1433, but what about a second instance on the same box? Here is how to find the port SQL Server is listening on.

Read More
SQL SERVER - Retrieve Maximum Length of Object Name with sp_server_info

SQL SERVER – Retrieve Maximum Length of Object Name with sp_server_info

March 7, 2014
Pinal Dave
SQL Tips and Tricks
SQL Stored Procedure

How long can a table name be in SQL Server? The answer is 128, and you can confirm it yourself by running the stored procedure sp_server_info.

Read More
A power strip under a table with cables to a lamp, a radio and a kettle, one cord vanishing through the floor.

Finding What Depends on a Table

January 15, 2014
Pinal Dave
SQL Tips and Tricks
SQL Dependency, SQL Server, SQL Stored Procedure, SQL System Table

Finding What depends on a table starts with sys.dm_sql_referencing_entities, then checks cross-database code and dynamic SQL.

Read More
A cake lifter removes one cake layer while neighboring layers remain untouched

TRUNCATE Permission: Letting a User Empty One Table

January 13, 2014
Pinal Dave
SQL Tips and Tricks
SQL Server Security, SQL Stored Procedure, SQL Table Operation

Your loader needs to empty a staging table, not redesign it. Here is a small procedure that gives it exactly that.

Read More
SQL SERVER - Select Columns from Stored Procedure Resultset

SQL SERVER – Select Columns from Stored Procedure Resultset

September 26, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure

Need only some columns from a stored procedure resultset? Store it in a temp table with INSERT INTO and EXEC, then select what you need.

Read More
A donkey with full panniers and a red blanket walking a mountain path.

Table-Valued Parameters: Sending Thousands of Rows in One Call

August 31, 2013
Pinal Dave
SQL Tips and Tricks
DotNet, SQL Scripts, SQL Server, SQL Stored Procedure

Send thousands of rows in one call with table-valued parameters, compare round trips, and handle missing column statistics accurately.

Read More
SQL SERVER - Disk Space Monitoring - Detecting Low Disk Space on Server

SQL SERVER – Disk Space Monitoring – Detecting Low Disk Space on Server

August 2, 2013
Pinal Dave
SQL Tips and Tricks
Disk, SQL Scripts, SQL Server, SQL Stored Procedure

A common question I get: how do you go about detecting low disk space on SQL Server? Here are two ways, including xp_fixeddrives, and the one I prefer.

Read More
Previous 1 … 12 13 14 15 16 17 18 … 35 Next
  • Books
  • Testimonials
  • Privacy Policy

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