Create Excel file on web server by using SQL

25 pts.
Tags:
Microsoft Excel
SQL Server 2005
SQL Server stored procedures
How can I create an excel sheet on web server by using a stored procedure in SQL Server 2005. I'm retriving data from sql select query and creating Excel file dynamically on we server of that data using asp.net. But I want to do this with the help of SQL stored prcedure. i.e. In a stored procedure I will retrive the data required to create file on webserver and in the same stored procedure I want a way to create file to web server.

Answer Wiki

Thanks. We'll let you know when a new response is added.

There is no native way to do this directly from a stored procedure. You can call an SSIS package have have the SSIS package create the Excel file for you. Other than that you’ll need third party tools installed on the SQL Server to do this.

It is usually better to do this kind of work on the web servers as web servers are much more scalable than SQL Servers.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following