Advertisement

09.11.2007 at 08:15AM PDT, ID: 22820625
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Running an executable from DTS Package

Tags: dts, package, code, from
I have created a DTS package in SQL Server that calls an executable.  I have used the "Execute Task Process" in DTS to run the executable.  When I run the DTS package manually, the program runs successfully.  When I attempt to schedule it as a job, it fails and give me the error:
"Process returned code -532459699, which does not match the specified SuccessReturnCode of 0."
I tried to change the return code on the job to match the return code that the program is returning, but this doesn't work.  I then tried to call the program to run from a dos batch file, and from an active x script, but I cant get it to execute properly even in the DTS window.  I even tried to use the run the program as a transact sql script, but when I attemped this, the process hung.  This program that I am running uploads a file to a FTP site.  HELP!!  I'm open to any suggestions that might work
Start your free trial to view this solution
Question Stats
Zone: Microsoft
Question Asked By: kgibson88
Solution Provided By: Zberteoc
Participating Experts: 4
Solution Grade: B
Views: 34
Translate:
Loading Advertisement...
09.11.2007 at 08:35AM PDT, ID: 19869563

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 08:51AM PDT, ID: 19869693

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 09:04AM PDT, ID: 19869810

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 09:20AM PDT, ID: 19869942

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 09:25AM PDT, ID: 19869980

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 09:34AM PDT, ID: 19870060

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 09:35AM PDT, ID: 19870069

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 09:39AM PDT, ID: 19870101

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 09:39AM PDT, ID: 19870104

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 09:45AM PDT, ID: 19870148

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 09:58AM PDT, ID: 19870231

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 09:59AM PDT, ID: 19870243

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 10:02AM PDT, ID: 19870264

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 10:49AM PDT, ID: 19870614

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 11:04AM PDT, ID: 19870750

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 11:09AM PDT, ID: 19870803

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 11:15AM PDT, ID: 19870852

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 11:17AM PDT, ID: 19870875

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 11:33AM PDT, ID: 19871018

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 11:45AM PDT, ID: 19871129

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 12:29PM PDT, ID: 19871482

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.11.2007 at 12:32PM PDT, ID: 19871518

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
09.11.2007 at 08:35AM PDT, ID: 19869563
Is the DTS package trying to access a remote share or other privileged location?
 
09.11.2007 at 08:51AM PDT, ID: 19869693
No...The executable is located on c:\Program Files
 
09.11.2007 at 09:04AM PDT, ID: 19869810

Rank: Guru

The error code you got indicates a DTS security issue.  Are you using a UNC or an actual drive letter to point to the executable?

You need to make sure that the account you're using to run SQL Agent has permission to access the folder(s) in question.
 
09.11.2007 at 09:20AM PDT, ID: 19869942
I logon to the sql server box as a domain administrator, and that domain administrator account is a sqlserver account with administrative access.  The SQL Agent account runs under an account called sqlsched, and I don't see this account in the SQL logons.  What permissions should the sqlsched account have??  I don't seem to have any other problems with the other jobs that I have created using this same account.  Does this sqlsched account need administrative rights in sqlserver?
 
09.11.2007 at 09:25AM PDT, ID: 19869980

Rank: Guru

It will depend on whether you're accessing the folder through UNC / Share or drive letter.  Logging on as a domain admin doesn't give you any additional permission unless the share explictly grants it.

You sqlsched account should have permission to a share, if a share is being used.  

Are you using a UNC path / Share or an actual drive letter to point to the executable?
 
09.11.2007 at 09:34AM PDT, ID: 19870060

Rank: Guru

Why don't you just use the File Transfer Protocol Task from th DTS package that is exactly for transfering file through FTP.
Accepted Solution
 
09.11.2007 at 09:35AM PDT, ID: 19870069
The Process task in the DTS program uses a letter designation (c:\Program Files\)
 
09.11.2007 at 09:39AM PDT, ID: 19870101

Rank: Guru

I'm not sure I understand where the problem is.
 
09.11.2007 at 09:39AM PDT, ID: 19870104

Rank: Guru

Good to know...there is no security issue via UNC or a share, however, the error code you got still indicates a security issue.

What permission does your sqlsched account have to the folder under c:\program files\?

