﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / Export Query result to Excel Sheet / 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>Wed, 19 Jun 2013 03:27:41 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Export Query result to Excel Sheet</title><link>http://www.sqlservercentral.com/Forums/Topic770119-146-1.aspx</link><description>If you are [b]NOT[/b] using Excel 2007 read the following ariticle which also has sample code.[url]http://www.simple-talk.com/sql/t-sql-programming/sql-server-excel-workbench/[/url]10:09 - spelling correction</description><pubDate>Thu, 13 Aug 2009 08:09:13 GMT</pubDate><dc:creator>bitbucket-25253</dc:creator></item><item><title>Export Query result to Excel Sheet</title><link>http://www.sqlservercentral.com/Forums/Topic770119-146-1.aspx</link><description>Hi all,   I am trying to Export query result to Excel sheet it gives error.Code :USE DBNAMEGOEXEC sp_configure 'show advanced options', 1GORECONFIGUREGOEXEC sp_configure 'Ad Hoc Distributed Queries', 1GORECONFIGUREGOINSERT INTO OPENROWSET ('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=c:\Citys\city.xls;','SELECT city_id,city,state_Id,state FROM [Sheet1$]')SELECT City_id,City,state_Id,(Select State From State Where state_id=S.state_id) AS statefrom city S where status_ind='A'AND city NOT IN (Select city from LatestZipcodes)It gives error message like:Msg 7399, Level 16, State 1, Line 3The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" reported an error. The provider did not give any information about the error.Msg 7303, Level 16, State 1, Line 3Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".pls help me.</description><pubDate>Thu, 13 Aug 2009 07:10:22 GMT</pubDate><dc:creator>venki_1276</dc:creator></item></channel></rss>