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 Management Studio Execution Plan.

SQL SERVER – Find All Servers From Local Network – Using sqlcmd – Detect Installed SQL Server on Network

March 18, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Utility, sqlcmd

Find every SQL Server on network with one command: sqlcmd -L or osql -L lists the instances on your local network. An update to my old isql script.

Read More
zero

SQL SERVER – UDF – Pad Ride Side of Number with 0 – Fixed Width Number Display

March 16, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Function, SQL Scripts, SQL Server, SQL Utility

SQL SERVER – UDF – Pad Ride Side of Number with 0 – Fixed Width Number Display. Let us learn more about this blog.

Read More
An open wooden specimen case holds cylinders, small blocks and polished stone spheres in separate compartments.

NULLIF Text: Collation Decides Whether Values Match

March 12, 2009
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Function, SQL Server

NULLIF text comparisons can remove a matching value. Select the matching rule explicitly and preserve the first expression’s return contract.

Read More
SQL SERVER - Pad Ride Side of Number with 0 - Fixed Width Number Display

SQL SERVER – Pad Right Side of Number with 0 – Fixed Width Number Display

March 10, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Function, SQL Scripts, SQL Server, SQL Utility

A reader needed a fixed width number display, like 1 shown as 0000001. SQL Server has no ready-made function, but a simple string trick does it.

Read More
Gouache painting: three long raised garden rows run away from the viewer, two planted with round cabbages and the third bare soil

XPath First Items: Parentheses Change the Selected Nodes

February 25, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

XPath first items can mean one per parent or one overall. Compare step-local [1] with a parenthesized path, including full XML and empty selections.

Read More
Gouache painting: on a long breakfast board three places are laid in a row

JSON_PATH_EXISTS: Distinguish Missing and Null Properties

February 11, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

JSON_PATH_EXISTS tests path presence, including JSON null. Compare missing properties, empty arrays and SQL NULL on SQL Server 2022.

Read More
Two upright blue and terracotta pitchers beside two pale sage bowls and a short red cord.

TRY_PARSE: Make the Culture Explicit for Numeric Text

February 3, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

TRY_PARSE needs an explicit culture when punctuation has a specific numeric meaning. I keep that culture beside the source text. A successful conversion alone cannot establish that the intended number was read.

Read More
Previous 1 … 60 61 62 63 64 65 66 … 92 Next
  • Books
  • Testimonials
  • Privacy Policy

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