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 database properties settings.

SQL SERVER – Create Multiple Filegroup For Single Database

May 31, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server Management Studio

How to create multiple filegroup for a single database, both for a new database and an existing one, using T-SQL as well as SSMS.

Read More
SQL SERVER - Difference Between Candidate Keys and Primary Key

SQL SERVER – Difference Between Candidate Keys and Primary Key

May 30, 2009
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Function, SQL Scripts

What is the difference between a candidate key and a primary key? A table can have many candidate keys, but only one of them becomes the primary key.

Read More
Gouache painting of a glass jar full of cream, slate blue and sage marbles on a wooden table, with a small wooden scoop and one loose marble in front

APPROX_COUNT_DISTINCT in SQL Server: Saves Memory, Not Time

May 29, 2009
Pinal Dave
SQL Performance
SQL Function, SQL Memory, SQL Performance, SQL Scripts

APPROX_COUNT_DISTINCT counts distinct values with almost no memory. Tested on 5 million rows, it was within 2.2 percent of the exact count and needed no memory grant, while COUNT(DISTINCT) asked for 436 MB. It was not faster.

Read More
SQL SERVER - Fix : Error : SQLDUMPER library failed initialization. Your installation is either corrupt or has been tampered with. Please uninstall then re-run setup to correct to correct this problem. in a modal dialog with the title SQL Writer

SQL SERVER – Fix : Error : SQLDUMPER library failed initialization. Your installation is either corrupt or has been tampered with. Please uninstall then re-run setup to correct to correct this problem. in a modal dialog with the title SQL Writer

May 28, 2009
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

SQLDUMPER library failed initialization in a SQL Writer dialog does not mean you must reinstall SQL Server. Remove SQL Server VSS Writer and reboot.

Read More
SQL SERVER - Interesting Observation of Logon Trigger On All Servers

SQL SERVER – Interesting Observation of Logon Trigger On All Servers

May 27, 2009
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Scripts, SQL Server, SQL Trigger

I created a Logon Trigger to audit every successful login for a client, and one login was recorded several times on different threads. The script and what I saw.

Read More
SQL SERVER - Find Hostname and Current Logged In User Name

SQL SERVER – Find Hostname and Current Logged In User Name

May 26, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL Server Security

Connected to many servers in SSMS? HOST_NAME() and SUSER_NAME() show the hostname and current logged in user for any query window.

Read More
A hand winding a glass-lidded music box, its brass pinned cylinder and steel comb visible inside

Reading System Procedures With OBJECT_DEFINITION

May 25, 2009
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Stored Procedure, SQL System Table, System Object

Use OBJECT_DEFINITION and sys.system_sql_modules to read visible SQL Server system procedure text and learn how built-in tools work.

Read More
Previous 1 … 698 699 700 701 702 703 704 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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