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
faulting application wmiprvse.exe, problem on windows 2003 DC
Unable to Write Registry Key with .bat file on startup
Column headings in crosstab queries
server dropped connection without sending the initial greeting
anything like nohup in DOS
Bulk Insert in SQL SERVER 2000
Using Office 2007 in Windows Terminal Services 2003
DNS / MX record config problem? Diagnostic-Code: smtp;554 5.7.1 <
[email protected]
>: Relay access denied
sharing folders - no network provider accepted at given path
SearchAllTables - doesn't search text fields