Can Flash get data from SQL?

Is there a way for Flash to get data directly from an SQL Server without an intermediary page to process the data?

If not, is it possible for Flash to read data from the SAME page in which it is embedded? For instance, as part of the <object> tag can one of the parameters be data, kind of like using loadvars for a text file?