Home » sql server error codes

sql server error codes

SQL Server Error : 16943, Severity: 16. Could not complete cursor operation beca

SQL Server Error : 16943 Details

SQL Server Error: 16943 Severity: 16 Event Logged or not: No Description: Could not complete cursor operation because the table schema changed after the cursor was declared. Severity 16 Description: Indicates general errors that can be corrected by the user.

The message 16943 Could not complete cursor operation because the table schema changed after the cursor was declared.

Reading sql server error log location from SQL Query

Identifying SQL Server Error Log File used by SQL Server Database Engine can be done by reading SQL Server Error Logs. DBA can execute the XP_READERRORLOG extended stored procedure to read the … Read the rest

SQL Server Error : 109, Severity: 15. There are more columns in the INSERT statement

SQL Server Error : 109 Details

SQL Server Error: 109 Severity: 15 Event Logged or not: No Description: There are more columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement. Severity 15 Description: Indicates syntax errors in the Transact-SQL command.

 

Cause for the Error

This issue happens when the number of values supplied in the VALUES clause is less than the number of columns specified in an INSERT to a table using the INSERT INTO… VALUES format, as described in the error message.

The following INSERT statement, for example, will result in an error:

INSERT Into [Alpha] … Read the rest

SQL Server Error : 107, Severity: 15. The column prefix ‘%.*ls’ does not match

SQL Server Error : 107 Details

SQL Server Error: 107 Severity: 15 Event Logged or not: No Description: The column prefix ‘%.*ls’ does not match with a table name or alias name used in the query. Severity 15 Description: Indicates syntax errors in the Transact-SQL command.

Reading sql server error log location from SQL Query

Identifying SQL Server Error Log File used by SQL Server Database Engine can be done by reading SQL Server Error Logs. DBA can execute the XP_READERRORLOG extended stored procedure to read the SQL Server Error Log and search for its location used by the instance of SQL Server.

USE master
Go
xp_readerrorlog 0, 1, N'Logging SQL Server messages in file', NULL, NULL, N'asc'
Go

The … Read the rest