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 - Retrieve Information of SQL Server Agent Jobs

SQL SERVER – Retrieve Information of SQL Server Agent Jobs

May 31, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Agent, SQL Stored Procedure

sp_help_job returns information about SQL Server Agent jobs in msdb. Run it with no parameters to list every job, plus a few related Agent posts.

Read More
SQL SERVER - Trace Flags - DBCC TRACEON

SQL SERVER – Trace Flags – DBCC TRACEON

May 30, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server DBCC

Trace flags let a DBA turn a database function on or off for a while. How to use DBCC TRACEON and TRACEOFF, with deadlock trace flag 1205 as the example.

Read More
SQL SERVER - Fix : Error : Server: Msg 544, Level 16, State 1, Line 1 Cannot insert explicit value for identity column in table

SQL SERVER – Fix : Error : Server: Msg 544, Level 16, State 1, Line 1 Cannot insert explicit value for identity column in table

May 30, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Identity, SQL Scripts

Msg 544, cannot insert explicit value for identity column, happens when IDENTITY_INSERT is OFF. Turn it ON, insert your rows, then turn it OFF again.

Read More
SQL SERVER - 2005 Change Database Compatible Level - Backward Compatibility

SQL SERVER – 2005 Change Database Compatible Level – Backward Compatibility

May 29, 2007
Pinal Dave
SQL Tips and Tricks
Compatibility Level, SQL Scripts, SQL Stored Procedure

Use sp_dbcmptlevel to change the database compatible level, like 80 for SQL Server 2000 or 90 for 2005, plus the three step best practice to do it.

Read More
SQL SERVER - SQL Joke, SQL Humor, SQL Laugh - SP

SQL SERVER – SQL Joke, SQL Humor, SQL Laugh – SP

May 28, 2007
Pinal Dave
SQL Tips and Tricks
SQL Humor, SQL Scripts, SQL Stored Procedure

A friend emailed me this stored procedure about marriage, and the bride answers with DROP HIM. Pure SQL humor, for fun only, never for a real server.

Read More
SQL SERVER - 2005 Limiting Result Sets by Using TABLESAMPLE - Examples

SQL SERVER – 2005 Limiting Result Sets by Using TABLESAMPLE – Examples

May 27, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Random, SQL Scripts

TABLESAMPLE returns a random sample of rows by percent or row count. My examples show why the same query returns a different number of rows each time.

Read More
SQL SERVER - 2005 Find Table without Clustered Index - Find Table with no Primary Key

SQL SERVER – 2005 Find Table without Clustered Index – Find Table with no Primary Key

May 26, 2007
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

A query on sys.indexes to find every table without clustered index in a database, why heaps can slow you down, and how to pick a clustered key.

Read More
Previous 1 … 318 319 320 321 322 323 324 … 336 Next
  • Books
  • Testimonials
  • Privacy Policy

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