An XML snippet for copying a SQL stored procedure with its underlying table is shown here:
<dmCreate> ... <database selection="unselected"> <name>database1</name> <table selection="included"> <name>test</name> <validate_row_count>all</validate_row_count> </table> </database> <stored_procedures> <stored_procedure selection="included"> <name>sp_test</name> <database>database1</database> </stored_procedure> </stored_procedures> ... </dmCreate>