WiX instaler: Read value from SQL
===

I'm new to WiX installer but I need to solve a situation asap. After searching for some time haven't found any solution.

I need to read a value from SQL Server while running the WiX installer and keep it, but I'm not sure if it is possible. All I've found are 'updates' or 'insert' query examples, but no 'select'. 

Have someone done something like this?