Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Problem running DTS package from classic asp page

Problem running DTS package from classic asp page

Problem running DTS package from classic asp page

I'm trying to run a DTS script that copies tables to from a dev server up to a live server.  The DTS script works fine with a right click and execute.

I've been using these two pages as examples.


My code is attached - i've tried varying the usernames and passwords and the permissions within the SQL and the asp for the usernames i try and it doesn't seem to be falling over there - instead i'm getting a package failed sort of error on the first task - with a "copy SQL server objects" failure.

I've tried taking all the stuff out of the DTS package so it doesn't copy anything and i still get the same error.

2nd day now and i'm going to start hitting my head on the desk soon....



    Option Explicit

    Dim oDTS
    Dim vErrorMessage
    Dim vCount
    Dim vServer
    Dim vUser
    Dim vPassword
    Dim vPackage
    vPackage = "HARE_IRELAND2"
    vServer = "ESSS01"
    vUser = "DTSLauncher"
    vPassword = "r0cket$"

    Set oDTS = Server.CreateObject("DTS.Package")
    oDTS.LoadFromSQLServer vServer, vUser, vPassword, 0, "", "", "", vPackage
    For vCount = 1 To oDTS.Steps.Count

        'If oDTS.Steps(vCount).ExecutionResult = 1 Then
            vErrorMessage = vErrorMessage + "<p>Step " & vCount & " : " & oDTS.Steps(vCount).Name + " failed. " + chr(13)
        'End If

    If vErrorMessage = "" Then
        Response.Write "Success"
        Response.Write vErrorMessage
    End If

    Response.Write "<p>ASP Error : " & Err.Description

    Set oDTS = Nothing

RE: Problem running DTS package from classic asp page

Does the login you are using have the appropriate permissions to copy the objects in question?

----signature below----
I'm pushing an elephant up the stairs

My Crummy Web Page

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close