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 - Find Tables With Primary Key Constraint in Database

SQL SERVER – 2005 – Find Tables With Primary Key Constraint in Database

September 4, 2007
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL System Table

A script to find tables with primary key constraint in a SQL Server 2005 database, listing the index name, table name and column name from sys.indexes.

Read More
A gouache terraced garden links smaller planting modules to a larger supporting terrace through visible fittings.

SQL SERVER – 2005 – Find Tables With Foreign Key Constraint in Database

September 4, 2007
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Server, SQL System Table

A foreign key inventory needs both the constraint and its column pairings. I include schema names to identify each table clearly.

Read More
SQL SERVER - 2005 - Search Stored Procedure Code - Search Stored Procedure Text

SQL SERVER – 2005 – Search Stored Procedure Code – Search Stored Procedure Text

September 3, 2007
Pinal Dave
SQL Tips and Tricks
SQL Cursor, SQL Scripts, SQL Stored Procedure, SQL System Table

How to search stored procedure code in SQL Server 2005 for a table or column name, using sys.procedures and OBJECT_DEFINITION instead of sp_depends.

Read More
SQL SERVER - Fix : Error : Msg 3117, Level 16, State 4 The log or differential backup cannot be restored because no files are ready to rollforward

SQL SERVER – Fix : Error : Msg 3117, Level 16, State 4 The log or differential backup cannot be restored because no files are ready to rollforward

September 2, 2007
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Error Messages, SQL Scripts

Msg 3117 means the log or differential backup cannot be restored because no files are ready to rollforward. Restore the full backup WITH NORECOVERY first.

Read More
Database status.

SQL SERVER – 2005 – Find Database Status Using sys.databases or DATABASEPROPERTYEX

August 31, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server DBCC, SQL System Table, SQL Utility

Find database status such as ONLINE, OFFLINE, RESTORING or SUSPECT using sys.databases or DATABASEPROPERTYEX, and learn what each status means.

Read More
Database properties in AdventureWorks.

SQL SERVER – 2005 – Find Database Collation Using T-SQL and SSMS

August 30, 2007
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Scripts

Two ways to check database collation using T-SQL and SSMS in SQL Server 2005, and why DATABASEPROPERTYEX in T-SQL is the one I recommend.

Read More
SQL SERVER - Difference and Explanation among DECIMAL, FLOAT and NUMERIC

SQL SERVER – Difference and Explanation among DECIMAL, FLOAT and NUMERIC

August 29, 2007
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Scripts

What is the difference between Decimal and Numeric? None, they are the same. Float is different: it is approximate, while Decimal keeps exact precision.

Read More
Previous 1 … 797 798 799 800 801 802 803 … 842 Next
  • Books
  • Testimonials
  • Privacy Policy

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