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 - Primary Key Must Not Contain NULL - Primary Key are NOT NULL

SQL SERVER – Primary Key Must Not Contain NULL – Primary Key are NOT NULL

May 31, 2007
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys

Can you have a nullable primary key? No. A primary key must not contain NULL: Allow Nulls cannot be set on its columns, and all values must be unique.

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 - User Defined Functions (UDF) Limitations

SQL SERVER – User Defined Functions (UDF) Limitations

May 29, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function

Why are stored procedures more flexible? Here are the User Defined Functions (UDF) limitations: fewer input parameters, no GETDATE(), one result set, and more.

Read More
Man eating in a restaurant.

SQLAuthority News – Author Visit – Meeting with Readers – Top Three Features of SQL SERVER 2005

May 28, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQLAuthority Author Visit

Over dinner in Las Vegas, two readers asked me to pick my top three features of SQL Server 2005 out of Microsoft’s top 30. Here is what I picked and why.

Read More
Matching brass fittings, blue wedges and wooden knobs align across two divided trays.

CTE Column Names: Rename Positions Without Moving Values

May 28, 2007
Pinal Dave
SQL Tips and Tricks
CTE, SQL Scripts, SQL Server

CTE column names rename positions without moving values. Compare inner aliases, report names and a misleading reversed list.

Read More
Previous 1 … 552 553 554 555 556 557 558 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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