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 - Finding Tables with Primary or Foreign Keys

SQL SERVER – Finding Tables with Primary or Foreign Keys

April 29, 2015
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts

How do you find which tables have a primary key or foreign key? Here are simple queries for finding tables with primary or foreign keys in a database.

Read More
SQL SERVER - Script: Knowing Data and Log Files Are On the Same Drive

SQL SERVER – Script: Knowing Data and Log Files Are On the Same Drive

April 29, 2015
Pinal Dave
SQL Tips and Tricks
GIDS, SQL Scripts, SQL Server, Transaction Log

At GIDS I talked about keeping data and log files on separate drives. Here is a script that shows which databases have data and Log Files on the same drive.

Read More
A shared air manifold accepts an additional hose while a separate capped coupling stays isolated

A Custom db_executor Role for Stored Procedure Access

April 28, 2015
Pinal Dave
SQL Tips and Tricks
Schema, SQL Server Security, SQL Stored Procedure

The app gets a permission error while it works for you as a sysadmin. Here is how a db_executor role fixes it without opening everything.

Read More
SQL SERVER - Generate Different Random Number for Each Group Using RAND() Function

SQL SERVER – Generate Different Random Number for Each Group Using RAND() Function

April 25, 2015
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Random

The RAND() function returns the same value for every row in a query. Here is a simple trick to generate a different random number for each group.

Read More
SQL Server - Error While Enabling CDC on a Table - The specified '@server' is invalid (valid values are returned by sp_helpserver)

SQL Server – Error While Enabling CDC on a Table – The specified ‘@server’ is invalid (valid values are returned by sp_helpserver)

April 24, 2015
Pinal Dave
SQL Tips and Tricks
Change Data Capture

A reader got an error while enabling CDC on a table: The specified ‘@server’ is invalid. Here is what the message means and what caused it for him.

Read More
SQL SERVER - Different Methods to Know Parameters of Stored Procedure

SQL SERVER – Different Methods to Know Parameters of Stored Procedure

April 24, 2015
Pinal Dave
SQL Tips and Tricks
SQL Stored Procedure

Need to know parameters of stored procedure code quickly? Here are two methods, including sp_help, that list each parameter with its type and order.

Read More
A cheerful man with a beard.

Hey DBA – Watch Your Vendors! Hey Vendors – Try a Little Harder! – Notes from the Field #077

April 23, 2015
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Server

Notes from the Field #077: Mike Walsh asks every DBA to watch their vendors, and asks vendors to try a little harder. Lessons for both sides.

Read More
Previous 1 … 237 238 239 240 241 242 243 … 571 Next
  • Books
  • Testimonials
  • Privacy Policy

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