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 - @@DATEFIRST and SET DATEFIRST Relations and Usage

SQL SERVER – @@DATEFIRST and SET DATEFIRST Relations and Usage

April 22, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Utility

How SET DATEFIRST changes the first day of the week, and how @@DATEFIRST returns the current value, which also changes with SET LANGUAGE. Simple examples.

Read More
A field telephone mounted on a wooden post at the edge of an empty field at dusk, its cable cut and hanging loose in the grass.

SQL SERVER – Fix : Error 1418 – Microsoft SQL Server – The server network address can not be reached

April 22, 2007
Pinal Dave
SQL Tips and Tricks
Computer Network, SQL Error Messages, SQL Server, SQL Server Security, SQL Utility

Error 1418 says the server network address cannot be reached or does not exist. Check the firewall, then enable TCP/IP for the server and client on port 1433.

Read More
Green olives placed inside, on the rim of and outside a square wooden tray beside a red cloth.

geometry STContains: Check Boundary Membership

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

geometry STContains differs from STIntersects at a polygon boundary. Four literal points expose the intended inclusion rule without treating ordinary language as a spatial predicate.

Read More
Short folded linen strips and discarded offcuts sit beside a larger empty wicker basket

Silent Truncation When Building Strings in nvarchar(max) Variables

April 14, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

Silent truncation can happen while SQL Server evaluates a bounded expression. These examples compare the lost characters with a max expression and a max REPLICATE input. Check stored lengths before blaming a clipped display.

Read More
SQL SERVER - Fix : Error: 18452 Login failed for user '(null)'. The user is not associated with a trusted SQL Server connection.

SQL SERVER – Fix : Error: 18452 Login failed for user ‘(null)’. The user is not associated with a trusted SQL Server connection.

April 14, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server Security

Error: 18452 Login failed for user ‘(null)’ means the server only allows Windows Authentication. Switch to Mixed Mode and enable the sa login to fix it.

Read More
SQL SERVER - Script to Find SQL Server on Network

SQL SERVER – Script to Find SQL Server on Network

April 13, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server Security, SQL Stored Procedure, SQL Utility

I manage lots of SQL Servers and forget their names, so I use xp_CMDShell and ISQL -L to find SQL Server on network machines. A short video is included.

Read More
SQL SERVER - 2005 - Disable Triggers - Drop Triggers

SQL SERVER – 2005 – Disable Triggers – Drop Triggers

April 13, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server Security, SQL Trigger

Two ways to stop a trigger from firing in SQL Server 2005: drop it or disable it. I prefer DISABLE TRIGGER and show the syntax to disable triggers.

Read More
Previous 1 … 563 564 565 566 567 568 569 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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