Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET 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 15th, 2003, 08:55 PM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default FileCopy permission problem

I have a VB.NET program which does a FileCopy to copy a file from one machine to another. When I run the .exe from the command prompt it works correctly.

When I run it as a scheduled job under SQLServer agent it gets an error (incorrect username or bad password).

Can anyone suggest what the problem is and how to fix it. Thanks
 
Old June 16th, 2003, 05:38 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

The User ID that the SQL Server Agent runs under needs rights on both machines. It's likely it doesn't have rights on the target machine.


Hal Levy
Daddyshome, LLC
 
Old June 18th, 2003, 02:29 AM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hal, thanks for your input.





Similar Threads
Thread Thread Starter Forum Replies Last Post
(0x800A0046) Permission denied,not IIS permission! David Hay Classic ASP Basics 3 April 30th, 2006 10:47 PM
WebPart Permission Problem Basti BOOK: Professional C#, 2nd and 3rd Editions 0 November 25th, 2005 10:53 AM
Yet another "Permission Denied" IE problem Snib Javascript 6 November 15th, 2004 11:01 PM
FileCopy Ned Pro VB 6 5 July 17th, 2003 04:29 PM





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