Solved

SQL Server: best data type for long question

Posted on 2011-09-29
4
191 Views
Last Modified: 2012-05-12
Hi

In SQL Server 2008, which data type would be best for a field that holds
up to 1000 text characters?

Thanks
0
Comment
Question by:murbro
4 Comments
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 167 total points
ID: 36813688
nvarchar2(MAx)

Or
give size as per you requiremt

nvarchar2(1000)
0
 
LVL 57

Assisted Solution

by:Raja Jegan R
Raja Jegan R earned 167 total points
ID: 36813693
If your question will contain only English characters, then choose VARCHAR(1000) else choose NVARCHAR(1000).
0
 
LVL 25

Assisted Solution

by:Lee Savidge
Lee Savidge earned 166 total points
ID: 36813699
nvarchar(1000)
0
 

Author Closing Comment

by:murbro
ID: 36813779
thanks very much
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question