Avatar of crazywolf2010
crazywolf2010Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

SQL Server 2008 : Store 100K char string with indexing option

Hi,
How can I store a char string upto 100K within a column? I could use text else ntext but will normal indexing work with it?

Thanks
Microsoft SQL Server 2005Microsoft SQL Server 2008

Avatar of undefined
Last Comment
Rich Weissler
Avatar of Rich Weissler
Rich Weissler

You might want to use varchar(max) or nvarchar(max) to store the character string rather than text or ntext.  (TEXT and NTEXT are deprecated, and will likely disappear from a future version of SQL.)

I don't believe you can use a standard index on [n]varchar(max), but you CAN use Full Text Indexes.
Avatar of crazywolf2010
crazywolf2010
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Hi Razmus,
Do you have any example on full text indexes on such column which may contain upto 100K char data?
What are the pros and cons of this method?
Is this the only way?

Thanks
SOLUTION
Avatar of Rich Weissler
Rich Weissler

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of crazywolf2010
crazywolf2010
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Thanks for the details.

Are you asking for online examples to get started;
-- Yeap
ASKER CERTIFIED SOLUTION
Avatar of Rich Weissler
Rich Weissler

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Microsoft SQL Server 2005
Microsoft SQL Server 2005

Microsoft SQL Server 2005 is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning. It includes support for managing XML data and allows a database server to be exposed over web services using Tabular Data Stream (TDS) packets encapsulated within SOAP (protocol) requests.

72K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo