/Include/sqlce_err.h
# · C Header · 1193 lines · 712 code · 61 blank · 420 comment · 0 complexity · da412e5ed3cd68d167d18463b4287009 MD5 · raw file
Large files are truncated click here to view the full file
- //=============================================================================
- // Microsoft SQL Server Compact (Version 3.5)
- //
- // Copyright (c) Microsoft Corporation. All rights reserved.
- //
- // Component: Common files
- //
- // File: sqlce_err.h
- //
- // File Comments: Native Engine Error Codes and Messages.
- //=============================================================================
-
- #ifndef __SQLCE_ERR_H__
- #define __SQLCE_ERR_H__
-
- // HRESULTS
- // Values are 32 bit values layed out as follows:
- //
- // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
- // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
- // +---+-+-+-----------------------+-------------------------------+
- // |Sev|C|R| Facility | Code |
- // +---+-+-+-----------------------+-------------------------------+
- //
- // where
- //
- // Sev - is the severity code
- //
- // 00 - Success
- // 01 - Informational
- // 10 - Warning
- // 11 - Error
- //
- // C - is the Customer code flag
- //
- // R - is a reserved bit
- //
- // Facility - is the facility code
- //
- // Code - is the facility's status code
- //
- //-----------------------------------------------------------------------------
-
- // ****************************************************************************
- // NOTE: THIS FILE IS PARSED BY SQLDRIVER - PLEASE DO THE FOLLOWING:
- // ****************************************************************************
- //
- // 1. DO NOT put an error (or description) on more than one line
- // 2. DO NOT include " in the description - this screws things up
- // 3. Make sure the comment is at the end of a line and has a space
- // before the text ("// ")
- // 4. All Errors should document error parameters after the error string
- // in this format [#,#,#,s,s,s]
- // [,,,,,] == no error parameters for this error.
- // 5. DO NOT REMOVE // DEAD error codes; Everytime you add a new error, make
- // sure the number hasn't been used in the past; otherwise some user apps
- // could break;
- //
- // ****************************************************************************
-
- // ----------------------------------------------------------------------------
- // ----------------------------------------------------------------------------
- // M I N O R C O D E S
- //
- // These are codes paired with a major code of E_FAIL for OLE/DB exposure.
- //
- // SQL CE Range (25000-30000)
- // OLEDB HRESULT Range (3584-3805) i.e. (0x0E00-0x0EDD)
- //
- // ****************************************************************************
- // NOTE : Our error number range is limited to the SQL Server error number
- // range, Which is 25000 to 30000. DO NOT ADD ANY ERRORS ABOVE OR
- // BELOW THIS RANGE!
- // Even though OLEDB HRESULT is of type LONG it is stored as USHORT
- // in the error resource DLL string table. So this range (3584-3805)
- // is also reserved!
- // ****************************************************************************
- //
- // SE Minor Range: 25000 -- 25499
- //
- // QP Minor Range: 25500 -- 26999
- //
- // 25500 -- 25699 : Compile errors
- // 25700 -- 25899 : Execute errors
- // 25900 -- 26099 : Expr errors
- // 26100 -- 26299 : Storage QP errors
- // 26300 -- 26499 : Core QP errors
- // 26500 -- 26999 : Reserved
- //
- // OLEDB Minor Range: 27000 -- 27499
- //
- // OLEDB HRESULT Range: 3584 -- 3805
- //
- // Common Minor Range: 27500 -- 27749
- //
- // Managed Code Minor Range: 27750 -- 27999
- //
- // Connectivity Minor Range 28000 -- 30499
- //
- // 28000 -- 28499 : Transport
- // 28500 -- 28999 : Client Agent
- // 29000 -- 29499 : Server Agent
- // 29500 -- 29999 : Message Protocol
- // 30000 -- 30499 : SQLCE Relay (obsolete component as of now)
- // 30500 -- 39499 : Unused
- // 39500 -- 39999 : Miscellaneous (setup, etc.)
- //
- //
- // ----------------------------------------------------------------------------
- //
- // Storage Engine 25000 - 25499
- //
- #define SSCE_M_NOCURRENTRECORD 25001 // Either the cursor is not on a row or there are no rows left. [,,,,,]
- #define SSCE_M_INVALIDBUFFERSIZE 25002 // The specified buffer size is not valid. [Buffer size specified,,,,,]
- #define SSCE_M_COLUMNLENGTHTOOBIG 25003 // The specified length is too long for the column type. [Specified length,Column data type,,,,]
- #define SSCE_M_COLUMNNOTUPDATEABLE 25004 // The column cannot be modified. [,,,Column name,,]
- #define SSCE_M_NULLINVALID 25005 // The column cannot contain null values. [,,,Column name,Table name,]
- // DEAD SSCE_M_INVALIDOPERATION 25006 // The operation cannot be performed on the object. [,,,,,]
- // DEAD SSCE_M_INTRANSACTION 25007 // The operation cannot be performed in a transaction. [,,,,,]
- #define SSCE_M_INVALIDPARAMETER 25008 // The parameter is not valid. [,,,,,]
- #define SSCE_M_INVALIDPATH 25009 // The path is not valid. Check the directory for the database. [,,,Path,,]
- #define SSCE_M_INVALIDFILENAME 25010 // The file name is not valid. Check the file name for the database. [,,,File name,,]
- #define SSCE_M_INVALIDDATABASE 25011 // The file that is being referenced is not a SQL Server Compact database file format. [,,,Databasename,,]
- #define SSCE_M_UPDATENOTPREPARED 25012 // The record was not prepared for update. [,,,,,]
- // DEAD SSCE_M_TABLENOTLOCKED 25013 // The operation is supported only on tables with exclusive locks. [,,,Table name,,]
- #define SSCE_M_SYSCOLACCESSDENIED 25014 // Access to the system column is denied. [,,,,,]
- // DEAD SSCE_M_CANTALLOCATEPAGE 25015 // A page cannot be allocated. There might not be enough memory on the device. [,,,,,]
- #define SSCE_M_KEYDUPLICATE 25016 // A duplicate value cannot be inserted into a unique index. [,,,Table name,Constraint name,]
- #define SSCE_M_DATABASECORRUPTED 25017 // The database file may be corrupted. Run the repair utility to check the database file. [,,,Database name,,]
- #define SSCE_M_WRITECONFLICT 25018 // Failed to obtain a lock for a write operation. [,,,,,]
- // DEAD SSCE_M_READCONFLICT 25019 // Failed to obtain a lock for a read operation. [,,,,,]
- #define SSCE_M_COMMITCONFLICT 25020 // Failed to obtain a lock for a commit. [,,,,,]
- // DEAD SSCE_M_SESSIONWRITECONFLICT 25021 // Failed to obtain lock for a read or write operation. [,,,,,]
- #define SSCE_M_NULLKEYDISALLOWED 25022 // Null values are not allowed in indexes. [,,,,,]
- #define SSCE_M_INTEGRITYVIOLATION_MSTR 25025 // The primary key value cannot be deleted because references to this key still exist. [,,,Foreign key constraint name,,]
- #define SSCE_M_INTEGRITYVIOLATION_SLV 25026 // A foreign key value cannot be inserted because a corresponding primary key value does not exist. [,,,Foreign key constraint name,,]
- #define SSCE_M_RECORDTOOBIG 25027 // The table definition or the row size exceeds the maximum row size of 8060 bytes. [,,,,,]
- #define SSCE_M_INVALIDPASSWORD 25028 // The specified password does not match the database password. [,,,Data Source,,]
- // DEAD SSCE_M_RI_UPDATETWICE 25029 // An attempt was made to update a field in a record twice. [,,,,,]
- #define SSCE_M_RI_DUPLICATEKEY 25030 // A duplicate key value was found as a result of referential integrity action. [,,,Foreign table name,,]
- // DEAD SSCE_M_RI_KEYNULLDISALLOWED 25031 // A referential cascade action is setting a nonnull column to NULL. [,,,Foreign table name,,]
- // DEAD SSCE_M_RI_SESSIONWRITECONFLICT 25032 // A write conflict occurred because a referential integrity action is not allowed. [,,,Foreign table name,,]
- #define SSCE_M_ILLEGALCOLLATINGSEQ 25033 // The specified locale is not supported on this operating system. [LCID,,,,,]
- #define SSCE_M_FILELOCKVIOLATION 25034 // There is a file locking violation. Close any external application that uses the database file. [,,,,,]
- #define SSCE_M_FILESHAREVIOLATION 25035 // There is a file sharing violation. A different process might be using the file. [,,,,,]
- // DEAD SSCE_M_FILELOCKINGUNAVAILABLE 25036 // File locking is not available. [,,,,,]
- #define SSCE_M_DISKFULL 25037 // There is not enough disk space left for the database. [,,,,,]
- #define SSCE_M_TEMPDISKFULL 25038 // There is not enough disk space left for the temporary database. [,,,,,]
- #define SSCE_M_FILEACCESSDENIED 25039 // Access to the database file is not allowed. [,,,File name,,]
- // DEAD SSCE_M_INVALIDSORTDLL 25042 // The language required for this database file is not fully installed on this operating system. [,,,,,]
- #define SSCE_M_TOOMANYOPENFILES 25044 // OS Error: The OS limit of open files has been exceeded. Other applications will need to be shut down to free up available open files. [,,,,,]
- // DEAD SSCE_M_OBSOLETEDATABASEFORMAT 25045 // The database file format is obsolete. [,,,,,]
- #define SSCE_M_FILENOTFOUND 25046 // The database file cannot be found. Check the path to the database. [,,,Data Source,,]
- #define SSCE_M_READVERIFYERROR 25047 // OS Error: SQL Server Compact encountered a premature EOF for the database file. Running the repair utility might help recover some data. [,,,,,]
- #define SSCE_M_NOMOREFILEHANDLES 25048 // OS Error: The OS is reporting that no more file handles can be created. In order to proceed, try closing other applications. [,,,,,]
- #define SSCE_M_DISKNOTREADY 25049 // OS Error: The OS storage system (RAM, CF, SD, or IPSM) is not responding. Retry the operation. [,,,,,]
- #define SSCE_M_SHARINGBUFFEREXCEEDED 25050 // OS Error: The OS will not allow sharing of any more files. In order to proceed, try closing other applications. [,,,,,]
- #define SSCE_M_DISKIO 25051 // Internal error: Unable to successfully execute disk IO on the file system. [,,,,,]
- // DEAD SSCE_M_THREADSNOTSUPPORTED 25052 // The operating system does not support threads. [,,,,,]
- #define SSCE_M_KEYNOTMADE 25053 // Internal error: A serious error has occurred when trying to create a key. [,,,,,]
- #define SSCE_M_TOOMANYKEYS 25054 // The limit of 16 columns for the multi-column index was exceeded. [,,,,,]
- #define SSCE_M_COLUMNWIDTHNOTEVEN 25056 // The size of the Unicode text column is not even. [Column size,,,Column name,,]
- #define SSCE_M_NOCURRENTINDEX 25058 // Internal error: Invalid operation without a current index. [,,,,,]
- #define SSCE_M_ILLEGALINDEXCOLUMN 25059 // Long value data type cannot be indexed. [,,,,,]
- #define SSCE_M_REFERENCENOTFOUND 25060 // The foreign key constraint does not exist. [,,,,,]
- // DEAD SSCE_M_OBJECTNOTREPLICABLE 25062 // The object is not replicable. [,,,Object name,,]
- #define SSCE_M_ONLYONESPECIALCOLUMN 25064 // Only one ROWGUID, autoincrement, and version are allowed for each column in a table. [,,,Object name,,]
- #define SSCE_M_TOOMANYINDEXES 25065 // The limit of 249 indexes per tables has been exceeded. [,,,Table name,,]
- #define SSCE_M_TOOMANYCOLUMNS 25066 // The limit of 1024 columns for a table has been exceeded. [Column count,,,Column name,,]
- #define SSCE_M_TRANSTOODEEP 25067 // Internal error: The internal transactions for SQL Server Compact have exceeded the nesting limit. [,,,,,]
- // DEAD SSCE_M_SELFREFERENCE 25068 // A column in an index cannot reference itself. [,,,,,]
- // DEAD SSCE_M_NOPRIMARYINDEX 25069 // The referenced table must have a primary index. [,,,,,]
- #define SSCE_M_DIFFNUMRELCOLUMNS 25070 // The definition of referring columns (such as number of columns or data types) in referential relationships must match the referred columns. [,,, Constraint name (if known),,]
- // DEAD SSCE_M_CONFLICTINGREFERENCE 25071 // A reference to this column already exists. [,,,Index name,,]
- #define SSCE_M_PRIMARYKEYNULLCONFLICT 25072 // Primary keys cannot be created on columns that support null values. [,,,Column name,,]
- #define SSCE_M_TABLEMUSTHAVECOLUMNS 25073 // Tables must contain at least one column. [,,,,,]
- #define SSCE_M_DEFAULTEXPRTOOLONG 25074 // The expression string for the default value cannot be longer than 4000 characters. [Length of expression string,,,,,]
- #define SSCE_M_DISALLOWIDENTITYNULL 25075 // Nullable columns cannot be identity columns. [,,,,,]
- #define SSCE_M_CONSTRAINTINUSE 25077 // The constraint cannot be removed because it is referenced by another constraint. [,,,Constraint name,,]
- #define SSCE_M_INDEXINUSE 25078 // The index cannot be removed because it is being used to enforce a constraint. [,,,Index name,,]
- #define SSCE_M_ENCRYPTEDDBMUSTHAVEPWD 25079 // A password must be specified when a database is created by using encryption. [,,,,,]
- // Changed for v3.5 SSCE_M_NOOSENCRYPTIONSUPPORT 25080 // The operating system does not support encryption. [,,,,,]
- #define SSCE_M_NOOSENCRYPTIONSUPPORT 25080 // The operating system does not support the Encryption Mode provided. [,,,,,]
- #define SSCE_M_VIOLATEDAUTOINCRANGE 25081 // The new value generated for the inserted row is outside the range for an INTEGER or BIGINT data type. [Generated value,,,,,]
- // DEAD SSCE_M_UNIQUENULLCONFLICT 25082 // Unique indexes and constraints cannot be created on columns that allow null values. [,,,,,]
- #define SSCE_M_CYCLEDETECTED 25083 // The referential relationship will result in a cyclical reference that is not allowed. [,,,Constraint name,,]
- #define SSCE_M_RELCOLUMNSTYPEMISMATCH 25084 // The data types of the columns in the relationship do not match. [,,,,,]
- #define SSCE_M_PKDUPLICATE 25085 // The table already has a primary key. [,,,,,]
- #define SSCE_M_INVALIDINCREMENT 25086 // The identity column contains an increment value that is not valid. [,,,Column name,,]
-
- //***** Don't add any more errors here, read the comments below and add appropriately
- //
- // Errors after this comment were added for v1.1 (PEBBLE)
- //
- #define SSCE_M_GENERATEGUIDFAILED 25087 // Internal error: A new GUID cannot be generated for the new row. [,,,,,]
-
- //
- // Errors defined for v2.0
- //
- // DEAD SSCE_M_KEYTOOLARGE 25088 // The key size exceeded the maximum allowed. [,,,,,]
-
- //
- // Errors introduced for SQL-Lite
- //
- #define SSCE_M_SYNCINPROGRESS 25089 // Another synchronization is in progress. Try synchronizing later. [,,,,,]
- #define SSCE_M_LOCKTIMEOUT 25090 // SQL Server Compact timed out waiting for a lock. The default lock time is 2000ms for devices and 5000ms for desktops. The default lock timeout can be increased in the connection string using the ssce: default lock timeout property. [Session id,Thread id,Process id,Table name,Conflict type,Resource]
- #define SSCE_M_OUTOFLOCKS 25091 // The lock manager has run out of space for additional locks. This can be caused by large transactions, by large sort operations, or by operations where SQL Server Compact creates temporary tables. You cannot increase the lock space. [,,,,,]
- #define SSCE_M_INVALIDTEMPPATH 25092 // The path specified for the temp database is not valid. [,,,,,]
- #define SSCE_M_NOQUERYPROCESSOR 25100 // Unable to create Command object because Query Processor module is not present on the device or not located in the same directory as the Storage Engine module. [,,,,,]
- #define SSCE_M_OUTOFBUFFERPOOLSPACE 25101 // SQL Server Compact has exceeded the buffer size. The default size can be increased on initialization by modifying the ssce: max buffer size property. [The default size,,,,,]
- #define SSCE_M_INITPROPCONFLICT 25102 // Another user has opened the database with different instance-level initialization properties. [,,,,,]
- #define SSCE_M_CANTLOADSQLSEDLL 25103 // Storage Engine module could not be loaded. Reinstall SQL Server Compact Edition. [,,,,,]
- #define SSCE_M_DATABASETOOBIG 25104 // The database file is larger than the configured maximum database size. This setting takes effect on the first concurrent database connection only. [Required Max Database Size (in MB; 0 if unknown),,,,,]
- #define SSCE_M_INVALIDSECURITYDESCRIPTOR 25105 // Internal error: Invalid Security Descriptor was specified. [,,,,,]
- #define SSCE_M_TOOMANYCONSTRAINTS 25106 // The limit of 249 contstraints per table has been exceeded. [,,,TableName,,]
- #define SSCE_M_BADKEYTYPE 25107 // Internal error: The specified constraint does not define the requested type of key. [,,,,,]
- #define SSCE_M_OUTSTANDINGPREPARE 25108 // Another cursor on the same table has a pending operation on the same row. [,,,,,]
-
- // Errors after this comment were added for v3.0 (Laguna)
- //
- #define SSCE_M_PASSWORDTOOLONG 25109 // The database password cannot exceed 40 characters. [,,,,,]
- #define SSCE_M_SYSTEMNAME 25110 // The table and column name is part of a reserved name. Table and column names cannot begin with '__Sys'. [,,,Name,,]
- #define SSCE_M_COMPRESSEDNOSTREAM 25111 // Internal error: Compressed columns do not support the stream interface(s). [,,,Column Name,,]
- #define SSCE_M_COMPRESSEDNONLV 25112 // Invalid use of compressed flag for non-long value column. [,,,Column Name, Table Name,]
- #define SSCE_M_CHANGECOMPRESSED 25113 // Cannot change compression status for a database. [,,,Db name,,]
- #define SSCE_M_FILEALREADYEXISTS 25114 // File already exists. Try using a different database name. [,,,File name,,]
- #define SSCE_M_WRONGPAGE 25115 // Wrong page (potential database corruption). Try running the repair utility. [,,,,,]
- #define SSCE_M_SYSTABACCESSDENIED 25116 // Internal error: Access to the system table is denied. [,,,,,]
- #define SSCE_M_ALREADYOPENED 25117 // Database already opened by a different user. [,,,Db name,,]
- #define SSCE_M_CANTOPENSHAREDMEMORY 25118 // Internal error: Cannot open the shared memory region. [,,,,,]
- #define SSCE_M_CANTCHANGEKEYCOLUMN 25119 // Cannot alter a column that is part of a key or an index. [,,,Index Name,Column,]
- #define SSCE_M_RODATABASEREQUIRESTEMPPATH 25120 // Opening a database as read-only requires a temp path to be specified. [,,,Db name,,]
- // DEAD SSCE_M_OUTSTANDINGLOCKS 25121 // A generation cannot be bumped due to open transactions with changes pending. [,,,,,]
- #define SSCE_M_FATALLOCKFAILURE 25122 // Internal error: Fatal failure of the lock susbsytem for this database. [,,,Db name,,]
- #define SSCE_M_LIBRARYLOADFAILURE 25123 // A SQL Server Compact DLL could not be loaded. Reinstall SQL Server Compact Edition. [,,,DLL Name,,]
- #define SSCE_M_INCONSISTENTLVVERSION 25124 // The long value was changed by another transaction. [,,,,,]
- #define SSCE_M_INVALIDSTATSOPTIONS 25125 // Internal error: Invalid statistics creation options. [Options,,,,,]
- #define SSCE_M_PENDINGUPDATE 25126 // An update transaction is pending, cannot start a sync session. Try synchronizing again. [,,,,,]
- #define SSCE_M_INVALIDPROVIDERTYPE 25127 // Invalid provider type. [Db version,Requested version,,File name,,]
- #define SSCE_M_INVALIDSHAREDMEMORYFORMAT 25128 // SQL Server Compact has encountered two different versions of the product accessing the same database file. Ensure that each application accessing the same database file is using the same version of SQL Server Compact Edition. [,,,,,]
- #define SSCE_M_PREFIXTOOLARGE 25129 // The string value that has been assigned to the LIKE clause in the SELECT statement exceeds the limit for SQL Server Compact Edition. The limit for single byte character set is 256 characters but can be smaller for double byte character set. [,,,,,]
- #define SSCE_M_UNINSTALLEDCOLLATINGSEQ 25130 // The specified locale is not installed on this machine. Make sure you install the appropriate language pack. [LCID,,,,,]
- #define SSCE_M_CANTLOADSQLQPDLL 25131 // Query Processor module could not be loaded. Reinstall SQL Server Compact Edition. [,,,,,]
- // DEAD SSCE_M_RESTRICTEDPLATFORM 25132 // This version of SQL Server Compact is not licensed for production use. [,,,,,]
- #define SSCE_M_NOTSUPPORTED 25133 // Inernal error: SQL Server Compact made an unsupported request to the host operating system. [,,,,,]
-
- // Errors after this comment were added for v3.5
- //
- #define SSCE_M_READREQUIREDRECORDS 25134 // The required number of records have already been read. [,,,,,]
- #define SSCE_M_IDENTITYINSERT_ON 25135 // IDENTITY_INSERT is already ON for another table. Cannot perform SET operation for this table. [,,, Other Table Name, This Table Name,]
- #define SSCE_M_NO_IDENTITY 25136 // Table does not have a IDENTITY column. [,,,,,]
- #define SSCE_M_INVALIDENCRYPTIONMODE 25137 // The database encryption mode is invalid. [Input Encryption Mode,,,,,]
- #define SSCE_M_DBUPGRADENEEDED 25138 // The database file has been created by an earlier version of SQL Server Compact. Please upgrade using SqlCeEngine.Upgrade() method. [,,,,,]
- #define SSCE_M_INVALID3XDATABASE 25139 // The file that is being referenced is not a valid SQL Server 2005 Compact Edition (version 3.1) or SQL Server 2005 Mobile Edition (version 3.0) database file to perform upgrade. [,,,Db name,,]
- #define SSCE_M_INVALIDSRCPASSWORD 25140 // The password specified for the source database is incorrect. [,,,Data Source,,]
- #define SSCE_M_ILLEGALSRCCOLLATINGSEQ 25141 // The source database locale is not supported on this operating system. [LCID,,,,,]
-
- // Warnings
- //
- #define SSCE_WRN_COLUMNNULL 25200 // The column cannot have NULL values. [,,,,,]
- #define SSCE_WRN_BUFFERTRUNCATED 25201 // The data was truncated. Try passing down a larger buffer. [,,,,,]
- // DEAD SSCE_WRN_SEEKNOTEQUAL 25202 // Seek was not able to find an exact match. [,,,,,]
- // DEAD SSCE_WRN_OPTIONSIGNORED 25203 // Some specified options were ignored for this operation. [,,,,,]
- // DEAD SSCE_WRN_COLUMNDATATRUNCATED 25204 // The data was truncated. [,,,,,]
- // DEAD SSCE_WRN_DATABASEENCRYPTED 25205 // The database is encrypted. A password is necessary to access the database. [,,,,,]
- #define SSCE_WRN_RI_RECORDSUPDATED 25206 // Additional records were updated as a result of referential integrity actions. [,,,,,]
- #define SSCE_WRN_RI_RECORDSDELETED 25207 // Additional records were deleted as a result of referential integrity actions. [,,,,,]
- // DEAD SSCE_WRN_ROWLOCKCONNECTFAILED 25208 // The request for a row-level lock was denied. [,,,,,]
- // DEAD SSCE_WRN_PAGELOCKCONNECTFAILED 25209 // The request for a page-level lock was denied. [,,,,,]
- #define SSCE_WRN_DEFAULTALREADYPRESENT 25210 // This column already had a default. [,,,,,]
- //
- //Warnings after this comment were added for v1.1 (PEBBLE)
- //
-
-
- // --------------------------------------------------------------------------------------
- //
- // OLEDB Layer 27000 - 27499
- //
- #define SSCE_M_TOOMANYSESSIONSOUTSTANDING 27000 // Too many sessions are open. [,,,,,]
-
- // Rich error messages for Set Property
- //
- #define SSCE_M_PRIMARYKEYPROPERTYNOTSETTABLE 27001 // The new column cannot be set as the PRIMARY KEY constraint. Create a table-level constraint instead. [,,,,,]
- #define SSCE_M_UNIQUEKEYPROPERTYNOTSETTABLE 27002 // The new column cannot be set as a UNIQUE constraint. Create a table-level constraint instead. [,,,,,]
- #define SSCE_M_COLUMNNULLABILITYNOTALTERABLE 27003 // Column nullability cannot be changed after the column is created. [,,,,,]
- #define SSCE_M_CANTMODIFYIDENTITYATTRIBUTE 27004 // The column cannot become an identity column after it is created. [,,,,,]
- #define SSCE_M_INVALIDCOLUMNPROPERTY 27005 // The column property is not valid. [,,,,,]
- // DEAD SSCE_M_INVALIDSSCEDBINITPROPERTY 27006 // An attempt to set the SQLServer CE DBINIT property is not valid. [,,,,,]
- //
- // Errors after this comment were added for v1.1 (PEBBLE)
- //
-
-
- // --------------------------------------------------------------------------------------
- //
- // ssceCommon 27500 - 27749
- //
- #define SSCE_M_DECIMALOVERFLOW 27500 // An overflow occurred while setting decimal data. [,,,,,]
- #define SSCE_M_DECIMALTRUNCATED 27501 // Decimal data was truncated. [,,,,,]
- #define SSCE_M_CMN_INVALIDPARAMETER 27502 // The parameter is not valid. [,,,,,]
- //***** Don't add any more errors here, read the comments below and add appropriately
- //
- // Errors after this comment were added for v1.1 (PEBBLE)
- //
-
- // Warning
- // DEAD SSCE_WRN_DECIMALTRUNCATED 27700 // Decimal data was truncated. [,,,,,]
- //
- // Warnings after this comment were added for v1.1 (PEBBLE)
- //
-
- // Errors after this comment were added for v3.0 (LAGUNA)
- //
- #define SSCE_M_INVALIDPREPMODE 27506 // Internal Error: Unexpected value for SEPREPAREMODE. [,,,,,]
- // --------------------------------------------------------------------------------------
- //
- // Managed Code 27750 - 27999
- //
- // This range was added for Daytona
- //
- // DEAD SSCE_M_SSCEMWFAILURE 27750 // Cannot load sscemw20.dll or ssceca20.dll is missing or not registered. [,,,,,]
- //***** Don't add any more errors here, read the comments below and add appropriately
-
- // Errors after this comment were added for v3.0 (LAGUNA)
- //
- #define SSCE_M_WRONGPROCEDUREPARAMFORM 27781 // After the form '@name = value' has been used, all subsequent parameters must be passed in the form '@name = value'. [Procedure parameter ordinal,,,,,]
- #define SSCE_M_CO_E_NOTINITIALIZED 27782 // The application thread has not been initialized for COM interop because COM threading model has not been set. Please check documentation for System.STAThreadAttribute or System.MTAThreadAttribute classes.[,,,,,]
- #define SSCE_M_INVALIDDBRANGEFLAGS 27783 // The following combination of DbRangeOptions in the call to SqlCeCommand:SetRange is invalid. [,,,DbRangeOptions,,]
- #define SSCE_M_DBRANGEUNEXPECTEDNULLVALUE 27784 // With the specified DbRangeOptions, the argument in the call to SqlCeCommand:SetRange cannot be null (Nothing in Visual Basic.NET). [,,,DbRangeOptions,Argument Name,]
- #define SSCE_M_DBRANGEEXPECTEDNULLVALUE 27785 // With the specified DbRangeOptions, the argument in the call to SqlCeCommand:SetRange MUST be set to null (Nothing in VB.NET). [,,,DbRangeOptions,Argument Name,]
- #define SSCE_M_DBSEEKNOKEYVALUES 27786 // No key values were specified in the call to SqlCeDataReader:Seek. [,,,Argument Name,,]
- #define SSCE_M_INVALIDDBSEEKOPTION 27787 // Invalid DbSeekOptions specified in the call to SqlCeDataReader:Seek. [,,,,,]
-
- // Errors after this comment were added for v4.0 (VENICE)
- //
- #define SSCE_M_DUPLICATEASSEMBLY 27751 // The specified assembly already exists in this database. [,,,name,,]
- #define SSCE_M_INVALIDASSEMBLYVERSION 27752 // The assembly with this name is already registered. The version number does not match the expected value. [,,,name, ver, ver]
- #define SSCE_M_INVALIDASSEMBLYNAME 27753 // SQL assembly name and .NET assembly name do not match. [,,,sqlname, clrname,]
- #define SSCE_M_CIRCULARASSEMBLYREFERENCE 27754 // Circular assembly references were detected. Operation has been canceled. [,,,name,,]
- #define SSCE_M_REFERENCELISTNOTEMPTY 27755 // The ReferenceAssemblyList of the assembly being dropped is not empty. [,,,name,,]
- #define SSCE_M_ROUTINELISTNOTEMPTY 27756 // The ReferenceRoutineList of the assembly being dropped is not empty. [,,,name,type,method]
- #define SSCE_M_ASSEMBLYNOTFOUND 27757 // .NET assembly with the specified name does not exist. [,,,name,,]
- #define SSCE_M_MISSINGASSEMBLY 27758 // One or more assemblies is missing in the assembly_bits specifier. [,,,name,,]
- #define SSCE_M_DUPLICATEASSEMBLYSPECIFIED 27759 // Assembly specified more than once in the assembly_bits specifier. [,,,name,,]
- #define SSCE_M_OPENSCOPEFAILURE 27760 // Unable to access/read the specified assembly. [,,,name,,]
- #define SSCE_M_OPENSCOPEONMEMFAILURE 27761 // The specified binary literal is not a valid assembly file. [,,,index,,]
- #define SSCE_M_DUPLICATETRIGGER 27762 // Trigger with the specified name already exists in this database. [,,,name,,]
- #define SSCE_M_INVALIDTABLENAME 27763 // The specified table does not exist. [,,,name,,]
- #define SSCE_M_INVALIDTRIGGERNAME 27764 // The specified trigger does not exist in this database. [,,,name,,]
- #define SSCE_M_INVALIDCALLINGCONVENTION 27765 // The calling convention of the specified method does not match the expected value. The method should be defined as public static (Shared in Visual Basic). [,,,assembly, class, method]
- #define SSCE_M_INVALIDNUMBEROFARGS 27766 // The actual number of arguments in the specified method does not match the expected value. [expected, actual,,assembly, class, method]
- #define SSCE_M_INVALIDARGUMENTTYPES 27767 // The argument types in the specified method do not match the expected values. [,,,assembly, class, method]
- #define SSCE_M_TYPENOTFOUND 27768 // The specified type was not found in this .NET assembly. [,,,assembly, class,]
- #define SSCE_M_METHODNOTFOUND 27769 // The method with the specified name was not found in the class definition. [,,,assembly, class, method]
- #define SSCE_M_INVALIDRETURNTYPE 27770 // The return type of the specified method does not match the expected value. [,,,assembly, class, method]
- #define SSCE_M_INVOCATIONFAILURE 27771 // A critical error occured while invoking .NET trigger. [,,,assembly,class,name]
- #define SSCE_M_MANAGEDEXCEPTION 27772 // A .NET exception has been thrown during trigger execution. [,,,message, source, stack trace]
- #define SSCE_M_INSTEADOFTRIGGERFIRED 27773 // The action caused an INSTEAD OF trigger to fire. [,,,,,]
- #define SSCE_M_FOREIGNKEYVIOLATION 27774 // INSTEAD OF DELETE/UPDATE trigger cannot be defined on a table that has a foreign key with a CASCADE on DELETE/UPDATE action defined. [,,,constraint,,]
- #define SSCE_M_TRIGGERNESTLEVELEXCEEDED 27775 // Recursive trigger invocation exceeded the maximum allowed nesting level. [,,,assembly, class, method, nestLevel]
- #define SSCE_M_TRANSACTIONABORTED 27776 // The current transaction has been aborted during trigger invocation. No operation has been performed. [,,,,,]
- #define SSCE_M_CANTLOADSQLCOMPACTDLL 27777 // Could not load database compaction library. Operation has been aborted. [,,,,,]
- #define SSCE_M_LOADASSEMBLYFAILED 27778 // Unable to load .NET assembly with the specified name. This is because the assembly does not exist or because your trigger/stored procedure has been compiled against an assembly with different strong name. [,,,name,,]
- #define SSCE_M_DUPLICATEPROCEDURE 27779 // Procedure with the specified name already exists in this database. [,,,name,,]
- #define SSCE_M_CANTDROPPROCEDURE 27780 // Cannot drop the procedure because it does not exist, or you do not have permission. [,,,name,,]
-
- #define SSCE_M_DISTRIBUTEDTRANSACTIONNOTSUP 27992 // SQL Server Compact does not support distributed transactions. The command is currently enlisted in a transaction. You can not change the database in use until that transaction is committed or aborted. [,,,,,]
- #define SSCE_M_CANTDROPDATABASE 27993 // Cannot drop the database because it does not exist, or you do not have permission. [,,,,,]
- #define SSCE_M_NESTEDTRANSACTIONSSNOTSUPPORTED 27994 // Nested transactions are not supported. [,,,,,]
- #define SSCE_M_NOTENLISTEDINTRANSACTION 27995 // The command is not enlisted in a transaction. [,,,,,]
- #define SSCE_M_TDSSERVERTHREADDEADLOCK 27996 // SQL Server Compact is not responding, potentially waiting for a lock timeout. The current connection will be closed. [,,,,,]
- #define SSCE_M_SCRIPTMAXSIZEEXCEEDED 27997 // The size of the executed SQL Server Compact script has exceeded its maximum value. Use [GO] statements to reduce the size of submitted SQL batches. [maximum size,,,,,]
- #define SSCE_M_OUTOFMEMORY 27998 // There is not enough memory on the device running SQL Server Compact to complete this operation. [,,,,,]
- #define SSCE_M_INVALIDPRODUCTVER 27999 // SQL Server Compact 3.5 is either not installed or the installation has been corrupted. [,,,,,]
-
- //***** Don't add any more errors here, read the comments below and add appropriately
- //
-
- // --------------------------------------------------------------------------------------
- //
- // Replication Transport 28000 - 28499
- //
- #define SSCE_M_OPENTWICE 28000 // Internal error: The table was unexpectedly opened. [,,,,,]
- #define SSCE_M_INTERNETREADERROR 28001 // Internal error: A read operation from the device or the IIS server returned an incorrect number of bytes while trying to process a synchronization request. [,,,,,]
- #define SSCE_M_INTERNETWRITEERROR 28002 // A write operation to the Internet wrote an incorrect number of bytes. [,,,,,]
- #define SSCE_M_INVALIDRSCBID 28003 // Internal error: Either the computer running IIS is out of memory or an incorrect session ID was sent in a request. [Session id,,,,,]
- #define SSCE_M_TOOMANYPENDINGREQUESTS 28004 // A SQL Server Compact Server Agent queue is full and can take no further requests. Try again later. [,,,,,]
- // DEAD SSCE_M_COULDNTSTARTRECTHREAD 28005 // A thread to host the SQL Server Reconciler cannot be started. Check system resources. [,,,,,]
- // DEAD SSCE_M_CANTLOADRECRESOURCEDLL 28006 // The SQL Server Reconciler resource DLL cannot be loaded. [,,,,,]
- #define SSCE_M_INVALIDRECONCILERPARAM 28007 // Internal error: Invalid reconciler parameter. [,,,,,]
- #define SSCE_M_INVALIDTRNSPTCOMMAND 28008 // Internal error: The transport failed due to incorrect message format or content. [Command number,,,,,]
- #define SSCE_M_CANTCOCREATERECONCILER 28009 // An instance of the SQL Server Reconciler cannot be created. Try reinstalling the replication components.[,,,,,]
- #define SSCE_M_CANTCOCREATERECONERROR 28010 // An instance of the SQL Server Reconciler error object cannot be created. Try reinstalling the replication components.[,,,,,]
- #define SSCE_M_HTTPSTATUSDENIED 28011 // Authentication failed on the computer running IIS. [,,,,,]
- #define SSCE_M_HTTPSTATUSPROXYAUTHREQ 28012 // Authentication failed on the proxy server. [,,,,,]
- #define SSCE_M_HTTPSTATUSBADREQUEST 28013 // The HTTP request failed due to incorrect format or content. Try restarting the IIS server.[,,,,,]
- #define SSCE_M_HTTPSTATUSPAYMENTREQ 28014 // This site requires payment before it can be accessed. Try restarting the IIS server.[,,,,,]
- #define SSCE_M_HTTPSTATUSFORBIDDEN 28015 // A Secure Sockets Layer (SSL) connection is required to access this site. [,,,,,]
- #define SSCE_M_HTTPSTATUSNOTFOUND 28016 // IIS error 404 HTTP_STATUS_NOT_FOUND: The server has not found anything matching the requested URI (Uniform Resource Identifier). [,,,,,]
- #define SSCE_M_HTTPSTATUSBADMETHOD 28017 // IIS Error 405 HTTP_STATUS_BAD_METHOD: The HTTP verb used is not allowed. [,,,,,]
- #define SSCE_M_HTTPSTATUSNONEACCEPT 28018 // IIS Error 406 HTTP_STATUS_NONE_ACCEPTABLE: No responses acceptable to the client were found. [,,,,,]
- // DEAD SSCE_M_HTTPSTATUSREQTIMEOUT 28019 // The request timed out on the computer running IIS. [,,,,,]
- #define SSCE_M_HTTPSTATUSCONFLICT 28020 // The computer running IIS returned a Conflict status. Try restarting the IIS server.[,,,,,]
- #define SSCE_M_HTTPSTATUSGONE 28021 // The computer running IIS returned a Gone status. Try restarting the IIS server.[,,,,,]
- #define SSCE_M_HTTPSTATUSSERVERERROR 28022 // An error has occurred on the computer running IIS. Try restarting the IIS server.[,,,,,]
- #define SSCE_M_HTTPSTATUSNOTSUPPORTED 28023 // The computer running IIS returned a Not Supported status. Try restarting the IIS server.[,,,,,]
- #define SSCE_M_HTTPSTATUSBADGATEWAY 28024 // IIS Error 502 HTTP_STATUS_BAD_GATEWAY: The server, while acting as a gateway or proxy, received a response that was not valid from the upstream server. [,,,,,]
- #define SSCE_M_HTTPSTATUSSVCUNAVAIL 28025 // The IIS service is not available. [,,,,,]
- // DEAD SSCE_M_HTTPSTATUSGATTIMEOUT 28026 // The gateway has timed out. [,,,,,]
- // DEAD SSCE_M_HTTPSNOTSUPPORTED 28027 // HTTPS is not supported on Windows CE 1.1-based devices. [,,,,,]
- #define SSCE_M_REPLPROHIBITED 28028 // Merge replication is restricted from being processed with the SQL Server Compact Server Agent on the computer running IIS. Check the USAGE key in HKLM\\Software\\Microsoft\\Microsoft SQL Server Compact Edition\\v3.5\\Transport\\USAGE and change to a value of 0 or 1. [,,,,,]
- #define SSCE_M_RDAPROHIBITED 28029 // Remote data access (RDA) is restricted from being processed with the SQL Server Compact Server Agent on the computer running IIS. Check the USAGE key in HKLM\\Software\\Microsoft\\Microsoft SQL Server Compact Edition\\v3.5\\Transport\\USAGE and change to a value of 0 or 2. [,,,,,]
- #define SSCE_M_COMPRESSIONFAILED 28030 // Internal error: Compression failed. Try again.[,,,,,]
- #define SSCE_M_DECOMPRESSIONFAILED 28031 // Internal error: Decompression failed. Try again.[,,,,,]
- #define SSCE_M_FAILUREINITIALIZINGINTERNET 28032 // The call to InternetOpen failed. Check the major error for more information. [,,,,,]
- #define SSCE_M_INVALIDURLSYNTAX 28033 // The URL syntax is not valid. [,,,URL,,]
- #define SSCE_M_INTERNETCONNECTFAILURE 28034 // An Internet connection cannot be established. [,,,,,]
- #define SSCE_M_FAILUREQUERYINGHEADER 28035 // Internal error: HTTP header information is either corrupted or missing in the transport message. It could be a network transmission error or an IIS problem. [,,,,,]
- #define SSCE_M_CLOSEINTERNETHANDLEFAILED 28036 // An internal or network problem was encountered while trying to close an Internet handle. [,,,,,]
- #define SSCE_M_HTTPSENDREQUESTFAILED 28037 // A request to send data to the computer running IIS has failed. For more information, see HRESULT. [,,,,,]
- #define SSCE_M_MAXIMUMRSCBSEXCEEDED 28038 // The connection was refused by the computer running IIS because the maximum number of sessions has been exceeded. Try connecting later. [,,,,,]
- // DEAD SSCE_M_REQUESTSUPERSEDED 28039 // The request was superseded by a subsequent request. [,,,,,]
- #define SSCE_M_RESENTCOMMANDIGNORED 28040 // Internal error: During a retry operation to synchronize, the command has been completed. The resent command was ignored. [,,,,,]
- #define SSCE_M_RESENDREQUEST 28041 // Internal error: Unexpected resend request. [,,,,,]
- //***** Don't add any more errors here, read the comments below and add appropriately
- //
- // Errors after this comment were added for v1.1 (PEBBLE)
- //
-
-
- // --------------------------------------------------------------------------------------
- //
- // Client Agent 28500 - 28999
- //
- #define SSCE_M_CANTCOCREATESSCEERRORS 28500 // A SQL Server Compact error collection object cannot be created on the IIS server. The SQL Server reconciler is not loading. Verify that the merge replication components are running on SQL Server. [,,,,,]
- // DEAD SSCE_M_SUBSCRIBERDATABASEPATHMISSING 28501 // The SubscriberConnectionString property is not specified. [,,,,,]
- // DEAD SSCE_M_INTERNETURLPROPERTYMISSING 28502 // The InternetURL property is not specified. [,,,,,]
- // DEAD SSCE_M_PUBLISHERPROPERTYMISSING 28503 // The Publisher property is not specified. [,,,,,]
- // DEAD SSCE_M_PUBLISHERDATABASEPROPERTYMISSING 28504 // The PublisherDatabase property is not specified. [,,,,,]
- // DEAD SSCE_M_PUBLICATIONPROPERTYMISSING 28505 // The Publication property is not specified. [,,,,,]
- // DEAD SSCE_M_SUBSCRIBERPROPERTYMISSING 28506 // The Subscriber property is not specified. [,,,,,]
- // DEAD SSCE_M_MISSINGDISTRIBUTORPROPERTIES 28507 // Some Distributor properties are not specified. [,,,,,]
- // DEAD SSCE_M_MISSINGDISTRIBUTORADDRESS 28508 // The DistributorAddress property is not specified. [,,,,,]
- // DEAD SSCE_M_MISSINGPUBLISHERADDRESS 28509 // The PublisherAddress property is not specified. [,,,,,]
- // DEAD SSCE_M_INVALIDPUBLISHERSECURITYMODE 28510 // The value specified for the PublisherSecurityMode property is not valid. [Publisher security mode,,,,,]
- // DEAD SSCE_M_INVALIDDISTRIBUTORSECURITYMODE 28511 // The value specified for the DistributorSecurityMode property is not valid. [Distributor security mode,,,,,]
- // DEAD SSCE_M_INVALIDQUERYTIMEOUTVALUE 28512 // The value specified for the QueryTimeout property is not valid. [Query timeout value,,,,,]
- // DEAD SSCE_M_INVALIDLOGINTIMEOUTVALUE 28513 // The value specified for the LoginTimeout property is not valid. [Login timeout value,,,,,]
- // DEAD SSCE_M_INVALIDDISTRIBUTORNETWORK 28514 // The value specified for the DistributorNetwork property is not valid. [Distributor network,,,,,]
- // DEAD SSCE_M_INVALIDEXCHANGETYPE 28515 // The value specified for the ExchangeType property is not valid. [Exchange type,,,,,]
- // DEAD SSCE_M_INVALIDVALIDATIONTYPE 28516 // The value specified for the ValidateType property is not valid. [Validation type,,,,,]
- // DEAD SSCE_M_INITIALIZEFAILED 28517 // The Initialize method failed. [,,,,,]
- // DEAD SSCE_M_ADDSUBSCRIPTIONFAILED 28518 // The Add Subscription method failed. [,,,,,]
- #define SSCE_M_UNSUPPORTEDDBDROPOPTION 28519 // The value specified for DBDROPOPTION is not valid. Valid values are 0 and 1. [,,,,,]
- #define SSCE_M_DROPSUBSCRIPTIONFAILED 28520 // The Drop Subscription method failed. [,,,,,]
- #define SSCE_M_DBALREADYREPLICABLE 28521 // The SQL Server Compact subscription already exists. Publisher, PublisherDatabase, and Publication for this subscription should be different from any existing subscription. [,,,,,]
- // DEAD SSCE_M_RUNFAILED 28522 // The Run method failed. [,,,,,]
- #define SSCE_M_INITIALIZATIONFAILED 28523 // Internal error: Initializing an internal object failed. [,,,,,]
- // DEAD SSCE_M_TERMINATEFAILED 28524 // The Terminate method failed. [,,,,,]
- // DEAD SSCE_M_REINITIALIZESUBSCRIPTIONFAILED 28525 // The Reinitialize Subscription method failed. [,,,,,]
- #define SSCE_M_UNEXPECTEDROCENCOUNTERED 28526 // The message contains an unexpected replication operation code. The version of SQL Server Compact Client Agent and SQL Server Compact Server Agent should match. [replication operation code,,,,,]
- #define SSCE_M_COLUMNORDINALNOTFOUND 28527 // Internal error: The column ordinal cannot be found. [,,,Table name (if known),,]
- #define SSCE_M_NICKNAMEGENERATIONFAILED 28528 // Internal error: A nickname was not generated. [,,,,,]
- #define SSCE_M_DBNOTREPLICABLE 28529 // The SQL Server Compact database is not enabled for replication. Try synchronizing again. [,,,,,]
- #define SSCE_M_FAILUREREADINGREGISTRY 28530 // Internal error: SQL Server Compact was unable to read the generated machine ID from the registry. If a network device is installed on the device, a generated machine ID will not be necessary. [,,,,,]
- #define SSCE_M_FAILUREWRITINGREGISTRY 28531 // Internal error: SQL Server Compact was unable to write the generated machine ID from the registry. If a network device is installed on the device, a generated machine ID will not be necessary. [,,,,,]
- #define SSCE_M_TRANSPORTREADRETURNEDNODATA 28532 // A read operation from the transport returned no data. The version of SQL Server Compact Client Agent and SQL Server Compact Server Agent should match.[,,,,,]
- // DEAD SSCE_M_CANTCOCREATESQLSERVERCE 28533 // Another instance of SQL Server Compact cannot be created. [,,,,,]
- // DEAD SSCE_M_RDAPULLFAILED 28534 // The Pull method failed. [,,,,,]
- // DEAD SSCE_M_RDAPUSHFAILED 28535 // The Push method failed. [,,,,,]
- // DEAD SSCE_M_RDASUBMITSQLFAILED 28536 // The SubmitSQL method failed. [,,,,,]
- #define SSCE_M_IDENTITYRANGE 28537 // Internal error: The identity range was not established. [,,,,,]
- // DEAD SSCE_M_INVALIDARTICLE 28538 // An article in the message is not valid. [Article nickname,,,,,]
- #define SSCE_M_OBJECTALREADYINITIALIZED 28539 // Internal error: The database is already initialized. [,,,,,]
- #define SSCE_M_OBJECTNOTINITIALIZED 28540…