Solved

Performance issue with ntext field data type

Posted on 2009-05-14
3
225 Views
Last Modified: 2012-05-07
Hello,
I have an application with 40 fields. One of the field is "Notes" with nvarchar(255). Now my client is requesting it to make it nText. I have few questions:
1. Will I loose data when changing the data type from nvarchar to ntext?
2. Assuming that over a period of time, I will have 50,000 records in this table, will having ntext hamper the performance when running with .NEt application?

Regards,
MI
0
Comment
Question by:vj_mi
  • 2
3 Comments
 
LVL 46

Accepted Solution

by:
tbsgadi earned 400 total points
ID: 24383528
Hi vj_mi,

Try using NVARCHAR(MAX) instead


Good Luck!

Gary
0
 
LVL 46

Expert Comment

by:tbsgadi
ID: 24383534
0
 
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 100 total points
ID: 24383540
>1. Will I loose data when changing the data type from nvarchar to ntext?
no.

>2. Assuming that over a period of time, I will have 50,000 records in this table, will having ntext hamper the performance when running with .NEt application?
not necessarily.

now, wzhat is the version of you sql server?
if it's sql 2005 or higher, don't use ntext, but nvarchar(max) instead.
if it's sql 2000, is nvarchar(4000) not big enough?
  you might consider to have a list of "notes" to be attached, instead of having just 1 big notes field...
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

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

770 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