how to export database as sql file in ssms code example Example: how to download data with sql select * from data;