Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 size of ntext column

Author  Topic 

leynakarthik
Starting Member

7 Posts

Posted - 2005-08-11 : 07:39:02
Hi,

How to find the ntext data type column size?

Please help me to findout

Thanks in advance

Regards

Karthik

leynakarthik

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-08-11 : 07:45:40

select character_maximum_length from information_schema.columns
where table_name='your_table' and column_name='ntextcolum_name'

Madhivanan

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

kapilarya
Yak Posting Veteran

86 Posts

Posted - 2005-08-11 : 07:51:49
what if i wnt to know how much or what is the max size that the text field is storing ??

Kapil Arya
Go to Top of Page

leynakarthik
Starting Member

7 Posts

Posted - 2005-08-11 : 07:53:49
Hi,

I want to know the size of stored data for ntext columns

Rgds

Karthik

leynakarthik
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-08-11 : 07:56:56
>>I want to know the size of stored data for ntext columns

select datalength(ntextcolumn) from yourtable

Madhivanan

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

- Advertisement -