Click here to Skip to main content
15,664,435 members
Home / Discussions / Database
   

Database

 
QuestionOfficial PostgreSQL forum Pin
Jassim Rahma26-Oct-10 4:51
Jassim Rahma26-Oct-10 4:51 
AnswerRe: Official PostgreSQL forum Pin
Mycroft Holmes26-Oct-10 12:24
professionalMycroft Holmes26-Oct-10 12:24 
GeneralRe: Official PostgreSQL forum Pin
Corporal Agarn27-Oct-10 0:56
professionalCorporal Agarn27-Oct-10 0:56 
GeneralRe: Official PostgreSQL forum Pin
Mycroft Holmes27-Oct-10 1:13
professionalMycroft Holmes27-Oct-10 1:13 
Questiondeploy PostgreSQL database Pin
Jassim Rahma26-Oct-10 3:56
Jassim Rahma26-Oct-10 3:56 
Questioncreate script for entire database in PostgreSQL Pin
Jassim Rahma26-Oct-10 3:55
Jassim Rahma26-Oct-10 3:55 
AnswerRe: create script for entire database in PostgreSQL Pin
Jules VDV26-Oct-10 4:31
Jules VDV26-Oct-10 4:31 
QuestionSQL Server CE : How to create a database from C++ with ADO Pin
Leif Goodwin26-Oct-10 2:11
Leif Goodwin26-Oct-10 2:11 
AnswerRe: SQL Server CE : How to create a database from C++ with ADO => SOLVED Pin
Leif Goodwin26-Oct-10 3:33
Leif Goodwin26-Oct-10 3:33 
QuestionField ordering in a table Pin
john john mackey25-Oct-10 7:10
john john mackey25-Oct-10 7:10 
AnswerRe: Field ordering in a table Pin
J4amieC25-Oct-10 21:21
J4amieC25-Oct-10 21:21 
AnswerRe: Field ordering in a table Pin
i.j.russell25-Oct-10 23:32
i.j.russell25-Oct-10 23:32 
AnswerRe: Field ordering in a table Pin
Mycroft Holmes26-Oct-10 3:04
professionalMycroft Holmes26-Oct-10 3:04 
GeneralRe: Field ordering in a table Pin
Gerben Jongerius26-Oct-10 3:41
Gerben Jongerius26-Oct-10 3:41 
QuestionSQL Server Trigger [modified] Pin
Jay Royall25-Oct-10 5:03
Jay Royall25-Oct-10 5:03 
AnswerRe: SQL Server Trigger Pin
Chris Meech25-Oct-10 6:13
Chris Meech25-Oct-10 6:13 
GeneralRe: SQL Server Trigger Pin
Jay Royall25-Oct-10 22:20
Jay Royall25-Oct-10 22:20 
GeneralRe: SQL Server Trigger Pin
Chris Meech26-Oct-10 2:38
Chris Meech26-Oct-10 2:38 
QuestionSimple question from new sql server user ... [modified] Pin
Yanshof25-Oct-10 2:25
Yanshof25-Oct-10 2:25 
AnswerRe: Simple question from new sql server user ... Pin
PIEBALDconsult25-Oct-10 3:34
professionalPIEBALDconsult25-Oct-10 3:34 
Yanshof wrote:
dataGridView


Yuck.


If all you're doing is seeing that it can be done, then use a DataAdapter's Fill and Update methods to move data between the Grid and the database. But it only works for very simple data and you will soon find that that technique is not appropriate for real applications.

For one thing, Grids are generally not a proper way to get user input -- can you imagine an eCommerce site where you placed orders by filling in columns in a grid? No, you should define a form for entering and editing data. You can use a Grid with a subset of the data to allow the user to locate the record he wishes to edit, but never edit within a Grid.

For actual applications you will need a Data Access Layer. A layered application makes swapping parts in and out easier. For instance, at some future time you may want the client to access the database via a Web Service -- if your client is too-tightly bound to your database, that will be much more difficult.

"A stitch in time saves nine." Learn to use proper data access techniques now, before you really need them.


Here[^]'s an article I wrote on one of my data access techniques.
GeneralRe: Simple question from new sql server user ... Pin
NeverHeardOfMe25-Oct-10 4:18
NeverHeardOfMe25-Oct-10 4:18 
GeneralRe: Simple question from new sql server user ... Pin
PIEBALDconsult25-Oct-10 9:22
professionalPIEBALDconsult25-Oct-10 9:22 
GeneralRe: Simple question from new sql server user ... Pin
Mycroft Holmes26-Oct-10 1:42
professionalMycroft Holmes26-Oct-10 1:42 
GeneralRe: Simple question from new sql server user ... Pin
NeverHeardOfMe26-Oct-10 2:00
NeverHeardOfMe26-Oct-10 2:00 
GeneralRe: Simple question from new sql server user ... Pin
Mycroft Holmes26-Oct-10 2:57
professionalMycroft Holmes26-Oct-10 2:57 

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.