General information
Forum:
Microsoft SQL Server
View definitions cannot have an ORDER BY clause, nor are they needed. You should order your result set when you're selecting from the view, e.g.:
select * from myView order by col1, col2
HTH
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only