473,396 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

xcopy command failed in sql server 2000 as scheduled task

After setting up the linked server connection at the standby server, I
tried to xcopy a file through the sql server 2000 schedule task to the
standby server's shared directory. But it keeps giving me the error
message with
'Invalid Drive Specification'.

My whole process includes
1) set up linked server connection on the standby server
2) set up job to xcopy file as operating system commend in sql server
from the production box(xcopy c:\directory\file.bak
\\standby_server\e$\directory\ /c)
3) test, but not successful - I am already running the whole schedule
task as a Windows user with Admin authority.)

What did I do wrong or did I miss something?

Thanks in advance
Jul 20 '05 #1
6 8767
xo55ox (xo****@hotmail.com) writes:
After setting up the linked server connection at the standby server, I
tried to xcopy a file through the sql server 2000 schedule task to the
standby server's shared directory. But it keeps giving me the error
message with
'Invalid Drive Specification'.

My whole process includes
1) set up linked server connection on the standby server
2) set up job to xcopy file as operating system commend in sql server
from the production box(xcopy c:\directory\file.bak
\\standby_server\e$\directory\ /c)
3) test, but not successful - I am already running the whole schedule
task as a Windows user with Admin authority.)

What did I do wrong or did I miss something?


Under which user is SQL Server Agent running as? It seems to me that it
is running under Local System, in which case it cannot see any other
machines on the network.

--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #2
We actually set up a separated user to run both sql server 2000's and
sql server agent's services. This account is member of administrators
and users. Do I need to add any permissions or rights to it? And do I
have to set this up on both the production and standby servers?

Thanks for the information.

Erland Sommarskog <so****@algonet.se> wrote in message news:<Xn**********************@127.0.0.1>...
xo55ox (xo****@hotmail.com) writes:
After setting up the linked server connection at the standby server, I
tried to xcopy a file through the sql server 2000 schedule task to the
standby server's shared directory. But it keeps giving me the error
message with
'Invalid Drive Specification'.

My whole process includes
1) set up linked server connection on the standby server
2) set up job to xcopy file as operating system commend in sql server
from the production box(xcopy c:\directory\file.bak
\\standby_server\e$\directory\ /c)
3) test, but not successful - I am already running the whole schedule
task as a Windows user with Admin authority.)

What did I do wrong or did I miss something?


Under which user is SQL Server Agent running as? It seems to me that it
is running under Local System, in which case it cannot see any other
machines on the network.

Jul 20 '05 #3
I verified we actually set to use LOCAL SYSTEM account to run sql
server 2000 and sql server agent on production server and set a
separated account to run the standby server. That account in standby
server is member of Administrators and Users.

So, do I need to add more permissions or rights for the accounts? Or
do I need to change the production account to something else with the
specific authority?

Thanks for the information.

Erland Sommarskog <so****@algonet.se> wrote in message news:<Xn**********************@127.0.0.1>...
xo55ox (xo****@hotmail.com) writes:
After setting up the linked server connection at the standby server, I
tried to xcopy a file through the sql server 2000 schedule task to the
standby server's shared directory. But it keeps giving me the error
message with
'Invalid Drive Specification'.

My whole process includes
1) set up linked server connection on the standby server
2) set up job to xcopy file as operating system commend in sql server
from the production box(xcopy c:\directory\file.bak
\\standby_server\e$\directory\ /c)
3) test, but not successful - I am already running the whole schedule
task as a Windows user with Admin authority.)

What did I do wrong or did I miss something?


Under which user is SQL Server Agent running as? It seems to me that it
is running under Local System, in which case it cannot see any other
machines on the network.

Jul 20 '05 #4
xo55ox (xo****@hotmail.com) writes:
I verified we actually set to use LOCAL SYSTEM account to run sql
server 2000 and sql server agent on production server and set a
separated account to run the standby server. That account in standby
server is member of Administrators and Users.

