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 pasta cutter slicing a sheet of dough into ribbons of equal width, ragged edge trimmings piled aside.

Reading Fixed-Width Text Files With OPENROWSET and a Format File

February 13, 2012
Pinal Dave
SQL Tips and Tricks
CSV, File format, SQL Datatype, SQL Server

Read fixed-width text files with OPENROWSET and an XML format file, trim fields, validate conversions, and load only acceptable rows.

Read More
A tray of sand raked into even lines, a small rake on one corner and a few finger marks disturbing the pattern.

Resetting a Test Database With Database Snapshots

February 12, 2012
Pinal Dave
SQL Tips and Tricks
Snapshot, SQL Backup and Restore, SQL Server, Testing

Resetting a test database with SQL Server snapshots gives a fast baseline for repeatable tests; create, revert, and manage sparse files safely.

Read More
SQL SERVER - A Quick Puzzle on JOIN and NULL - SQL Brain Teaser

SQL SERVER – A Quick Puzzle on JOIN and NULL – SQL Brain Teaser

February 10, 2012
Pinal Dave
SQL Puzzle
SQL Scripts, SQL Server

A relaxing SQL Brain Teaser on INNER JOIN and NULL: set up a sample table, look at the result, and fill in the missing T-SQL that produces it.

Read More
SQL SERVER - ERROR: FIX - Database diagram support objects cannot be installed

SQL SERVER – ERROR: FIX – Database diagram support objects cannot be installed

February 6, 2012
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server

Database diagram support objects cannot be installed because this database does not have a valid owner. Here is the quick fix I used on a friend’s database.

Read More
SQL SERVER - Finding Count of Logical CPU using T-SQL Script - Identify Virtual Processors

SQL SERVER – Finding Count of Logical CPU using T-SQL Script – Identify Virtual Processors

February 4, 2012
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server

A friend needed to count Virtual Processors available to SQL Server 2000. Scripts for 2000 with xp_msver, and for 2005 to 2012 with sys.dm_os_sys_info.

Read More
A butter curler reaches a butter block through one open section of a covered dish

Application Roles: Permissions That Follow the App, Not the User

January 16, 2012
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

Application roles sound like a lock only your app can open. This demo shows what the switch really does and why the password is the whole key.

Read More
A metal sieve over a mixing bowl, flour passing through while a few lumps and a small pebble stay in the mesh.

Data Quality Rules in T-SQL

January 11, 2012
Pinal Dave
SQL Tips and Tricks
Data Observability, ETL, SQL Constraint and Keys, SQL Server

Data quality rules in T-SQL turn nulls, duplicates, invalid dates, and broken references into visible failures before rows reach reports.

Read More
Previous 1 … 301 302 303 304 305 306 307 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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