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 - How to Create Linked Server to SQL Azure Database?

SQL SERVER – How to Create Linked Server to SQL Azure Database?

September 12, 2017
Pinal Dave
SQL Tips and Tricks
Linked Server, SQL Azure, SQL Error Messages, SQL Server

If you take the normal approach to create a linked server to SQL Azure Database, then you would end up in below error message.

Read More
Five distinct relief shapes remain in order while repeated copies are preserved in a separate tray.

SQL SERVER – Removing Duplicate String Characters with Ordered Aggregation – Part 2

September 11, 2017
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

I can Remove Duplicate characters while preserving their first-occurrence order. This second method uses explicit positions and ordered aggregation.

Read More
SQL SERVER - Unable to Get Listener Properties Using PowerShell - An Error Occurred Opening Resource

SQL SERVER – Unable to Get Listener Properties Using PowerShell – An Error Occurred Opening Resource

September 9, 2017
Pinal Dave
SQL Tips and Tricks
AlwaysOn, PowerShell, SQL Error Messages, SQL Scripts, SQL Server, SQL Server Cluster

A client could not change listener properties with PowerShell and got “An error occurred opening resource”. Here is the T-SQL query I shared and what fixed it.

Read More
Execution Plan of SQL Query.

SQL SERVER – How to Find UNIQUE Key Columns? – sp_special_columns

September 8, 2017
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Server, SQL Stored Procedure

Want to know which columns uniquely identify a row in a table? The system stored procedure sp_special_columns tells you. Here is a quick demo.

Read More
A key and inspection mirror sit near a doorway into a separate stocked storage room.

SQL SERVER – System Procedure to List Out Table From Linked Server

September 7, 2017
Pinal Dave
SQL Tips and Tricks
Linked Server, SQL Scripts, SQL Server, SQL Stored Procedure

The System Procedure sp_tables_ex lists table metadata from an existing linked server. I check its provider and login mapping separately.

Read More
Small snorkeling fin casting an enlarged shadow on a cream wall

ROWCOUNT and PAGECOUNT: Faking a Big Table to Test Plans

September 6, 2017
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

You can tell the optimizer a three-row table has 10 million rows and watch the plan change. Here is how, and how to undo it.

Read More
Compatibility level table.

SQL SERVER – Different Methods to Know COMPATIBILITY LEVEL of a Database

September 5, 2017
Pinal Dave
SQL Tips and Tricks
Compatibility Level, SQL Scripts, SQL Server

Different methods to find the compatibility level of a database, from sp_helpdb to sp_dbcmptlevel, with a quick note on what the setting means.

Read More
Previous 1 … 141 142 143 144 145 146 147 … 571 Next
  • Books
  • Testimonials
  • Privacy Policy

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