Percent values must be between 0 and 100.

Error Message:
Msg 1031, Level 15, State 1, Line 1
Percent values must be between 0 and 100.

Severity level:
15.

Description:
This error message appears when the specified percent value is not within the valid range of 0 through 100.

Consequences:
The SQL statement can be parsed, but cannot be executed and execution is stopped.

Resolution:
Error of the severity level 15 are generated by the user and can be fixed by the SQL Server user. In this case the percent value must be corrected to be within the valid range of 0 – 100.

Versions:
All versions of SQL Server.

Example(s):
SELECT TOP 150 PERCENT *
  FROM Northwind.dbo.Orders
 ORDER BY OrderID

Remarks:
The above example tries to return the TOP 150 PERCENT of the table Orders. 150 is outside the valid range and therefore the error is raised.




Related Articles :

  • No Related Articles Found

No comments yet... Be the first to leave a reply!

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 |