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 private path through a hedge to a red side gate, the front door shut

Connecting to SQL Server From Home Without Exposing Port 1433

June 2, 2013
Pinal Dave
SQL Tips and Tricks
Computer Network, SQL Connection, SQL Server, SQL Server Encryption, SQL Server Security

Keep port 1433 off the public internet by checking external reachability and using VPN, a jump host, Bastion, and trusted encryption.

Read More
A glass vase of beans in colored layers, a scoop from the top holding only red beans.

TABLESAMPLE Samples Pages, Not Rows: Sampling a Large Table Right

June 1, 2013
Pinal Dave
SQL Tips and Tricks
SQL Random, SQL Scripts, SQL Server

Compare TABLESAMPLE page sampling with NEWID sorting and CHECKSUM filters by row count, reads, spread, and repeatability.

Read More
SQL Server expected answer.

SQL SERVER – Add Identity Column to Table Based on Order of Another Column

May 30, 2013
Pinal Dave
SQL Tips and Tricks
SQL Identity

A reader wants to add identity column values to an existing table in the order of another column, not the default order. Here is my answer. Do you know a better one?

Read More
SQL SERVER - How to INSERT data from Stored Procedure to Table - 2 Different Methods

SQL SERVER – How to INSERT data from Stored Procedure to Table – 2 Different Methods

May 27, 2013
Pinal Dave
SQL Tips and Tricks
SQL Stored Procedure

How do you INSERT data from stored procedure results into a table? I show 2 methods: one when the table exists and one when it is created at run time.

Read More
Two bumblebees at one red poppy, one landed and the other veering away.

Snapshot Isolation Update Conflicts: Handling Error 3960

May 25, 2013
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Lock, SQL Server, SQL Transactions, Transaction Isolation

Reproduce snapshot isolation update conflict error 3960, compare read committed snapshot, and retry the whole transaction safely.

Read More
Hands passing a tied bakery box with a window across a doorstep, the layered cake inside still neat.

Sharing Query Results From SSMS: Copy With Headers, Grids and CSV

May 19, 2013
Pinal Dave
SQL Tips and Tricks
CSV, SQL Server, SQL Server Management Studio, sqlcmd

Share SSMS results with copy with headers, text and file output, deliberate CSV quoting, and command-line exports for larger sets.

Read More
Dark chocolate squares in an even grid on marble, one wrapped in red

Date Boundaries With DATETRUNC and EOMONTH in SQL Server 2022

May 18, 2013
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server, SQL Server 2022

Use DATETRUNC and EOMONTH for month, quarter, and week boundaries in SQL Server 2022, including index-friendly half-open filters.

Read More
Previous 1 … 324 325 326 327 328 329 330 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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