This permission problem is at the OS level and not SQL Server.  Likely you won't be able to resolve it by giving it any more permission in SQL Server.
 
09.11.2007 at 09:45AM PDT, ID: 19870148
I have created at least 10 jobs and scheduled them using the SQLSched account and have never encounted any problems.  These jobs access files both from the local machine as well as from domain file shares.  I have never had a problem with this account before as far as local machine or file share access goes.
I just don't understand why it runs when I execute from the DTS window, but not when I schedule it.

 
09.11.2007 at 09:58AM PDT, ID: 19870231

Rank: Guru

because whe you execute it from the DTS window it runs under your windows account but when it runs from job uses whatever is set for the SQL Agent account which usualy is SEVERNAME user and that user doesn't have the same permissions as you. You can set for the SQL agent to use a different user with proper permission.

You haven't answered why using the FTP task was a problem.
 
09.11.2007 at 09:59AM PDT, ID: 19870243
Zberteoc -- I think I am going to have to try and use the FTP task.  I was trying to avoid it because I have to get all the information (user account, passwords, etc) from the vendor, and they are not very responsive sometimes.  I just thought that since this program was already installed and configured, I could easily call it sql scheduler.
 
09.11.2007 at 10:02AM PDT, ID: 19870264

Rank: Guru

If you set  a log file for the package ( open in design mode, rightclick on background > Package Properties > Logging ) you'll se the different accounts used in the two cases.
 
09.11.2007 at 10:49AM PDT, ID: 19870614

Rank: Master

The SQL Server agent uses different permissions than MS SQL Server. You have to change both of them to the same thing. Right click your Server name in Enterprise manager 2000 and select properties.
Then click on the security tab. In here the top portion is permissions for SQL Server and the bottom part is for the services. They have to be the same or same permission.

You can also go to >>Control Panel >> Administrative Tools>> Services

Under list of the services look for SQL Server (If using SQL 2005) in 2000 you should look for
SQLSERVERAGENT and MSSQLSERVER They both need to run under same account and permission. You can change them here

 
09.11.2007 at 11:04AM PDT, ID: 19870750
apirnia -- OKAY...the account (sched) is used to run both the SQLServer and SQLServer Agent Services.  However, I notice that this domain user (sched) does not have a SQL Server Login.  I know this is a stupid question, but does the user account that run the SQL Server Services need a SQL Server Login??  If so, what level of permissions should I request for it?
 
09.11.2007 at 11:09AM PDT, ID: 19870803

Rank: Guru

Your domain user sched does not need to have a SQL Server login.  That account DOES need permission to the file system under C:\program files\ to gain access to any file there.

Earlier you indicated that you've made 10 other jobs that do things in the file system with no trouble.  Are any of them accessing files in the specific location as the failing executable?
 
09.11.2007 at 11:15AM PDT, ID: 19870852
The other jobs have accessed various folders on local c drive, but not specifically in the c:\program files directory.
 
09.11.2007 at 11:17AM PDT, ID: 19870875

Rank: Guru

Give that folder,c:\program files , (with all subf) acces to everyone an will work.
 
09.11.2007 at 11:33AM PDT, ID: 19871018

Rank: Master

Usually what I do when I implement things like this I give the highest possible permission to the user or account untill I get the program to work. Once everything looks good and I know that it works I take away the permission ang change it to minimum requiered.

The user sched does need READ,WRITE,EXECUTE access to the folder but does not have to be in SQL Server security. If you are the administrator I would try changing the services to the Domain Admin to get things started and change from there, or try adding the sched user to the Domain Admin group.

The other thing that you have to make sure is the person/user that is creating the DTS package. The DTS is also need to be created by the user sched.

 
09.11.2007 at 11:45AM PDT, ID: 19871129
I made the c:\program files\tvpost director a domain share and granted everyone full control of it.  I still get the same error about the return code.
 
09.11.2007 at 12:29PM PDT, ID: 19871482

Rank: Guru

If you made it a share the user account will need folder permissions and share permissions.
 
09.11.2007 at 12:32PM PDT, ID: 19871518

Rank: Guru

one more thing, the c:\program files\tvpost folder has to be ON the server that runs the package.
 
 
20080236-EE-VQP-29 / EE_QW_1_20070628