troubleshooting Question

Extracting Summary from VARCHAR Data SQL SERVER 2000

Avatar of mmalik15
mmalik15 asked on
Microsoft SQL Server
3 Comments2 Solutions237 ViewsLast Modified:
Hi:
I already got help regarding this question but at the other end i got another issue:

Last Question: How to limit the varchar field size in SQL SERVER SELECT Statement!

Solution:
SELECT CAST( description  as varchar(100) ) Description
from  MyTable

Yes it worked for me but when CAST function trim the string it dont care about the complete words, as it some time cut the words (at the end of string) from middle. But i want to get complete words.

Example:
 (i want like that )
Description: This is a brief description of country....More

(i am getting like that)

Description: This is a brief description of cou

FYI: Technology: SQL SERVER 2000, C#




Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros