I asked myself, what the community considers ‘best practices’ when it comes to building a frontend for a database.
e.g.:
should every form has its own connection?
should all the database related stuff go into a separate layer? That is: creating a class, that handles all things database, which I then instantiate from my forms and so on?
how strict should the separation rule be followed, that is: where to put SQL strings, connection strings. In every forms code (findable), in a separate (source-)file as global variables, in a XML file or even nowhere in the sourcecode, only on the sql server?
etc.
When building a Web Application you normally have 3 layers of logic.
The last layer does everything regarding managing the database.
The Business Logic layer should never talk with the database directly, without using the Data Access Layer.
That’s my best advise