Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the max for nvarchar data type in SQL?

Status
Not open for further replies.

emilyng

Programmer
Dec 23, 2001
4
MY
Hi there,

Can I know how many character (max) that can be entered into a nvarchar data type?
 
Do you know what what datatype in SQL Server 6.5 that can handle as many characters?

I need to create a sproc that contain an input parameter that can take more than 255 (max of vchar) characters.

Pls help.

Thx.


Min.
 
If you need to have a field of more then 255 characters in 6.5 you need to use the data type ‘text’.

Rick.
 
According to documentation...

nvarchar:
Variable-length Unicode data with a maximum length of 4,000 characters. sysname is a system-supplied user-defined data type that is a synonym for nvarchar(128) and is used to reference database object names.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top