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 - SQL SERVER - UDF - Get the Day of the Week Function - Part 2

SQL SERVER – SQL SERVER – UDF – Get the Day of the Week Function – Part 2

May 23, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts

Mihir Popat improved my Day of the Week Function with @@DATEFIRST, so Sunday does not have to be the first day of the week. Here is his UDF.

Read More
PIVOT table example.

SQL SERVER – PIVOT Table Example

May 22, 2008
Pinal Dave
SQL Tips and Tricks
PIVOT and UNPIVOT, SQL Scripts, SQL Server

A PIVOT Table example on AdventureWorks that counts addresses by state, plus why UNPIVOT cannot always give you back the original rows.

Read More
SQL SERVER - 2005 - Twelve Tips For Optimizing Sql Server 2005 Query Performance

SQL SERVER – 2005 – Twelve Tips For Optimizing Sql Server 2005 Query Performance

May 21, 2008
Pinal Dave
SQL Performance
Best Practices, Database

Twelve tips for better SQL Server 2005 query performance, from execution plans and covering indexes to avoiding cursors, using APPLY and archiving old data.

Read More
A clear tumbler and a corked glass bottle with a sage ribbon on warm paper.

STRING_ESCAPE JSON Text: Escaping Is Not Serialization

May 20, 2008
Pinal Dave
SQL Tips and Tricks
JSON, SQL Function, SQL Server, SQL String

STRING_ESCAPE JSON text is still text that belongs inside a JSON string. This example compares quotations, backslashes and a newline with complete FOR JSON PATH objects.

Read More
An open chef's knife roll with one small paring knife taken out and laid beside a single apple.

Least Privilege for Application Logins

May 19, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, DBA, SQL Login, SQL Server Security

Design least privilege for SQL Server application logins with roles, schema permissions, and stored procedures, then test real workflows.

Read More
SQLAuthority News - SQL SERVER Database Administrator Job Description

SQLAuthority News – SQL SERVER Database Administrator Job Description

May 18, 2008
Pinal Dave
SQLAuthority News
Database, DBA, Software Development

An updated SQL Server Database Administrator Job Description: support for the database environment, new technology, reliability and long-term planning.

Read More
SQL SERVER - Ideal TempDB FileGrowth Value

SQL SERVER – Ideal TempDB FileGrowth Value

May 17, 2008
Pinal Dave
SQL Performance
SQL Server, SQL TempDB

What is a good TempDB FileGrowth value? Here are simple size-based guidelines, from 10 MB growth for small files to 10 percent for large ones.

Read More
Previous 1 … 756 757 758 759 760 761 762 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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