Sql to Excel

I want to fetch 300 columns data to excel, sheet , it is not working , can you suggest  me a simple way to do that ,

it is like a table has 300 columns , and i want to transfer data for all the columns to Excel sheet , can you please suggest that .
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Assuming you have a version of Excel newer than 2003, you should be able to 'pull' it from Excel with 'Data/Data from OtherSources/SQL Server' by choosing your SQL Server and selecting the table or view you want the data from.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tapan PattanaikSenior EngineerCommented:
Hi BeyondBGCM,

This is the very simplest method,but in different way.

1- First write the sql query in SQL Server Management Studio to fetch your required data.
2- select "Copy with Headers" in the results by right clicking on results.
3- Copy the data to excel.

Please check the attached screen shot.

Copy With Headers
BeyondBGCMAuthor Commented:
yes, you are correct , but it takes time , more than 30 minutes , to fetch 28000 rows .... and still not diaplaying
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

BeyondBGCMAuthor Commented:
but above is manual method , and will require lot of time ..... the excel connection with sql is better, but this too is taking lot of time , more than 30 minutes  now .....
Tapan PattanaikSenior EngineerCommented:
HI BeyondBGCM,

Yes, It will take time for downloading the number of records. (Number columns +  Number of rows).
In your case number of column is 300 and row is around 28000
Vitor MontalvãoMSSQL Senior EngineerCommented:
How are you performing that operation?
In SSMS you can use the Export Data wizard by right-clicking on the desired database name then chose Tasks / Export Data...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.