Connecting to SQL

Hi, Does anyone knows how to connect to SQL server and read information after executing several SELECT statements? In navision it is done using Automation objects… And in Axapta? – Thanks