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 - Say No to DB Data Roles - SQL Security - Notes from the Field #022

SQL SERVER – Say No to DB Data Roles – SQL Security – Notes from the Field #022

April 3, 2014
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Scripts, SQL Server, SQL Server Security

Brian Kelley explains why he avoids the fixed DB data roles db_datareader and db_datawriter, and how they can compromise your server security.

Read More
A wooden xylophone with bars stepping from long to short, a red mallet resting between two neighbouring bars.

LAG and LEAD: Comparing Each Row With the One Before It

April 2, 2014
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL Function, SQL Order By, SQL Server

Use LAG and LEAD for monthly comparisons, handle defaults and percent change, choose explicit frames, and detect status transitions.

Read More
MySQL - List User Defined Tables - Two Methods

MySQL – List User Defined Tables – Two Methods

April 1, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Scripts, SQL Server, SQL System Table

There are different methods to list out user defined tables in MySQL. We will see two methods in this post.

Let us create the following tables in the database named Test

Read More
A cookie jar with its lid askew and a trail of fresh crumbs on a kitchen counter, no one in sight.

Tracking Recent Object Changes With modify_date

March 31, 2014
Pinal Dave
SQL Tips and Tricks
DBA, SQL Audit, SQL System Table, System Object

Use modify_date to find recent SQL Server object changes, compare databases, and understand which audit questions need event capture.

Read More
An open bento box with neat compartments, one holding a row of small rice balls, a red plum on the rice.

JSON_OBJECT and JSON_ARRAY: Building JSON in SQL Server 2022

March 30, 2014
Pinal Dave
SQL Tips and Tricks
JSON, SQL Function, SQL NULL, SQL Server, SQL Server 2022

Build JSON_OBJECT and JSON_ARRAY values in SQL Server 2022, control null handling, nest arrays, and compare rowset and aggregate output.

Read More
A pumice stone is set aside so another hand can use the wooden handle

A Shrink That Stops Blocking Others: SHRINKFILE WAIT_AT_LOW_PRIORITY

March 29, 2014
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Lock, SQL Server DBCC

A shrink at 4 PM on Friday can block your whole app. See what the low-priority option does, and why shrinking is still a rare tool.

Read More
MySQL - Generate Script for a Table Using SQL

MySQL – Generate Script for a Table Using SQL

March 28, 2014
Pinal Dave
SQL Tips and Tricks
MySQL

SQL Server needs SSMS to build a CREATE TABLE script, but MySQL can do it in SQL. Here is how SHOW CREATE TABLE returns the script for a table.

Read More
Previous 1 … 442 443 444 445 446 447 448 … 849 Next
  • Books
  • Testimonials
  • Privacy Policy

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