Flash DB direct access

I need to be able to pull ontent directly from a sql database. Is this possible in Flash or is it required that you use a middle man such as asp or php?