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
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
SQL SERVER - Fix : Error 1702 CREATE TABLE failed because column in table exceeds the maximum of columns

SQL SERVER – Fix : Error 1702 CREATE TABLE failed because column in table exceeds the maximum of columns

April 12, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Error Messages, SQL Server DBCC

Error 1702, CREATE TABLE failed, happens when a table goes past the 1024 column limit in SQL Server 2000. The fix is to cut the columns to 1,024 or fewer.

Read More
SQL SERVER - Fix : Error: 3902, Severity: 16; State: 1 : The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION.

SQL SERVER – Fix : Error: 3902, Severity: 16; State: 1 : The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION.

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

An SSIS package fails with Error 3902: the COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION. Two fixes, one is RetainSameConnection set to true.

Read More
SQL SERVER - UDF - User Defined Function to Extract Only Numbers From String

SQL SERVER – UDF – User Defined Function to Extract Only Numbers From String

April 11, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

A simple UDF, ExtractInteger, to extract only numbers from string input. I test it with a phone number that also has letters in it.

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

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