Microsoft
Software
Hardware
Network
Question : Query to find out greatest number of characters in a specified column
Can someone give me the syntax to write a query that will return the greatest number of characters in a specified column. Basically, I am in the process of converting a table's nChar fields and converting to nVarchar but want to check to make sure none of the columns I am converting are over nVarchar's max characters, 4000 characters.
Answer : Query to find out greatest number of characters in a specified column
select max(len(Field))
from table1
Substitur your field name in the "Field" place and then your table name instead of table1
Random Solutions
Auto-Reply to a message when received in a Public Folder
ActiveSync Exe Name
Post back Url in C#
How can I debug this JS error? (I get the stupid nondescript: "Microsoft JScript runtime error: Object expected" ...exception alert).
NTBackup not responding
USB Flash drive works great, but CD & CDRW don't show up on My Computer anymore.
Moving personal folders to exchange account in Outlook 2003
Forgot root password
TIF view properly in all apps except Microsoft Office Document Imaging
Citrix Installation anhd different versions