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
A hand turning a spice grinder that turns whole peppercorns into fine powder

Hashing Data With HASHBYTES

November 11, 2007
Pinal Dave
SQL Tips and Tricks
ETL, SQL Function, SQL Server, SQL Server Encryption, SQL Server Security

HASHBYTES creates repeatable row fingerprints with SHA2 algorithms, but input encoding, NULL handling, and collision risk need a clear plan.

Read More
Three round wall clocks side by side in a station hall, each showing a different hour, morning light on the tiles.

Handling Time Zones in SQL Server

November 6, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL DateTime, SQL Function, SQL Server

Handling time zones in SQL Server means storing an instant, converting with AT TIME ZONE, and testing daylight saving gaps.

Read More
SQL SERVER - 2005 - Get Current User - Get Logged In User

SQL SERVER – 2005 – Get Current User – Get Logged In User

October 27, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server Security, SQL System Table

How to get current user for a query in SQL Server 2005: SELECT SYSTEM_USER returns the name of the current context, which helps with debugging and security.

Read More
SQL SERVER - Deterministic Functions and Nondeterministic Functions

SQL SERVER – Deterministic Functions and Nondeterministic Functions

October 26, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function

Deterministic functions like ABS, DATEDIFF and ISNULL always return the same result for the same input. Nondeterministic functions like NEWID and RAND do not.

Read More
break

SQL SERVER – Simple Example of WHILE Loop With CONTINUE and BREAK Keywords

October 24, 2007
Pinal Dave
SQL Tips and Tricks
SQL Cursor, SQL Function, SQL Scripts, SQL Server

I have tried to explain the usage of simple WHILE loop in the first example. BREAK keywords will exit the stop the while loop and control is moved.

Read More
SQL SERVER - Get Permissions of My Username / Userlogin on Server / Database

SQL SERVER – Get Permissions of My Username / Userlogin on Server / Database

October 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server Security, SQL Stored Procedure, SQL System Table

Invited to review a big company’s schema, I wanted to know my own permissions without asking their DBA. fn_my_permissions shows them at server and database level.

Read More
SQL SERVER - Difference Between @@Version and xp_msver - Retrieve SQL Server Information

SQL SERVER – Difference Between @@Version and xp_msver – Retrieve SQL Server Information

October 22, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Stored Procedure, SQL System Table

SELECT @@Version gives the SQL Server version, edition and service pack in one string. I compare @@Version and xp_msver, which returns more server details.

Read More
Previous 1 … 76 77 78 79 80 81 82 … 92 Next
  • Books
  • Testimonials
  • Privacy Policy

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