How do I get a list of stand alone table ids?

Discussion created by gbilotta on Jan 16, 2013
I am trying to get a list of the stand alone table ids in my dynamic map service and cannot seem to figure out a way to do this.  I can use the layerinfos property to get the layers in the map service and their layer ids.  I can also query the stand alone tables by hard coding their ids in the query task, but I want to get the ids of the stand alone tables dynamically.  Any thoughts?  Thank you,