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 barge unloading grain sacks at a quay, with a weighing scale and sorting table set before the storehouse.

Loading Large Files Fast With BULK INSERT

March 14, 2010
Pinal Dave
SQL Tips and Tricks
CSV, File format, SQL Log, SQL Server

BULK INSERT loads large SQL Server files through a tested format, accessible path, staging table, measured batches, and final validation.

Read More
A hand pressing a signet ring into red sealing wax on a folded parcel, a candle and wax stick beside it

Connecting Java Applications With the JDBC Driver

March 13, 2010
Pinal Dave
SQL Tips and Tricks
Java, SQL Connection, SQL Server, SQL Server Encryption

Choose a current JDBC driver for SQL Server, verify its connection URL and encryption settings, and test integrated authentication on the app host.

Read More
A plain wooden sorting box with separate compartments and a brass latch on a softly lit table.

SQL Injection: How It Works and How to Stop It

March 10, 2010
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Server, SQL Server Security

Prevent SQL injection by separating values from command text, parameterizing dynamic SQL, and validating object names before using QUOTENAME.

Read More
Unmarked wooden spokes radiate from a brass hub toward blue, terracotta and pale stones.

ATN2: Keep the Quadrant When Calculating an Angle

March 8, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

ATN2 uses two components to calculate an angle while retaining its quadrant. I keep the argument order and angle unit visible. Dividing one component by the other would lose useful information and introduce a zero-denominator case.

Read More
Illustrated cover: TRUNCATE Can Roll Back

SQL SERVER – Rollback TRUNCATE Command in Transaction

March 4, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, Transaction Log

Many believe TRUNCATE cannot be rolled back. It can. Here is a Rollback TRUNCATE command example inside a transaction, and why TRUNCATE is logged.

Read More
SQL SERVER - Performance Comparison - INSERT TOP (N) INTO Table - Using Top with INSERT

SQL SERVER – Performance Comparison – INSERT TOP (N) INTO Table – Using Top with INSERT

March 3, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server

A Performance Comparison of INSERT TOP (N) INTO a table versus INSERT with SELECT TOP (N). The first is clearly faster, but the two can give very different results.

Read More
QUOTENAME object names illustrated by a wooden tray divided into two compartments, with slate-blue and sage blocks.

QUOTENAME Object Names: Quote Each SQL Server Name Part

February 26, 2010
Pinal Dave
SQL Tips and Tricks
Developer, SQL Function, SQL Server, SQL String

QUOTENAME object names separately to keep each part of a qualified SQL Server name intact. The function surrounds its entire input with identifier delimiters. A dot inside that input stays inside one quoted name. I keep the schema and object in separate variables.

Read More
Previous 1 … 341 342 343 344 345 346 347 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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