1、引用:ado2.6
2、部件:Microsoft DataGrid Control 6.0
3、部件:Microsoft ADO Data Control 6.0
Private Sub Form_Load()
Adodc1.ConnectionString = "Driver={sql server};server=192.168.1.112;uid=sa;pwd=;database=db_2008"
Adodc1.RecordSource = "select * from aa"
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
End Sub