I am using the following method to generate the script:
/// /// Create single Table script with Data of specified DataBase and Table.