Logo

dev-resources.site

for different kinds of informations.

Find logged Microsoft SQL Server Messages

Published at
1/10/2025
Categories
sql
sqlserver
database
help
Author
flnzba
Categories
4 categories in total
sql
open
sqlserver
open
database
open
help
open
Author
6 person written this
flnzba
open
Find logged Microsoft SQL Server Messages

Navigating SQL Server Error Codes: A Guide to Understanding 28000 to 30999

Today I encounterd an Error when creating an ODBC Connection. It stated the โ€œSQL State Error: 28000โ€.

The Microsoft documentation provides a comprehensive list and explanation of SQL Server error codes from 28000 to 30999. This range includes errors related to authentication issues, permissions, and configuration problems, which are common when setting up or managing SQL Server databases. There you can find the SQL Code to search for all possible Error Codes, the description and if the error exists in the logs.

I modified the code slightly to just search for the error code โ€œ28000โ€.

SELECT message_id AS Error,
    severity AS Severity,
    [Event Logged] = CASE is_event_logged
        WHEN 0 THEN 'No' ELSE 'Yes'
        END,
    [text] AS [Description]
FROM sys.messages
WHERE language_id = 1033 AND message_id = 28000 /* replace 1040 with the desired language ID, such as 1033 for US English */
ORDER BY [Event Logged], message_id DESC;
Enter fullscreen mode Exit fullscreen mode

Link to Documentation: Microsoft Learn

Read this article and more on fzeba.com.

database Article's
30 articles in total
Favicon
Why Successful Companies Don't Have DBAs
Favicon
How Supabase Made Me Rethink App Development (And Honestly, Iโ€™m Obsessed)
Favicon
Developing a project using Java Spring Framework, JSON, JPA and PostgreSQL
Favicon
Query Data with DynamoDB
Favicon
Let's take a quick look at Drizzle ORM
Favicon
Simplify Python-Informix Connections with wbjdbc
Favicon
Building an Intelligent SQL Query Assistant with Neon, .NET, Azure Functions, and Azure OpenAI service
Favicon
TypeScript Discord Bot Handler
Favicon
How to Fix the โ€œRecord to Delete Does Not Existโ€ Error in Prisma
Favicon
Extract structured data using Python's advanced techniques
Favicon
Key Component of a Manufacturing Data Lakehouse
Favicon
Enabling Database Backup and Restore to S3 for SQL Server in AWS RDS: A Step-by-Step Guide
Favicon
Firebase Alternatives to Consider in 2025
Favicon
Building the Foundations: A Beginnerโ€™s Guide to HTML
Favicon
Why top AI architects are DITCHING relationalDBs for knowledge graphs
Favicon
Intelligent PDF Data Extraction and database creation
Favicon
What you should know about CIDR in clear terms
Favicon
Data Privacy Challenges in Cloud Environments
Favicon
open source multi tenant cloud database
Favicon
Diesel vs SQLx in Raw and ORM Modes
Favicon
Identifying and Resolving Blocking Sessions in Oracle Database
Favicon
Show query window at startup in SQL Server Management Studio
Favicon
How to Set Custom Status Bar Colors in SSMS to Differentiate Environments
Favicon
JOOQ Is Not a Replacement for Hibernate. They Solve Different Problems
Favicon
Top 20 Unique Database Project Ideas For Students
Favicon
Day 13 of My Android Adventure: Crafting a Custom WishList App with Sir Denis Panjuta
Favicon
TimescaleDB in 2024: Making Postgres Faster
Favicon
Auditing SQL Server Database Users, Logins, and Activity: A Comprehensive Guide
Favicon
Primeiros Passos no PostgreSQL: Um Guia Completo para Iniciantes
Favicon
Find logged Microsoft SQL Server Messages

Featured ones: