How do you use the LEFT function (or an equivalent) on a SQL Server NTEXT column?
Basically I’m building a GridView and I just want to return the first 100 or so characters from the Description column which is NTEXT.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
SELECT CAST(ntext_col AS nvarchar(100)) as ntext_substr FROM …
[EDIT] Originally had it returning LEFT(N,100) of CAST to nvarchar(MAX), CASTing will truncate and since LEFT is wanted, that is enough.