Incorrect time syntax in time string ‘%1!’ used with WAITFOR.

Error Message:
Msg 148, Level 15, State 1, Line 2
Incorrect time syntax in time string ‘%1!’ used with WAITFOR.

Severity level:
15.

Description:
This error message appears when an invalid time syntax is encountered in the WAITFOR 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 invalid time syntax must be corrected.

Versions:
All versions of SQL Server.

Example(s):
BEGIN
 WAITFOR DELAY ‘2 Stunden’;
 SELECT *
   FROM Northwind.dbo.Orders;
END;

Remarks:
WAITFOR interrupts the execution either till the specified time or for the specified duration.




Array

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