I use the below VQL command to find the folder name and database name which contains a given view/data source,
CALL GET_ELEMENTS(null, 'bv_hr_countries', '*', null, null,null, null, null, null, null);
The above VQL query helps me search for a view named "bv_hr_countries'" and lists all the databases and folders which contains this view. Here instead of a view name you could also provide a data source name to be filtered.
The query displays the following information,
3.Type of the element
Hope this helps you!