nope... that does not work... -----Original Message----- From: Greg Morphis [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 11:10 AM To: CF-Talk Subject: Re: ListGetAt in a SQL Select Statement... is this possible?
does SQLServer have the aggregate fuction max()? if so.. this will work. select max(len(mycol)) as maxlen from my_table this returns the longest value in that column On 4/27/05, Che Vilnonis <[EMAIL PROTECTED]> wrote: > i agree. while i got ya replying to my emails, what would be the easiest way > to find the longest length of characters within this field and then convert > the 'text' column to a 'varchar' column with a predetermined max length? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204703 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54