Delphi ADO connects to SQLServer database

RAD Studio 10.3 test √

Need controls : ADOConnection, ADOQuery, DataSource, DBGrid
1. Set ADOConnection. Double-click ADOConnection to
Insert picture description here
Insert picture description here
set the properties of ADOConnection:
LoginPrompt --> False
Connected --> True

2. Set ADOQuery property
Insert picture description here
3. Set DataSource property
DataSet --> ADOQuery1

4. Set the DBGrid property
DataSource --> DataSource1

OK! ! !
A little bit of notes recorded during study, so that you can read it later.

Guess you like

Origin blog.csdn.net/qq_44111597/article/details/108325425