Posts
400
Comments
213
Trackbacks
0
Fun mit SQL: ORDER BY in Views

Die ORDER BY Klausel kann in Views normalerweise  nicht verwendet werden.Wenn man es versucht erhält man folgende Fehlermeldung:

"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."

Um nun doch in einer View sortieren zu können genügt es ein TOP Statement mit 100 Prozent mit  anzugeben:

100 PERCENT * FROM TableName

posted on Monday, May 24, 2010 8:23 PM Print
Comments
No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 6 and 3 and type the answer here: