Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 13th, 2005, 08:10 PM
Registered User
 
Join Date: Apr 2005
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Job fails & need to use domain\user acct to run

Hi all,

I have a situation where i need to run a job using a DOMAIN\USERNAME owner but when i do this it fails with...
"The job failed. Unable to determine if the owner...etc etc [SQLSTATE 42000] (Error 8198))"

The job runs fine when the owner is set to 'sa' or the 'sql service account', but alas this is no good to me as the DTS package it runs call a batch file to copy a file from another machine, and sa & sql service accounts don't have access to this file. So DTS fails.

Q: How can i get the job to work with DOMAIN\USERNAME owner??

Q: Any suggestions on any workarounds??

Cheers,
Ken





Reply With Quote
  #2 (permalink)  
Old October 17th, 2005, 09:30 PM
Friend of Wrox
 
Join Date: Aug 2004
Location: Orange County, CA, USA.
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am not sure I follow the issue. Create a user account that has the rights to run the batch file. Have the job run as that user and make sure that user has the needed rights in SQL. But this is a rather unsecure method, but most are in MS development using DTS and/or Batch files.

Hope this helps

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Job with VBScript in it Fails happygv SQL Server 2000 1 April 27th, 2007 02:56 AM
Job Fails - trying to insert into remote machine happygv SQL Server 2000 0 March 8th, 2007 10:03 AM
login failed for user domain\user babakwx SQL Server 2000 2 May 30th, 2006 12:28 PM
Error when code run as a job bjrichard SQL Server DTS 8 March 17th, 2005 12:20 AM
DB backup Job fails within a second or two happygv SQL Server 2000 6 October 16th, 2004 01:21 PM



All times are GMT -4. The time now is 04:07 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.