Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 21st, 2004, 09:44 AM
Authorized User
 
Join Date: Dec 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidhar79
Default SQL to Excel

Hello All,

I have tried to execute the following
"SELECT * INTO [Excel 5.0;Database=C:\ExcelFiles.xls].[Sheet1] FROM dbo.EmployeeTerritories "(NorthWind database) in SQL Query Analyser

as well as using DTS ActiveX Script, both are giving the following error message "Specified owner name 'Excel 5.0;Database=C:\ExcelFiles.xls' either does not exist or you do not have permission to use it."

the "C:\ExcelFiles.xls" does exist on the server

any ideas why this is happening, please help

regards
Sasidhar

thanks,
Sasidhar
__________________
thanks,
Sasidhar
 
Old June 21st, 2004, 09:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Since you know it's there. then you don't have permission to use it.


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old June 21st, 2004, 09:57 AM
Authorized User
 
Join Date: Dec 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidhar79
Default

What kind of permission is required , can you please specify

thanks,
Sasidhar
 
Old June 21st, 2004, 09:59 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

The user accessing the file needs permissions to access it in the file system. Your system administrator should be able to set this up for you.

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old June 21st, 2004, 10:12 AM
Authorized User
 
Join Date: Dec 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidhar79
Default

We all have Administrator privileges with respect to FileSystem as well as in all the aspects.

thanks,
Sasidhar
 
Old June 21st, 2004, 10:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Obviously the user that is trying to work with the file does not have such privleges. What user that is depends on how you have your system configured. It could be you, It could be ASPNET it could be IUSER_MachineName..

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee





Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Statement with Excel Fabrice Guezennec Excel VBA 1 May 23rd, 2008 08:29 PM
Convert data from Excel to SQL jerry_Chihuas Java Espanol 2 November 18th, 2006 05:46 PM
VB6/Excel/SQL tmiller1 Excel VBA 2 April 6th, 2005 02:10 PM
Sql DTS and Excel gfbaker SQL Server 2000 2 March 31st, 2005 04:33 PM
SQL 2000 into Excel bertlf Excel VBA 3 December 31st, 2003 03:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.