Thanks. I'm using Kentico 7 which doesn't have the QueryTypeEnum but this looks ok:
CMS.DataEngine.GeneralConnection gc = CMS.DataEngine.ConnectionHelper.GetConnection();
System.Data.DataSet ds = gc.ExecuteQuery("SELECT * FROM View_Custom_ProductData", null);
It seems to be working but I am having trouble with the view name. In the cms desk it shows as:
schema: dbo
name: View_Custom_ProductData
I have tried every option I can think of but always get a not found exception
[GeneralConnection.ExecuteQuery]: Query 'SELECT * FROM ProductData' not found.
[GeneralConnection.ExecuteQuery]: Query 'SELECT * FROM View_Custom_ProductData' not found.
[GeneralConnection.ExecuteQuery]: Query 'SELECT * FROM dbo.View_Custom_ProductData' not found.