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
A vinyl record turning on a turntable with the needle resting in the run-out groove.

SQL SERVER – Is Cursor Database Object or Datatype?

April 19, 2008
Pinal Dave
SQL Interview Questions and Answers
SQL Cursor, SQL Server

Whenever we want to loop something we always look for logic like WHILE LOOP or FOR LOOP. Trust me on my word that both of them are cursor when it is about SQL Server.

Read More
SQL SERVER - Generate Foreign Key Scripts For Database

SQL SERVER – Generate Foreign Key Scripts For Database

April 18, 2008
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys

Madhaiyan Seenivasan’s stored procedure lets you generate foreign key scripts for a whole database, handy when you drop all foreign keys and add them back.

Read More
Two picket fence sections meeting at one shared post, one painted vermilion, one cream, with no gap between them.

Filtering on Dates Without Losing the Index

April 17, 2008
Pinal Dave
SQL Performance
Execution Plan, SQL DateTime, SQL Index, SQL Server

Filtering on dates without losing an index means using searchable ranges; learn half-open boundaries, date and datetime differences, and plan checks.

Read More
SQL SERVER - 2008 - Row Constructors - Load Temp Tables From Stored Procedures

SQL SERVER – 2008 – Row Constructors – Load Temp Tables From Stored Procedures

April 16, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure

Load temp tables from stored procedures with a simple INSERT INTO EXEC instead of a loopback OPENQUERY. Here is the before and after code.

Read More
Gouache painting: four identical wooden pizza peels lean against a flour-dusted shelf edge, each steeper than the last

TAN: Keep the Angle Away From Its Undefined Point

April 15, 2008
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

TAN reads radians and returns float. These safe angles demonstrate sign and magnitude while explaining why a large finite float near ninety degrees is not a meaningful infinity.

Read More
SQL SERVER - SQL Slammer (Computer Worm)

SQL SERVER – SQL Slammer (Computer Worm)

April 14, 2008
Pinal Dave
SQL Tips and Tricks
SQL Download, SQL Server Security

Is there any virus associated with SQL Server? A DBA’s question led me to SQL Slammer, the computer worm that slowed down Internet traffic in January 2003.

Read More
A perforated brass insert in a rectangular wooden tray beside a vermilion wooden piece on a round tray and a sage bowl.

PATINDEX and CHARINDEX: Pattern or Literal Search

April 13, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

PATINDEX and CHARINDEX answer different questions. Compare wildcard patterns with literal searches, preserve NULL, and pin collation for digit ranges.

Read More
Previous 1 … 764 765 766 767 768 769 770 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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