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 – SELF JOIN Not Allowed in Indexed View – Limitation of the View 9

SQL SERVER – SELF JOIN Not Allowed in Indexed View – Limitation of the View 9

September 26, 2010
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Joins, SQL Scripts, SQL View

Self Join is handy, but it is not allowed in indexed view definitions. Limitation of the view 9 reuses my employee and manager example to show it.

Read More
SQL SERVER – Get Numeric Value From Alpha Numeric String – Get Numbers Only

SQL SERVER – Get Numeric Value From Alpha Numeric String – Get Numbers Only

September 25, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Stored Procedure, SQL String

Reader Christofer improved my logic to get a numeric value from alpha numeric string data. His stored procedure uses REVERSE and PATINDEX.

Read More
SQL SERVER - Outer Join Not Allowed in Indexed Views - Limitation of the View 8

SQL SERVER – Outer Join Not Allowed in Indexed Views – Limitation of the View 8

September 24, 2010
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL View

Why is an outer join not allowed in indexed views? Rows can logically disappear when you insert into a base table. Limitation of the view 8 shows an example.

Read More
SQL SERVER - Cross Database Queries Not Allowed in Indexed View - Limitation of the View 7

SQL SERVER – Cross Database Queries Not Allowed in Indexed View – Limitation of the View 7

September 23, 2010
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL View

An indexed view needs WITH SCHEMABINDING, and that rules out cross database queries. Limitation of the view 7 walks through it with two test databases.

Read More
SQL SERVER - UNION Not Allowed but OR Allowed in Index View - Limitation of the View 6

SQL SERVER – UNION Not Allowed but OR Allowed in Index View – Limitation of the View 6

September 22, 2010
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Union clause, SQL View

UNION not allowed in an indexed view can surprise you. Limitation of the view 6 shows the script that fails and how the OR operator is allowed instead.

Read More
Count Big Dialog Error.

SQL SERVER – COUNT(*) Not Allowed but COUNT_BIG(*) Allowed – Limitation of the View 5

September 21, 2010
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL View

A view with COUNT(*) cannot get a clustered index, but switch to COUNT_BIG and it works. Limitation of the view 5, shown with a simple tempdb example.

Read More
SQL SERVER - How to Stop Growing Log File Too Big

SQL SERVER – How to Stop Growing Log File Too Big

September 20, 2010
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts

A client kept truncating the transaction log because of a growing log file. I explain why that is risky and share two better options, starting with Simple recovery.

Read More
Previous 1 … 627 628 629 630 631 632 633 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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