SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Indexing


Indexing

Author
Message
vino.kumar587
vino.kumar587
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 4
Can i know how many nvarchar(max) column can add in one index?. Its very urgent situation.
please replay to this mail id : vino.kumar587@gmail.com

Thanks
Vinoth Kumar.T
Contact No : +91-9488667612
wschampheleer
wschampheleer
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1712 Visits: 303
Check BOL.

Regards,

Willem
http://wschampheleer.wordpress.com
Andrew Gothard-467944
Andrew Gothard-467944
SSC Eights!
SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)

Group: General Forum Members
Points: 958 Visits: 2357
You can't have an mvarchar(max) as a key column (a searchable column) in an index. Only as an included column
Paul White
Paul White
SSC-Dedicated
SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)

Group: General Forum Members
Points: 36254 Visits: 11361
vino.kumar587 (2/22/2010)
Can i know how many nvarchar(max) column can add in one index?. Its very urgent situation.

Can I ask why you are wondering, and why it is so urgent? It seems like an odd question...

Paul



Paul White
SQLPerformance.com
SQLblog.com
@SQL_Kiwi
Andrew Gothard-467944
Andrew Gothard-467944
SSC Eights!
SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)

Group: General Forum Members
Points: 958 Visits: 2357
Paul White (2/22/2010)
vino.kumar587 (2/22/2010)
Can i know how many nvarchar(max) column can add in one index?. Its very urgent situation.

Can I ask why you are wondering, and why it is so urgent? It seems like an odd question...

Paul


anyone prepared to bet against something along the lines of "The developers ... every text field is nvarchar(max) ... performance terrible ... I've been asked to tune ... "
Paul White
Paul White
SSC-Dedicated
SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)

Group: General Forum Members
Points: 36254 Visits: 11361
Andrew Gothard-467944 (2/22/2010)
anyone prepared to bet against something along the lines of "The developers ... every text field is nvarchar(max) ... performance terrible ... I've been asked to tune ... "

Not me Laugh



Paul White
SQLPerformance.com
SQLblog.com
@SQL_Kiwi
GSquared
GSquared
SSC Guru
SSC Guru (59K reputation)SSC Guru (59K reputation)SSC Guru (59K reputation)SSC Guru (59K reputation)SSC Guru (59K reputation)SSC Guru (59K reputation)SSC Guru (59K reputation)SSC Guru (59K reputation)

Group: General Forum Members
Points: 59013 Visits: 9730
You can include any number of them in an index. You can't have them as the key columns for the index. It's really as simple as that.

Often, you're better off using a full text index on that kind of column, instead of a regular index.

What problem are you trying to solve by indexing these?

- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread

"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search