# How to connect to database Step9 & 10 & 11

**URL:** <https://forums.thehomestack.io/t/how-to-connect-to-database-step9-10-11/93>\
**Category:** vb.Net\
**Created:** [November 10, 2003, 3:05am UTC](https://forums.thehomestack.io/t/how-to-connect-to-database-step9-10-11/93 "2003-11-10T03:05:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forums.thehomestack.io/uploads/default/original/1X/161426793bc0d8bdf0d1a6692b3e44446861cc72.jpeg) [@system](https://forums.thehomestack.io/u/system)\
**Post date:** [November 10, 2003, 3:05am UTC](https://forums.thehomestack.io/t/how-to-connect-to-database-step9-10-11/93/1 "2003-11-10T03:05:31Z")

</div>

Step 9

In the generate SQL statement, just use an SQL that will be able to retrieve data from your database. In this example we will use SELECT \* FROM PROFILE where profile is a table in this database.

Step 10

Click on Next to continue.

Step 11

Click on Finish to complete it.

Note that OleDBConnection is automatically generated.

 ![image7038.gif](https://forums.thehomestack.io/uploads/default/original/1X/b4402981932016e44407e44eda0d90ba646c83e4.gif)
