how to export database in sql server management studio as sql script code example Example: how to download data with sql select * from data;