Home » sql server errors and solutions

sql server errors and solutions

sql server DBA 999

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 … Read the rest

sql server DBA 999

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