The Account you are logged in as has local admin rights on the SharePoint Server as well as the appropriate access rights on the SQL Server.
However, When you issue the following command you receive an "Access is denied" error message:
Stsadm dm -o enumsubwebs -url http://YourServer.com/YourSite/
The cause of this access denied message is not related to Windows Admin rights or SQL Administration Rights. The cause
Add the account you are running the command as to the Site Collection Administrators group.
Create a "User Policy" to grant Full Control to your account.