﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / store procedure result to excel / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 01:04:29 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: store procedure result to excel</title><link>http://www.sqlservercentral.com/Forums/Topic1028188-391-1.aspx</link><description>Thank you all for your response. I will try it tomorrow.</description><pubDate>Tue, 30 Nov 2010 20:29:53 GMT</pubDate><dc:creator>hydbadrose</dc:creator></item><item><title>RE: store procedure result to excel</title><link>http://www.sqlservercentral.com/Forums/Topic1028188-391-1.aspx</link><description>If you output the format as if it were a CSV (commas and quotes), and put an xls file extension on it, Excel will open it without complaining.  I've done that before.</description><pubDate>Tue, 30 Nov 2010 15:00:19 GMT</pubDate><dc:creator>GSquared</dc:creator></item><item><title>RE: store procedure result to excel</title><link>http://www.sqlservercentral.com/Forums/Topic1028188-391-1.aspx</link><description>try using xp_cmdshell to BCP the results to an XLS file. Excel might complain that it is in the wrong format but should still open the file.[code="sql"]exec xp_cmdshell 'bcp "exec database.dbo.usp_Sqlmonitor" queryout c:\temp\test.xls -c -T'[/code]</description><pubDate>Tue, 30 Nov 2010 14:54:29 GMT</pubDate><dc:creator>Robert klimes</dc:creator></item><item><title>RE: store procedure result to excel</title><link>http://www.sqlservercentral.com/Forums/Topic1028188-391-1.aspx</link><description>I don't want to depend on sql agent or ssis. I want to create the procedure to execute and result output should be in excell so that I can call this procedure into batch file.</description><pubDate>Tue, 30 Nov 2010 14:19:49 GMT</pubDate><dc:creator>hydbadrose</dc:creator></item><item><title>RE: store procedure result to excel</title><link>http://www.sqlservercentral.com/Forums/Topic1028188-391-1.aspx</link><description>SSIS can create Excel files from proc output.</description><pubDate>Tue, 30 Nov 2010 12:28:51 GMT</pubDate><dc:creator>GSquared</dc:creator></item><item><title>store procedure result to excel</title><link>http://www.sqlservercentral.com/Forums/Topic1028188-391-1.aspx</link><description>Please help in turning the store procedure result into excell and also to call this store procdure to batch file.The store procedure suppose is;USp_Sqlmonitor</description><pubDate>Tue, 30 Nov 2010 12:25:02 GMT</pubDate><dc:creator>hydbadrose</dc:creator></item></channel></rss>