Click here to Skip to main content
15,893,190 members
Home / Discussions / C#
   

C#

 
AnswerRe: i have some visual-studio 2008 question Pin
DaveyM6921-Jan-10 12:24
professionalDaveyM6921-Jan-10 12:24 
AnswerRe: i have some visual-studio 2008 question Pin
Luc Pattyn21-Jan-10 13:48
sitebuilderLuc Pattyn21-Jan-10 13:48 
AnswerRe: i have some visual-studio 2008 question Pin
AspDotNetDev21-Jan-10 15:41
protectorAspDotNetDev21-Jan-10 15:41 
GeneralRe: i have some visual-studio 2008 question Pin
E_Gold21-Jan-10 20:27
E_Gold21-Jan-10 20:27 
Questionbest way to store configuration and state info Pin
teknolog12321-Jan-10 8:05
teknolog12321-Jan-10 8:05 
AnswerRe: best way to store configuration and state info Pin
Som Shekhar21-Jan-10 8:23
Som Shekhar21-Jan-10 8:23 
GeneralRe: best way to store configuration and state info Pin
teknolog12321-Jan-10 8:31
teknolog12321-Jan-10 8:31 
GeneralRe: best way to store configuration and state info Pin
Som Shekhar21-Jan-10 8:37
Som Shekhar21-Jan-10 8:37 
there is no rule. but you should consider scalability.

As you just mentioned, that your sql data would be on the same machine... in this case, even a file system could handle it. However, you chose sql because of future possibilities.

Similarly, to save configuration info, there are a few things that can be considered.

usually, configurations are of two types:

1) global - any changes affect all users.
2) local - any changes affect only current user.

global configurations are like rates, prices etc.. which are obvious to be common to all.

local are like colors, size, font, viewing preferences etc.

Now, global should be saved in sql as it has to be accessed by all.

local can be saved either in sql with a user_ID or can be saved in local user app data file. you can use Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)

I personally prefer keeping everything in sql. any user can login from anywhere and have his configuration available.

(if you like the answer, rate it)
GeneralRe: best way to store configuration and state info Pin
Eddy Vluggen21-Jan-10 8:43
professionalEddy Vluggen21-Jan-10 8:43 
GeneralRe: best way to store configuration and state info Pin
Colin Angus Mackay21-Jan-10 8:39
Colin Angus Mackay21-Jan-10 8:39 
GeneralRe: best way to store configuration and state info Pin
Eddy Vluggen21-Jan-10 8:42
professionalEddy Vluggen21-Jan-10 8:42 
AnswerRe: best way to store configuration and state info Pin
Colin Angus Mackay21-Jan-10 8:37
Colin Angus Mackay21-Jan-10 8:37 
AnswerRe: best way to store configuration and state info Pin
PIEBALDconsult21-Jan-10 18:19
mvePIEBALDconsult21-Jan-10 18:19 
AnswerRe: best way to store configuration and state info Pin
sandyrae21-Jan-10 21:03
sandyrae21-Jan-10 21:03 
AnswerRe: best way to store configuration and state info Pin
#realJSOP21-Jan-10 23:42
mve#realJSOP21-Jan-10 23:42 
Questionunknown error code Pin
Erdinc2721-Jan-10 7:10
Erdinc2721-Jan-10 7:10 
AnswerRe: unknown error code Pin
Luc Pattyn21-Jan-10 7:36
sitebuilderLuc Pattyn21-Jan-10 7:36 
AnswerRe: unknown error code Pin
Som Shekhar21-Jan-10 7:38
Som Shekhar21-Jan-10 7:38 
AnswerRe: unknown error code Pin
Abhinav S21-Jan-10 17:57
Abhinav S21-Jan-10 17:57 
AnswerRe: unknown error code Pin
SimpleData22-Jan-10 0:10
SimpleData22-Jan-10 0:10 
GeneralRe: unknown error code Pin
Erdinc2722-Jan-10 9:17
Erdinc2722-Jan-10 9:17 
GeneralRe: unknown error code Pin
SimpleData22-Jan-10 9:37
SimpleData22-Jan-10 9:37 
GeneralRe: unknown error code Pin
Erdinc2722-Jan-10 22:02
Erdinc2722-Jan-10 22:02 
GeneralRe: unknown error code Pin
Erdinc2722-Jan-10 22:54
Erdinc2722-Jan-10 22:54 
QuestionAm I missing something? Pin
Unsy21-Jan-10 7:07
Unsy21-Jan-10 7:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.