How can we export or save multiple select statements in SQL Server?
As for example, if we have 3-4 select statements, how can we export or print them to a single .txt
or .csv
file?
In mysql we have
select * from person INTO OUTFILE 'c/person.txt'
to print to a file, but what is the equivalent for this in SQL Server? Is there any SQL query using which I can come to a solution?