SELECT ID, Body, CHARINDEX(CHAR(13), Body) AS FirstParagraphLen FROM MyTable
or
SELECT ID,SUBSTRING(Body, 1, CHARINDEX(CHAR(13), Body)) AS 'Text'
FROM TableName
Wednesday, January 23, 2008
First paragraph of data from sql server
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment