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
Gouache painting: three stations on a workshop wall and bench

SPACE: Keep Blank Text, Empty Text and NULL Distinct

April 22, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Server

SPACE builds a present blank string from a count. Keep empty text and NULL separate, and choose a measurement that retains supplied spaces.

Read More
A single plain brass key beside one small closed wooden drawer on a softly lit table.

Giving an Application Account Only What It Needs

April 20, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Server, SQL Server Security

Apply least privilege SQL Server access with separate runtime and deployment roles, narrow permissions, and tests of allowed and denied actions.

Read More
A flat-pack assembly laid out on a wooden floor in a neat row, with one bracket missing from the line and an empty outline where it should be.

SQL SERVER – Fix : SQL Server 2008 Developer Edition Install fail due to .NET Framework 3.5 missing

April 19, 2009
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server

SQL Server 2008 Developer Edition setup failed with .NET Framework 3.5 missing, even though Visual Studio 2008 ran fine. Here is the link that explained why.

Read More
A paper till roll unspooling from a machine and coiling into a long heap across the floor of a back office.

What Is the Transaction Log and Why Does It Keep Growing?

April 18, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Backup and Restore, SQL Server

The transaction log records every change before it reaches the data file. Why it grows, what log_reuse_wait_desc is telling you, how the recovery model decides everything, and the one fair reason to shrink it.

Read More
Blue and sage bowls with terracotta rim beads beside two smaller cups on a pale tray.

FOR XML PATH: Choose Attributes and Nested Elements With Aliases

April 17, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL XML

FOR XML PATH interprets column aliases as directions for the output’s attributes and element hierarchy. I use three aliases to shape two rows. The source columns stay ordinary relational values.

Read More
Gouache painting: three stepping stone paths cross a meadow

geometry Line Endpoints: Preserve the Described Direction

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

geometry line endpoints identify the first and last described points. Reversing the same path exchanges them, while a closed line starts and ends together.

Read More
SQL SERVER - Check if Current Login is Part of Server Role Member

SQL SERVER – Check if Current Login is Part of Server Role Member

April 14, 2009
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server, SQL Server Security

Clients sometimes forget to give me admin rights. IS_SRVROLEMEMBER(‘sysadmin’) checks if the current login is a Server Role Member: 1 means yes, 0 means no.

Read More
Previous 1 … 365 366 367 368 369 370 371 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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