This is a migrated thread and some comments may be shown as answers.

State length for raddock

2 Answers 38 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Adam Hubble
Top achievements
Rank 1
Adam Hubble asked on 18 Aug 2008, 10:28 AM
Hi,

For storing the State of a RadDock layout in a database, we have a State column of type varchar. I was just wondering what the optimum length of the datatype should be?

I have seen various code examples on here from Telerik where the State datatype length has been varchar(1000) but also examples where varchar(MAX) has been used. What is the recommended datatype length to use in production? Good db design obviously suggests we go as small as possible but always 'big enough' so this is quite important... 

2 Answers, 1 is accepted

Sort by
0
Accepted
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 19 Aug 2008, 11:39 AM
Each RadDock state string is around ~326 characters.

If you have less than 3 RadDocks on the page  3*326 = 978 characters: You can use - varchar(1000)

My suggestion is to use varchar(MAX) if you create something like a portal(igoogle, pageflakes etc.).
0
Adam Hubble
Top achievements
Rank 1
answered on 20 Aug 2008, 10:55 AM
Thanks!
Tags
Dock
Asked by
Adam Hubble
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Adam Hubble
Top achievements
Rank 1
Share this question
or