Results 1 to 5 of 5

Thread: Using scptxfr in a SQL job

  1. #1
    Join Date
    Aug 2003
    Posts
    4

    Using scptxfr in a SQL job

    I need to generate a script of my entire database, and place the resulting file on a network drive. And I need to run it as a job. I found an old post on this forum that had information on scptxfr.exe. I am a beginner, so I was glad to have found something so simple. But I have a small problem...

    I created a SQL Server Agent job with a step that calls the scptxfr executable. But, the job fails because it doesn't recognize the network drive ("The system cannot find the path specified"). It works fine when I run the job and store the resulting script on my c drive. And, when I run scptxfr from the DOS prompt, it works fine when I use the network drive (using the same exact command line that I use in the sql job). It just doesn't work when I run it through a sql job. I've also tried using the full name (\\servername\share) - it didn't work.

    Any ideas?

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    does your sql agent account have enough permission to access the network drive

  3. #3
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Also make sure the sql server agent is running under a domain user account not local system account.

  4. #4
    Join Date
    Aug 2003
    Posts
    4
    That's it - thanks for your quick replies.

    Can you tell that I am a beginner?

  5. #5
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •