Search Results for

    Show / Hide Table of Contents

    Class SqlServerErrorNumbers

    Summary description for SqlServerErrorNumbers.

    Inheritance
    System.Object
    SqlServerErrorNumbers
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: ImageVault.Core.DataAccess.Repositories
    Assembly: ImageVault.Core.dll
    Syntax
    public static class SqlServerErrorNumbers

    Fields

    CannotInserDuplicateKey

    Gets the CannotInserDuplicateKey of the SqlServerErrorNumbers

    Declaration
    public const int CannotInserDuplicateKey = 2601
    Field Value
    Type Description
    System.Int32
    Remarks

    SELECT * FROM sys.messages WHERE message_id=547

    ConstraintViolation

    message_id of unique constraint validation error from sql server

    Declaration
    public const int ConstraintViolation = 2627
    Field Value
    Type Description
    System.Int32
    Remarks

    SELECT * FROM sys.messages WHERE message_id=2627

    CustomError

    Gets the CustomError of the SqlServerErrorNumbers

    Declaration
    public const int CustomError = 50000
    Field Value
    Type Description
    System.Int32
    Remarks

    This error number is used when RAISERROR is called without specifying msg_id http://msdn.microsoft.com/en-us/library/ms178592.aspx

    Deadlock

    Gets the Deadlock of the SqlServerErrorNumbers

    Declaration
    public const int Deadlock = 1205
    Field Value
    Type Description
    System.Int32
    Remarks

    SELECT * FROM sys.messages WHERE message_id=1205

    SqlStatementConflictedWithConstraint

    Gets the SqlStatementConflictedWithConstraint of the SqlServerErrorNumbers

    Declaration
    public const int SqlStatementConflictedWithConstraint = 547
    Field Value
    Type Description
    System.Int32
    Remarks

    SELECT * FROM sys.messages WHERE message_id=547

    In This Article
    Back to top (c) Meriworks 2002-2022