SQL Server Errors

The PATINDEX function operates on char, nchar, varchar, nvarchar, text, and ntext data types only.

Error Message:Msg 288, Level 16, State 1, Line 3The PATINDEX function operates on char, nchar, varchar, nvarchar, text, and ntext data types only. Severity level:16. Description:This error message appears when you try to non-character values in the string function PATINDEX. Consequences:The T-SQL statement can be parsed, but causes the error at runtime. Resolution:Error of the […]

Table and column names must be supplied for the READTEXT or WRITETEXT utility.

Error Message:Msg 182, Level 15, State 1, Line 5Table and column names must be supplied for the READTEXT or WRITETEXT utility. Severity level:15. Description:This error message appears when for a READTEXT or WRITEXT command either table- or column name is not supplied. Consequences:The SQL statement cannot be parsed and further execution is stopped. Resolution:Error of […]

The xml data type cannot be compared or sorted, except when using the IS NULL operator.

Error Message:Msg 305, Level 16, State 1, Line 2The xml data type cannot be compared or sorted, except when using the IS NULL operator. Severity level:16. Description:This error message appears when you try to group by a column of the data type XML. Consequences:The T-SQL statement can be parsed, but causes the error at runtime. […]

The valid range for MAX_QUEUE_READERS is 0 to 32767.

Error Message:Msg 187, Level 15, State 1, Line 6The valid range for MAX_QUEUE_READERS is 0 to 32767. Severity level:15. Description:This error message appears when you specify an invalid number for the MAX_QUEUE_READER option during a CREATE/ALTER QUEUE statement. Consequences:The SQL statement cannot be parsed and further execution is stopped. Resolution:Error of the Severity level 15 […]

The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.

Error Message:Msg 306, Level 16, State 2, Line 2The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. Severity level:16. Description:This error message appears when you try to group by a column of the data type TEXT, NTEXT, or IMAGE. Consequences:The T-SQL statement can be […]

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.

There are several reasons for this error. 1. Enable Remote Connection If you are using SQL Server 2005 Express or SQL Server Developer editions, you have to enable Remote connections. By default, SQL Server 2005 express, developer and evaluation editions allow local client connections only.             You must enable remote connections for each instance of […]

The MSSQLSERVER service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service

SQL Server agent does not start when the OS starts. When I try to start MSSQLSERVER in Services manually (even though it’s set for Automatic) I get “The MSSQLSERVER service on Local Computer started and then stopped.  Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts […]

Each GROUP BY expression must contain at least one column that is not an outer reference.

Error Message:Msg 164, Level 15, State 1, Line 2Each GROUP BY expression must contain at least one column that is not an outer reference. Severity level:15. Description:This error message appears when you try to use only expressions in a GROUP BY clause that are interpreted as outer references. Consequences:The T-SQL statement can be parsed, but […]

Fillfactor %d is not a valid percentage; fillfactor must be between 1 and 100.

Error Message:Msg 129, Level 15, State 1, Line 2Fillfactor %d is not a valid percentage; fillfactor must be between 1 and 100. Severity level:15. Description:This error message appears when you try to specify an invalid fillfactor in a CREATE/ALTER INDEX statement. Consequences:The T-SQL statement can be parsed, but causes the error at runtime. Resolution:Error of […]

The IDENTITY function can only be used when the SELECT statement has an INTO clause.

Error Message:Msg 177, Level 15, State 1, Line 1The IDENTITY function can only be used when the SELECT statement has an INTO clause. Severity level:15. Description:This error message appears when you try to use the IDENTITY function without the scope of a SELECT INTO statement Consequences:The SQL statement cannot be parsed and further execution is […]
Software Reviews | Book Reviews | FAQs | Tips | Articles | Performance Tuning | Audit | BI | Clustering | Developer | Reporting | DBA | ASP.NET Ado | Views tips | | Developer FAQs | Replication Tips | OS Tips | Misc Tips | Index Tuning Tips | Hints Tips | High Availability Tips | Hardware Tips | ETL Tips | Components Tips | Configuration Tips | App Dev Tips | OLAP Tips | Admin Tips | Software Reviews | Error | Clustering FAQs | Performance Tuning FAQs | DBA FAQs |