﻿<?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  / Openrowset problem / 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, 18 May 2013 04:23:30 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Openrowset problem</title><link>http://www.sqlservercentral.com/Forums/Topic1407202-391-1.aspx</link><description>after installation of msaccess12.0 driver its working...:-)</description><pubDate>Fri, 18 Jan 2013 03:24:14 GMT</pubDate><dc:creator>sathiyan00</dc:creator></item><item><title>RE: Openrowset problem</title><link>http://www.sqlservercentral.com/Forums/Topic1407202-391-1.aspx</link><description>MS office 2007 or 2010?windows 7 62 bit ?Please guide me ....</description><pubDate>Thu, 17 Jan 2013 21:57:57 GMT</pubDate><dc:creator>sathiyan00</dc:creator></item><item><title>RE: Openrowset problem</title><link>http://www.sqlservercentral.com/Forums/Topic1407202-391-1.aspx</link><description>It does work in R2 ; I have used openrowset in my project for adhoc insertions..</description><pubDate>Thu, 17 Jan 2013 06:49:18 GMT</pubDate><dc:creator>demonfox</dc:creator></item><item><title>RE: Openrowset problem</title><link>http://www.sqlservercentral.com/Forums/Topic1407202-391-1.aspx</link><description>is it working for anyone . loading data in sql server 2008 r2(64 bit) from file(excel 2007,text file) using sql.....</description><pubDate>Thu, 17 Jan 2013 03:19:32 GMT</pubDate><dc:creator>sathiyan00</dc:creator></item><item><title>RE: Openrowset problem</title><link>http://www.sqlservercentral.com/Forums/Topic1407202-391-1.aspx</link><description>Here is another syntax for your consideration:[u][url=http://www.sqlservercentral.com/Forums/FindPost1407497.aspx]http://www.sqlservercentral.com/Forums/FindPost1407497.aspx[/url][/u]</description><pubDate>Wed, 16 Jan 2013 08:20:27 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: Openrowset problem</title><link>http://www.sqlservercentral.com/Forums/Topic1407202-391-1.aspx</link><description>[quote][b]Lokesh Vij (1/15/2013)[/b][hr]humm... Try this out thenExecute this first:[code="sql"]EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1GOEXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1GO[/code]Then try to execute your query with this change:[code="sql"]SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','Excel 8.0;Database=C:\Users\sathiyanr\Desktop\dynamic.xlsx','SELECT * FROM [Sheet1$]')[/code][/quote]How about this one Lokesh :[code="sql"]EXEC sp_addlinkedserver @server = N'ExcelDataSource', @srvproduct=N'ExcelData', @provider=N'Microsoft.ACE.OLEDB.12.0', @datasrc=N'C:\DataFolder\People.xlsx',@provstr=N'EXCEL 12.0' ;SELECT col1,col2 FROM OPENQUERY(ExcelShare, 'SELECT * FROM [Sheet1$]')[/code]I guess It can be used;  when a particular excel is frequently used and has a plenty of sheets :)(I use it for side testing ; just another way to accessing excel .)</description><pubDate>Wed, 16 Jan 2013 02:36:15 GMT</pubDate><dc:creator>demonfox</dc:creator></item><item><title>RE: Openrowset problem</title><link>http://www.sqlservercentral.com/Forums/Topic1407202-391-1.aspx</link><description>The ACE drivers are not standard equipment on Windows Server 2008 so in case you;re looking for them you can download a 32 or 64-bit version here:[u][url=http://www.microsoft.com/en-us/download/details.aspx?id=13255]http://www.microsoft.com/en-us/download/details.aspx?id=13255[/url][/u]</description><pubDate>Tue, 15 Jan 2013 23:48:27 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: Openrowset problem</title><link>http://www.sqlservercentral.com/Forums/Topic1407202-391-1.aspx</link><description>humm... Try this out thenExecute this first:[code="sql"]EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1GOEXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1GO[/code]Then try to execute your query with this change:[code="sql"]SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','Excel 8.0;Database=C:\Users\sathiyanr\Desktop\dynamic.xlsx','SELECT * FROM [Sheet1$]')[/code]</description><pubDate>Tue, 15 Jan 2013 06:54:53 GMT</pubDate><dc:creator>Lokesh Vij</dc:creator></item><item><title>RE: Openrowset problem</title><link>http://www.sqlservercentral.com/Forums/Topic1407202-391-1.aspx</link><description>I already tried this one lokesh....but no change...</description><pubDate>Tue, 15 Jan 2013 06:17:34 GMT</pubDate><dc:creator>sathiyan00</dc:creator></item><item><title>RE: Openrowset problem</title><link>http://www.sqlservercentral.com/Forums/Topic1407202-391-1.aspx</link><description>Try to execute the following set of commands and check if this works:[code="sql"]sp_configure 'show advanced options', 1;GORECONFIGURE;GOsp_configure 'Ad Hoc Distributed Queries', 1;GORECONFIGURE;GO[/code]</description><pubDate>Tue, 15 Jan 2013 06:12:59 GMT</pubDate><dc:creator>Lokesh Vij</dc:creator></item><item><title>Openrowset problem</title><link>http://www.sqlservercentral.com/Forums/Topic1407202-391-1.aspx</link><description>Hi all,        Is that possible to select The  data from excel 2007 on sql server 2008 r2(64 bit),os Windows 7 (64 bit)Using Sql?I used Following query but it throws errorSELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',          'Excel 8.0;Database=C:\Users\sathiyanr\Desktop\dynamic.xlsx',          'SELECT * FROM [Sheet1$]')Error:Msg 7308, Level 16, State 1, Line 1OLE DB provider 'Microsoft.Jet.OLEDB.4.0' cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode.</description><pubDate>Tue, 15 Jan 2013 05:47:17 GMT</pubDate><dc:creator>sathiyan00</dc:creator></item></channel></rss>