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 2000 Forums
 SQL Server Development (2000)
 how to get the length of text datatype column?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gsrinivas.
Yak Posting Veteran

56 Posts

Posted - 05/08/2010 :  10:12:22  Show Profile  Reply with Quote
Dear sql team,
how to find the length of text data type column?

my column contains some sqltext(ie sql view text)
i want to find that length of text for each row.
normal length functions are not working.

please tell me.

-thanks
srinivas.

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 05/08/2010 :  10:35:26  Show Profile  Reply with Quote
use DATALENGTH function.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

gsrinivas.
Yak Posting Veteran

56 Posts

Posted - 05/11/2010 :  09:39:43  Show Profile  Reply with Quote
thanks visakh16,
and I will try.
does it work in oracle ?
in oracle, the data type is CLOB(Character Long Object)while in SQL Server is TEXT data type.

plz specify a function for oracle also

Thanks,
Srinivas.




Go to Top of Page

1dmf
Starting Member

5 Posts

Posted - 05/11/2010 :  11:01:49  Show Profile  Reply with Quote
Does this help?

http://www.google.co.uk/#hl=en&source=hp&q=oracle+DATALENGTH+function&meta=&aq=f&aqi=&aql=&oq=&gs_rfai=&fp=71f60c6bcc41f992
Go to Top of Page

gsrinivas.
Yak Posting Veteran

56 Posts

Posted - 05/14/2010 :  04:36:10  Show Profile  Reply with Quote
I am unable to find the function for length of CLOB in oracle.

can any one help plz..

-thanks
srini
Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22765 Posts

Posted - 05/14/2010 :  05:34:13  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
Post your question at www.orafaq.com

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

gsrinivas.
Yak Posting Veteran

56 Posts

Posted - 05/17/2010 :  11:22:18  Show Profile  Reply with Quote
ok,thanks madhivanan.

-thanks
srini
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.09 seconds. Powered By: Snitz Forums 2000