Click here to Skip to main content
15,915,603 members
Home / Discussions / C#
   

C#

 
Questionproblem with assigning a strong name to an assembly Pin
prasadbuddhika21-Jan-10 18:29
prasadbuddhika21-Jan-10 18:29 
AnswerRe: problem with assigning a strong name to an assembly Pin
prasadbuddhika21-Jan-10 22:07
prasadbuddhika21-Jan-10 22:07 
QuestionProblem getting shared folder that created by code using Win32_LogicalShareSecuritySetting [modified] Pin
cyn821-Jan-10 16:49
cyn821-Jan-10 16:49 
QuestionPrograms wont run at work Pin
viciouskinid21-Jan-10 15:08
viciouskinid21-Jan-10 15:08 
AnswerRe: Programs wont run at work Pin
Dave Kreskowiak21-Jan-10 17:22
mveDave Kreskowiak21-Jan-10 17:22 
AnswerRe: Programs wont run at work Pin
Abhinav S21-Jan-10 17:33
Abhinav S21-Jan-10 17:33 
AnswerRe: Programs wont run at work Pin
Alex Manolescu22-Jan-10 4:58
Alex Manolescu22-Jan-10 4:58 
Questioni have some visual-studio 2008 question Pin
E_Gold21-Jan-10 11:55
E_Gold21-Jan-10 11:55 
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
professional#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 

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.