473,651 Members | 2,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\fi le.bak
\\standby_serve r\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 8781
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\fi le.bak
\\standby_serve r\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\fi le.bak
\\standby_serve r\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\fi le.bak
\\standby_serve r\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
14693
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 task (processing SQL so I'm told) I have been asked if I can setup a page within ASP that a user could logon to with their own credentials (this I can do). And once logged on be presented with a list of scheduled tasks which they can then...
3
6267
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 SQL Server 2000. Huge Access db with over 100 user tables, over 60 MB data. The DTS package that comes with SQL Server 2000 seems pretty "messy" in the sense that it assumes that one needs to do one time import only or accurately it does not...
4
6401
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 configuration: RAID 1 array (2 disks) Operating System Windows Server 2003 RAID 1 array (2 disks) Database Logs RAID 10 array (4 disks) Database Data
10
2175
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 "suspect") I was able to work with it in a normal way. Opening the company database works without problems. The DATA directory seems to be correctly copied. The only problem is that I'm unable to see the scheduled tasks. I'm a using predefined...
1
2910
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 file in database (7). The OS file handle is 0x00000354. The offset of the latest long IO is: 0x00000086692000"
2
37517
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
12008
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 using a C# app, is this possible? Can I provide the credentials to enable me to access the server?
1
2985
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 from the client it fails giving me the message: SQL Server does not exist or access denied
1
4268
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 manually stop the task in order for the next scheduled backup to run. Is there a command line switch that I can use to force quit the program after it is completed or even if the job does not complete. Thanks for your help in advance
0
8357
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8277
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8700
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8581
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7298
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4285
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.