Click here to Skip to main content
15,906,645 members
Home / Discussions / Database
   

Database

 
GeneralRe: select max(string) Pin
Zeyad Jalil19-Nov-08 22:17
professionalZeyad Jalil19-Nov-08 22:17 
AnswerRe: select max(string) Pin
Paddy Boyd20-Nov-08 0:00
Paddy Boyd20-Nov-08 0:00 
AnswerRe: select max(string) Pin
RGTuffin20-Nov-08 0:46
RGTuffin20-Nov-08 0:46 
AnswerRe: select max(string) Pin
Wendelius20-Nov-08 7:00
mentorWendelius20-Nov-08 7:00 
QuestionAdd Identity Key behaviour to existing primary key column. Pin
Xandip19-Nov-08 19:34
Xandip19-Nov-08 19:34 
AnswerRe: Add Identity Key behaviour to existing primary key column. Pin
Wendelius20-Nov-08 5:07
mentorWendelius20-Nov-08 5:07 
Question[Message Deleted] Pin
mobius11100119-Nov-08 5:05
mobius11100119-Nov-08 5:05 
AnswerRe: Database Class Design Pin
Wendelius19-Nov-08 8:02
mentorWendelius19-Nov-08 8:02 
The question is so large that it's impossible to answer it in whole. The .Net framework classes for accessing a database provide very much functionality and are quite flexible, so I take it you have good reasons to implement your own mechanism for some of these purposes.

What I would do in your case, I would write down to myself the (current and future) requirements for my custom classes. After that I would create (for example using Class Diagram in Visual Studio) a class model and test my concept against the requirements with different approaches. This would prove the concept to be correct (or you may discover weaknesses and want to change the concept).

Based on your description, few issues I would consider:
- why do I need to open the connections at start-up. If it's for speed, why don't I use connection pooling
- do I need to keep the connection open all the time
- do I need asynchronous database operations
- do different database operations require a common transaction
- what if I need to save several records using one call
- do I need set based operations (deleting multiple records at the same time etc)

Hope this helps you,

Mika

The need to optimize rises from a bad design.

My articles[^]

QuestionReporting Services table KeepTogether property Pin
grewin18-Nov-08 23:33
grewin18-Nov-08 23:33 
AnswerRe: Reporting Services table KeepTogether property Pin
Ennis Ray Lynch, Jr.19-Nov-08 10:09
Ennis Ray Lynch, Jr.19-Nov-08 10:09 
GeneralRe: Reporting Services table KeepTogether property Pin
grewin19-Nov-08 16:56
grewin19-Nov-08 16:56 
AnswerRe: Reporting Services table KeepTogether property Pin
Syed Mehroz Alam19-Nov-08 18:58
Syed Mehroz Alam19-Nov-08 18:58 
GeneralRe: Reporting Services table KeepTogether property Pin
grewin19-Nov-08 19:37
grewin19-Nov-08 19:37 
GeneralRe: Reporting Services table KeepTogether property Pin
Syed Mehroz Alam19-Nov-08 19:50
Syed Mehroz Alam19-Nov-08 19:50 
GeneralRe: Reporting Services table KeepTogether property Pin
grewin19-Nov-08 20:08
grewin19-Nov-08 20:08 
QuestionHelp me with this Query Pin
Mhiny18-Nov-08 20:04
Mhiny18-Nov-08 20:04 
AnswerRe: Help me with this Query Pin
Wendelius19-Nov-08 8:48
mentorWendelius19-Nov-08 8:48 
GeneralRe: Help me with this Query Pin
Mhiny19-Nov-08 21:19
Mhiny19-Nov-08 21:19 
GeneralRe: Help me with this Query Pin
Wendelius20-Nov-08 6:11
mentorWendelius20-Nov-08 6:11 
QuestionSelf Referenced Tables. Pin
Xandip18-Nov-08 19:14
Xandip18-Nov-08 19:14 
Answer[Message Deleted] Pin
Parwej Ahamad18-Nov-08 22:04
professionalParwej Ahamad18-Nov-08 22:04 
QuestionRe: Self Referenced Tables. Pin
Xandip18-Nov-08 22:18
Xandip18-Nov-08 22:18 
AnswerRe: Self Referenced Tables. Pin
Krishnraj18-Nov-08 23:12
Krishnraj18-Nov-08 23:12 
GeneralRe: Self Referenced Tables. Pin
Xandip19-Nov-08 0:58
Xandip19-Nov-08 0:58 
GeneralRe: Self Referenced Tables. Pin
Krishnraj19-Nov-08 2:41
Krishnraj19-Nov-08 2:41 

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.