Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Len() on a data type text field
I'm trying to do a len() function on a text field in SQl
Server 2000.  Of course this doesn't work but is there a
another way to do this?

Thanks,
Ben Bleser

Report this thread to moderator Post Follow-up to this message
Old Post
Ben Bleser
04-01-05 01:01 AM


Re: Len() on a data type text field
The LEN() function should work in SQL Server 2000. Why can't you use it?


"Ben Bleser" < anonymous@discussion
s.microsoft.com> wrote in message
 news:11d101c5360c$99
251960$a601280a@phx.gbl...
> I'm trying to do a len() function on a text field in SQl
> Server 2000.  Of course this doesn't work but is there a
> another way to do this?
>
> Thanks,
> Ben Bleser



Report this thread to moderator Post Follow-up to this message
Old Post
Marco Pais
04-01-05 01:01 AM


Re: Len() on a data type text field
Ben,
Try DataLength(column)
Lars Broberg
Elbe-Data AB
http://www.elbe-data.se
Remove "nothing." when replying to private e-mail!


Ben Bleser  wrote:
> I'm trying to do a len() function on a text field in SQl
> Server 2000.  Of course this doesn't work but is there a
> another way to do this?
>
> Thanks,
> Ben Bleser

Report this thread to moderator Post Follow-up to this message
Old Post
Lars Broberg
04-01-05 01:01 AM


RE: Len() on a data type text field
DATALENGTH()

"Ben Bleser" wrote:

> I'm trying to do a len() function on a text field in SQl
> Server 2000.  Of course this doesn't work but is there a
> another way to do this?
>
> Thanks,
> Ben Bleser
>

Report this thread to moderator Post Follow-up to this message
Old Post
Jack
04-01-05 01:01 AM


Re: Len() on a data type text field
DATALENGTH()
Should give the same as LEN() would have for text datatype.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www. solidqualitylearning
.com/
http://www.sqlug.se/


"Ben Bleser" < anonymous@discussion
s.microsoft.com> wrote in message
 news:11d101c5360c$99
251960$a601280a@phx.gbl...
> I'm trying to do a len() function on a text field in SQl
> Server 2000.  Of course this doesn't work but is there a
> another way to do this?
>
> Thanks,
> Ben Bleser



Report this thread to moderator Post Follow-up to this message
Old Post
Tibor Karaszi
04-01-05 01:01 AM


Re: Len() on a data type text field
The datatype is TEXT.  So, several string functions are not valid, including
LEN().

--
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.




"Marco Pais" < mpaisIGNORE@foruminf
ormatica.pt> wrote in message
news:u#LOj2gNFHA.3336@TK2MSFTNGP09.phx.gbl...
> The LEN() function should work in SQL Server 2000. Why can't you use it?



Report this thread to moderator Post Follow-up to this message
Old Post
Aaron [SQL Server MVP]
04-01-05 01:01 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 11:47 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006