How to connect Visual Components to database

Hi my friends,

I need some help, how do I connect the Visual Components to the SQLServer, and then call the data how do I represent it in the Visual Components?

Another problem is how to collect the data of running state in Visual Components into the database.

Best Wishes,

Yichen