dbTalk Databases Forums  

Problem in Exporting data to excel file which is on another server

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Problem in Exporting data to excel file which is on another server in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Levin
 
Posts: n/a

Default Problem in Exporting data to excel file which is on another server - 02-27-2006 , 06:39 AM






I have 2 servers: one is WebServer, the other is DBServer
SQL Server is installed on DBServer, I created a DTS (exporting from table
to Excel file), the destination file is on WebServer( \\WebServer\aaa.xls). I
successfully run the DTS in Enterprise Manager, but failed when running by
Stored Procedure (destination file is a parameter of Stored Procedure, when I
change the destination to '\\DBServer\aaa.xls', it running OK).
Any expert could tell me why? Security problem? URGENT!!!

Reply With Quote
  #2  
Old   
Dan Guzman
 
Posts: n/a

Default Re: Problem in Exporting data to excel file which is on another server - 02-27-2006 , 07:21 AM






The likely cause is security. Posting the error message would help identify
the cause.

If the proc is begin run by a sysadmin role member, then the package will
run under the SQL Server service account. That account needs permissions to
the \\WebServer share. Note that the service account must be a domain
account rather than local system in order to access network resources.

If the proc is run by a non-sysadmin role member, then you need to allow
non-sysadmin users to execute CmdExec steps and configure the proxy account.
You can configure this using Enterprise Manager under Management-->SQL
Server Agent-->Properties-->Job System.


--
Hope this helps.

Dan Guzman
SQL Server MVP

"Levin" <Levin (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have 2 servers: one is WebServer, the other is DBServer
SQL Server is installed on DBServer, I created a DTS (exporting from table
to Excel file), the destination file is on WebServer(
\\WebServer\aaa.xls). I
successfully run the DTS in Enterprise Manager, but failed when running by
Stored Procedure (destination file is a parameter of Stored Procedure,
when I
change the destination to '\\DBServer\aaa.xls', it running OK).
Any expert could tell me why? Security problem? URGENT!!!



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.