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 - 2005 - List Tables in Database Without Primary Key

SQL SERVER – 2005 – List Tables in Database Without Primary Key

August 7, 2007
Pinal Dave
SQL Tips and Tricks
Database, SQL Constraint and Keys, SQL Scripts, SQL System Table

A simple script to list tables in database without primary key, using sys.tables and OBJECTPROPERTY TableHasPrimaryKey in SQL Server 2005.

Read More
Numbered wooden tables arranged in rows inside a database drum.

SQL SERVER – 2005 List All Tables of Database

June 26, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL System Table

The simple way to list all tables of a database in SQL Server 2005: select from sys.tables to get every table that users have created.

Read More
A hand moving a magnifying glass along a shelf of plain matching books, one book pulled halfway out.

Searching Every Stored Procedure for a Word

June 1, 2007
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Scripts, SQL Server, SQL Stored Procedure, SQL System Table

Searching every stored procedure through sys.sql_modules finds text quickly, but comments, case, dynamic SQL, and other databases need care.

Read More
Close view of a bicycle chain on a rear sprocket, links joined by steel pins, one link painted red

How the Main System Views Connect

May 11, 2007
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Joins, SQL Server, SQL System Table

Learn how the main system views connect through object_id, schema_id, index_id, and column_id so catalog joins stay accurate.

Read More
SQL SERVER - Fix : Error 2501 : Cannot find a table or object with the name . Check the system catalog.

SQL SERVER – Fix : Error 2501 : Cannot find a table or object with the name . Check the system catalog.

May 9, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL System Table

Error 2501, cannot find a table or object with the name, is a common beginner error. Check the database with USE, the spelling and case, and the owner name.

Read More
SQL SERVER - Query to Find Seed Values, Increment Values and Current Identity Column value of the table

SQL SERVER – Query to Find Seed Values, Increment Values and Current Identity Column value of the table

April 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Identity, SQL Index, SQL Scripts, SQL Server, SQL System Table

A query to list every identity column with its seed, increment and current value, plus what those numbers mean and how to reseed a table safely.

Read More
Previous 1 … 13 14 15 16
  • Books
  • Testimonials
  • Privacy Policy

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