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 - Effect of SET NOCOUNT on @@ROWCOUNT

SQL SERVER – Effect of SET NOCOUNT on @@ROWCOUNT

December 2, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

Does SET NOCOUNT change @@ROWCOUNT? I ran a quick demo in a session and ten hands went up before I even hit execute. The script and what it shows.

Read More
A wooden glove former beside two differently colored gloves with matching outlines

Storing Email Addresses: Length, Case and Unique Keys

December 1, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

Two accounts for one customer usually means nobody wrote down the case rule. Build the table, break each rule, and see what the database can promise.

Read More
SQL SERVER - Fix: Error: File Cannot be Loaded Because the Execution of Scripts is Disabled on This System

SQL SERVER – Fix: Error: File Cannot be Loaded Because the Execution of Scripts is Disabled on This System

November 30, 2011
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Error Messages, SQL Scripts, SQL Server

After a fresh install, PowerShell stopped me with an error: execution of scripts is disabled on this system. The fix takes two lines with Set-ExecutionPolicy.

Read More
One small wooden bead resting behind a neatly arranged group of matching beads on a table.

Handling the Row That Arrives Late

November 29, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, Data Warehousing, Database, ETL

Handle late arriving data with explicit event dates, inferred dimension members, replay windows, and a clear policy for correcting published history.

Read More
A bobbin winder beside threaded and empty bobbins with a separate source spool

Listing Server Logins Not Mapped to Any Database User

November 28, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

A login with no database user is not automatically unused. Build the report, compare by SID, and check server roles before you touch anything.

Read More
Command window displaying PowerShell session.

SQL SERVER – Powershell – Get a List of Fixed Hard Drive and Free Space on Server

November 27, 2011
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Scripts, SQL Stored Procedure

A PowerShell way to get a list of fixed hard drives and free space on server: MVP Ravikanth’s short script with Get-WmiObject and Win32_LogicalDisk.

Read More
SQL Server xp_dirtree window.

SQL SERVER – Get Directory Structure using Extended Stored Procedure xp_dirtree

November 26, 2011
Pinal Dave
SQL Tips and Tricks
SQL Stored Procedure

Need to list a directory structure from T-SQL? The undocumented xp_dirtree procedure does it, and here is how to save its output in a temp table.

Read More
Previous 1 … 559 560 561 562 563 564 565 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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