SQL Server - Custom Export to Excel.. break up data into separate sheets
I need to export a CUSTOMER table to excel.
But I need to have separate Excel sheets for each Customer STATE.
How can I export the Customer table and break it up in Excel by the STATE field?
I need to do this in SQL Server or a stored procedure. NOT C# or VB code.
thanks in advance.