Link to home
Avatar of JElster
JElsterFlag for United States of America

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Zberteoc
Zberteoc
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial