Link to home
Start Free TrialLog in
Avatar of SAMIR BHOGAYTA
SAMIR BHOGAYTAFlag for India

asked on

How can I export the whole database from sql server to excel sheet

Hello,

How can I export the whole database from sql server to excel sheet on a one click button event, or with only one option in menu like, "Export To Excel"
ASKER CERTIFIED SOLUTION
Avatar of John Claes
John Claes
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@samirbhogayta:
can you answer my questions? so I can help you further?
SOLUTION
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can query the content of a database table from inside Excel using the data tools, but Excel isn't the ideal tool to use for exporting your data. You could try Access, which is a far better match, but even Access has its limitations.

What are you trying to accomplish here? Maybe we can help you on a more architectural/design level first, before trying to solve a problem with the wrong tool for the job.
A "whole database"  in SQL Server usually contains multiple tables, and these usually have very different column configurations.  How do you expect a single Excel spreadsheet to accomodate this variety of columns?  Then there is also the issue of the number of records per sheet that Excel can support (ike poor-begger already mentioned) and this limit is *FAR* less than what a SQL Server table could hold.

Extracting data from a single SQL Server table to an Excel spreadsheet may be a realistic task *IF* the table does not have too many rows, or if you limit the number of rows to what Excel can handle.