SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Substring TEXT column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Brittney10
Posting Yak Master

USA
153 Posts

Posted - 03/11/2013 :  11:25:26  Show Profile  Reply with Quote
How can I get the rightmost 4000 characters from a TEXT data type column. I assume this can be done using SUBSTRING, but am unable to do this in my attempts.

robvolk
Most Valuable Yak

USA
15683 Posts

Posted - 03/11/2013 :  11:43:10  Show Profile  Visit robvolk's Homepage  Reply with Quote
SELECT RIGHT(CAST(textColumn AS varchar(max)), 4000) FROM myTable
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000