Solved

Performance issue with ntext field data type

Posted on 2009-05-14
3
205 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
Comment Utility
Hi vj_mi,

Try using NVARCHAR(MAX) instead


Good Luck!

Gary
0
 
LVL 46

Expert Comment

by:tbsgadi
Comment Utility
0
 
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 100 total points
Comment Utility
>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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
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.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now