So, do I need to add more permissions or rights for the accounts? Or
do I need to change the production account to something else with the
specific authority?


Yes, as I said, you cannot have Local System if you need to access
network drives, since Local System does not see network things. The
best is probably to change to the same users as on the standy server.

--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #5
We did set up a separated account as the standby server for the
production box. But my job is still failing. This time, in my log, it
reported
'Logon failure: unknown user name or bad password'.

I tried to use the sql server user account as well as the OS user
account to run the job. Both are failing.

Am I missing something on the user account configuration, on the
linked server configuration or something else?

Thanks.

Erland Sommarskog <so****@algonet.se> wrote in message news:<Xn**********************@127.0.0.1>...
xo55ox (xo****@hotmail.com) writes:
I verified we actually set to use LOCAL SYSTEM account to run sql
server 2000 and sql server agent on production server and set a
separated account to run the standby server. That account in standby
server is member of Administrators and Users.

So, do I need to add more permissions or rights for the accounts? Or
do I need to change the production account to something else with the
specific authority?


Yes, as I said, you cannot have Local System if you need to access
network drives, since Local System does not see network things. The
best is probably to change to the same users as on the standy server.

Jul 20 '05 #6
xo55ox (xo****@hotmail.com) writes:
We did set up a separated account as the standby server for the
production box. But my job is still failing. This time, in my log, it
reported
'Logon failure: unknown user name or bad password'.

I tried to use the sql server user account as well as the OS user
account to run the job. Both are failing.

Am I missing something on the user account configuration, on the
linked server configuration or something else?


I have to admit that I don't have full knowledge how this works, and I
don't really have good playground to test things on myself. But I try to
work from common sense.

1) You never said as what kind of job step you ran the xcopy command.
I assume that you use CmdExec and not a T-SQL job?

2) First of all the service account for SQL Server Agent must have
access to that other partition. I don't really know whether know
whether the job owner has any importance for CmdExec, but if the
service account does not have access to the disk itself, it should
not be able to get there through impersonation either, methinks.

3) Rather than referring to c$, set up a real sbare, and grant permissions
to that share to the user(s) involved.

This may be more of a Windows networking issue than an SQL issue.
--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Colin Steadman | last post by:
We have a number of scheduled tasks on our IIS server that run daily at some point during the early morning. These tasks run as a specific user that has the correct permissions to perform whatever...
3
by: Doug Baroter | last post by:
Hi, One of my clients has the following situation. They use Access DB for data update etc. some business functions while they also want to view the Access data quickly and more efficiently in...
4
by: Morgan Leppink | last post by:
Hey all - We are running SQL 2000 with ALL available service packs, etc. applied. We just built a brand new database server, which has dual 2Ghz XEONs, 2GB memory, and the following disk...
10
by: Mist in the night | last post by:
Hi, I copied the DATA directory from a backup ghost image to a new SQL 6.5 installation and, after fixing a problem with the directory structure (which caused the databases to be marked as...
1
by: NiponW | last post by:
I 'm using SQL Server 2000 Enterprise Edition in Windows 2000 Sever box. Now , message "SQL Server has encountered 1 occurrence(s) of IO requests taking longer than 15 seconds to complete on...
2
by: tonytony24 | last post by:
Hi All: I was wondering if there's a simple way to call a MS Access Module through either Command Prompt MS Script any other way... Thanks for the response.
9
by: Mantorok | last post by:
Hi all C# v2.0 I want to update a server which is in our DMZ, to access this server I always need to enter the admin user id and password. I want to copy some files overnight to this server...
1
by: David Greenberg | last post by:
Hi We're using SqlServer 2000. I want to run a DTS using the DTSRUN command. The commmand is inside a ".bat" file which my application is running from an SQL client. No matter how I run it...
1
by: ranjitw | last post by:
I am running backup to .mdb file on a Windows 2003 server . My issue is that when the program completed it still is in a "running" state when I highlight the icon for the scheduled task I have to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.