Code to send records from ax staging to SQL Server

Hi all,

Im currently using ax2012, just now i have a problem,which is i need to send the all records from one table to table in SQL Server R2 2008.

Anyone know how the code looks like?because i need to refer the sample code…

Thanks,