Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RaisError function
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
01466452
Message ID:
01466455
Views:
31
I also don't see any point in the try catch in the calling script of the stored procedure, but the instructor wants it as well as the earliest invoice dates first. The ORDER BY clause though is causing me a problem.

Here's the error message, which I received while trying to save the ALTERING of the STORED PROCEDURE:
Msg 1033, Level 15, State 1, Procedure spDateRange, Line 35
The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.
Msg 102, Level 15, State 1, Procedure spDateRange, Line 37
Incorrect syntax near ')'.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform