The valid range for MAX_QUEUE_READERS is 0 to 32767.

Error Message:
Msg 187, Level 15, State 1, Line 6
The 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 are generated by the user and can be fixed by the SQL Server user. The statement cannot be executed this way. The value for the MAX_QUEUE_READER option must be valid and within the specified range.

Versions:
This error message was introduced with SQL Server 2005.

Example(s):
USE tempdb;
GO
IF OBJECT_ID(‘MyQueue’) > 0
 DROP QUEUE MyQueue;
GO
CREATE QUEUE MyQueue
  WITH STATUS=ON,
  ACTIVATION
  (
   PROCEDURE_NAME = MyQueue_Proc,
   MAX_QUEUE_READERS = 33000) ;

Remarks:
In the above example we try to use a value of 33000 for the MAX_QUEUE_READER option. This raises the error.




Related Articles :

  • No Related Articles Found

Trackbacks/Pingbacks

  1. SQL Server Performance - May 22, 2011

    [...] [...]

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 |