August 27, 2003 at 8:29 am
Hello.
I'm currently thinking of changing one of my nvarchar columns to ntext - I need to store large documents that may be a two to ten Megabytes in size.
I've been researching and performing tests, but I'm still a little confused about what I can and can't do with ntext fields. I've read that I can use SELECT, INSERT and UPDATE statements with ntext fields, and it seems the most logical and simple solution to my problem - my current stored procedures use SELECT, INSERT and UPDATE statements.
1. As I'm currently using an nvarchar( n ) column to store the document contents, could I simply replace it with an ntext column and use the existing stored procedures?
2. What, if any, limitations apply to using SELECT, INSERT and UPDATE with text, ntext and image fields?
3. Are there any advantages or disadvantages to the above approach that I should be aware of before my supervisor hits me with a big stick?
Thank you for your time. ๐
August 27, 2003 at 1:33 pm
You can handle smaller amounts of data like this, but for the large amounts you are talking about see the BOL topic "Retrieving ntext, text, or image Values".
August 28, 2003 at 12:00 am
Hi buntyHunter,
quote:
I'm currently thinking of changing one of my nvarchar columns to ntext - I need to store large documents that may be a two to ten Megabytes in size.I've been researching and performing tests, but I'm still a little confused about what I can and can't do with ntext fields. I've read that I can use SELECT, INSERT and UPDATE statements with ntext fields, and it seems the most logical and simple solution to my problem - my current stored procedures use SELECT, INSERT and UPDATE statements.
1. As I'm currently using an nvarchar( n ) column to store the document contents, could I simply replace it with an ntext column and use the existing stored procedures?
2. What, if any, limitations apply to using SELECT, INSERT and UPDATE with text, ntext and image fields?
3. Are there any advantages or disadvantages to the above approach that I should be aware of before my supervisor hits me with a big stick?
the best source of information to get a solid understanding of BLOB's (or LOB'sยด) you can find here http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/sql/reskit/sql2000/part3/c1161.asp
It should also help you to find a decision whether you go this way or you don't
HTH
Cheers,
Frank
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
August 28, 2003 at 12:04 am
Frank, excellent reference, read it myself last month.
August 28, 2003 at 12:16 am
quote:
Frank, excellent reference, read it myself last month.
This credit belongs to DALEC (or sqlinsite?!?), who first posted it
Cheers,
Frank
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
August 28, 2003 at 2:13 am
Many thanks - I'll get reading!
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply