Reputation: 11
I'm trying to ORDER BY a column in SQL Server which is a TEXT type. How can I do that? I couldn't find in the internet..
ORDER BY
TEXT
Upvotes: 1
Views: 457
Reputation: 8736
try this
ORDER BY CONVERT(VARCHAR(50) ,ColumnName)
Upvotes: 0
Reputation: 3395
You can't. TEXT is deprecated. use VARCHAR(MAX)
Upvotes: 2