This code snippet shows how to get data from a database using SQLDB and OLEDB tpe connections. Both examples display the results in a ListView. They also use parameterized queries (strongly recommended).