Avatar of JElster
JElster
Flag 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.
Microsoft SQL ServerMicrosoft SQL Server 2008

Avatar of undefined
Last Comment
Zberteoc

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Zberteoc

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck