Solved

Performance issue with ntext field data type

Posted on 2009-05-14
3
235 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 143

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

828 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