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: two identical long dough logs lie parallel on a floured counter, each sliced into rounds of equal width

DATE_BUCKET: Align 15-Minute Windows With an Origin

October 21, 2010
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Server, SQL Server 2022

DATE_BUCKET uses an origin to align reporting windows. Keep width, unit and origin explicit while checking timestamps around each boundary.

Read More
SQL SERVER – Could not connect to TCP error code 10061: No connection could be made because the target machine actively refused it

SQL SERVER – Could not connect to TCP error code 10061: No connection could be made because the target machine actively refused it

October 20, 2010
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

TCP error code 10061 says the target machine actively refused the connection. In my StreamInsight app, a Windows Firewall exception for the port fixed it.

Read More
SQL SERVER - Change Column DataTypes

SQL SERVER – Change Column DataTypes

October 18, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Scripts, SQL Server

A simple way to change column datatypes in SQL Server with ALTER TABLE ALTER COLUMN, shown on a sample table and checked with sp_help.

Read More
Execution plan of SQL Server query.

SQL SERVER – System Stored Procedure sys.sp_tables

October 17, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure, SQL System Table

Most people run SELECT * FROM sys.tables to list tables. If you do not need all those details, sys.sp_tables returns tables and views with schema names.

Read More
Gouache painting: in a stone laundry room, two zinc washtubs stand side by side on a low bench

datetime2 Precision: Rounding Can Cross Midnight

October 16, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL DateTime, SQL Scripts

datetime2 precision changes can round into the next second or date. Compare typed seven-digit values with millisecond and whole-second conversions.

Read More
Two clear glass pitchers and two ceramic cups arranged on a round wooden serving tray.

Where a Self-Service Report Actually Gets Its Data

October 15, 2010
Pinal Dave
SQL Tips and Tricks
Best Practices, Data Warehousing, Database, ETL

Trace self-service BI numbers through source data, transformations, refresh schedules, credentials, gateways, and the owner of each step.

Read More
SQL SERVER - 1500 Posts - A MileStone - Origin of Blog Name Revealed

SQL SERVER – 1500 Posts – A MileStone – Origin of Blog Name Revealed

October 14, 2010
Pinal Dave
SQL Tips and Tricks

For my 1500th blog post, I keep a promise and reveal the origin of blog name SQLAuthority.com, inspired by a ColdFusion site called Fusion Authority.

Read More
Previous 1 … 417 418 419 420 421 422 423 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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