![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a completed DTS package in my SQL server. The examples talk about creating and executing a DTS from VB, but no connection information is ever provided. I just want to execute the already existing package, not create another. I would REALLY like to execute the package, that's already in my SQL server, from an ASP. Does anyone have an example / documentation on how to simply execute an already existing DTS from VB or an ASP? -- bnhcomputing |
#3
| |||
| |||
|
|
Have a look here Execution (http://www.sqldts.com/default.aspx?104) Allan "bnhcomputing" <bnhcomputing (AT) discussions (DOT) microsoft.com> wrote in message news:E94123C4-3880-4EC7-9221-DBE8B00368B3 (AT) microsoft (DOT) com: I have a completed DTS package in my SQL server. The examples talk about creating and executing a DTS from VB, but no connection information is ever provided. I just want to execute the already existing package, not create another. I would REALLY like to execute the package, that's already in my SQL server, from an ASP. Does anyone have an example / documentation on how to simply execute an already existing DTS from VB or an ASP? -- bnhcomputing |
#4
| |||
| |||
|
|
Good news, I am able to execute the DTS package from the ASP. The BAD NEWS, none of the datapump tasks complete. The little loop that returns the error codes, says evert datapump task failed, AND they are NOT executed in the order of the work flow. The only thing that seems to execute is the active-x components in the DTS. None of the Datapumps, and none of the ExecuteSQL task work either. If I run the package from the server via enterprise manager, it runs. Any suggestions -- bnhcomputing "Allan Mitchell" wrote: Have a look here Execution (http://www.sqldts.com/default.aspx?104) Allan "bnhcomputing" <bnhcomputing (AT) discussions (DOT) microsoft.com> wrote in message news:E94123C4-3880-4EC7-9221-DBE8B00368B3 (AT) microsoft (DOT) com: I have a completed DTS package in my SQL server. The examples talk about creating and executing a DTS from VB, but no connection information is ever provided. I just want to execute the already existing package, not create another. I would REALLY like to execute the package, that's already in my SQL server, from an ASP. Does anyone have an example / documentation on how to simply execute an already existing DTS from VB or an ASP? -- bnhcomputing |
#5
| |||
| |||
|
|
This is most probably a permissions thing. Have a look here Execute a package from Active Server Pages (ASP) (http://www.sqldts.com/default.aspx?207) Allan "bnhcomputing" <bnhcomputing (AT) discussions (DOT) microsoft.com> wrote in message news:C63384EA-9D03-4257-BA66-39FE0AD0F9F6 (AT) microsoft (DOT) com: Good news, I am able to execute the DTS package from the ASP. The BAD NEWS, none of the datapump tasks complete. The little loop that returns the error codes, says evert datapump task failed, AND they are NOT executed in the order of the work flow. The only thing that seems to execute is the active-x components in the DTS. None of the Datapumps, and none of the ExecuteSQL task work either. If I run the package from the server via enterprise manager, it runs. Any suggestions -- bnhcomputing "Allan Mitchell" wrote: Have a look here Execution (http://www.sqldts.com/default.aspx?104) Allan "bnhcomputing" <bnhcomputing (AT) discussions (DOT) microsoft.com> wrote in message news:E94123C4-3880-4EC7-9221-DBE8B00368B3 (AT) microsoft (DOT) com: I have a completed DTS package in my SQL server. The examples talk about creating and executing a DTS from VB, but no connection information is ever provided. I just want to execute the already existing package, not create another. I would REALLY like to execute the package, that's already in my SQL server, from an ASP. Does anyone have an example / documentation on how to simply execute an already existing DTS from VB or an ASP? -- bnhcomputing |
#6
| |||
| |||
|
|
Allan: Thanks for the input and help thus far. I know I'm close, I just can't seem to get over this last bump in the road. This link leads to the same place as the one you sent before. Yes, I have seen that sample. That is exactly what I implemented. It can do the Active-X components of the DTS, but not the DataPump or Execute SQL, and this is a security isse? It would seem to me, that executing Ative-X should have more security not less. Anyway, the article doesn't layout, at least for a simpleton like me, what the problem is. I used the sample code in the link, and it informed me that: 1. The DataPump steps fail. 2. The Execute SQL steps fail. 3. There is no additional information other than the fail message to tell me why. 4. The DTS Package executes properly via Enterprise Manager on the Work Station. 5. The DTS Package executes properly via Enterprise Manager on the Server. I'm using sa as my user, and have supplied the correct password. What possible security issue could it be? still very confused..... ------------ bnhcomputing "Allan Mitchell" wrote: This is most probably a permissions thing. Have a look here Execute a package from Active Server Pages (ASP) (http://www.sqldts.com/default.aspx?207) Allan "bnhcomputing" <bnhcomputing (AT) discussions (DOT) microsoft.com> wrote in message news:C63384EA-9D03-4257-BA66-39FE0AD0F9F6 (AT) microsoft (DOT) com: Good news, I am able to execute the DTS package from the ASP. The BAD NEWS, none of the datapump tasks complete. The little loop that returns the error codes, says evert datapump task failed, AND they are NOT executed in the order of the work flow. The only thing that seems to execute is the active-x components in the DTS. None of the Datapumps, and none of the ExecuteSQL task work either. If I run the package from the server via enterprise manager, it runs. Any suggestions -- bnhcomputing "Allan Mitchell" wrote: Have a look here Execution (http://www.sqldts.com/default.aspx?104) Allan "bnhcomputing" <bnhcomputing (AT) discussions (DOT) microsoft.com> wrote in message news:E94123C4-3880-4EC7-9221-DBE8B00368B3 (AT) microsoft (DOT) com: I have a completed DTS package in my SQL server. The examples talk about creating and executing a DTS from VB, but no connection information is ever provided. I just want to execute the already existing package, not create another. I would REALLY like to execute the package, that's already in my SQL server, from an ASP. Does anyone have an example / documentation on how to simply execute an already existing DTS from VB or an ASP? -- bnhcomputing |
#7
| |||
| |||
|
|
I have a completed DTS package in my SQL server. The examples talk about creating and executing a DTS from VB, but no connection information is ever provided. I just want to execute the already existing package, not create another. I would REALLY like to execute the package, that’s already in my SQL server, from an ASP. Does anyone have an example / documentation on how to simply execute an already existing DTS from VB or an ASP? -- bnhcomputing |
#8
| |||
| |||
|
|
An Active Script task does not in general connect to anything right? This is where the issue more than likely is. What is the error? Have the package log the execution "bnhcomputing" <bnhcomputing (AT) discussions (DOT) microsoft.com> wrote in message news:57A9CF64-623B-48CD-A8A5-8D10E978B436 (AT) microsoft (DOT) com: Allan: Thanks for the input and help thus far. I know I'm close, I just can't seem to get over this last bump in the road. This link leads to the same place as the one you sent before. Yes, I have seen that sample. That is exactly what I implemented. It can do the Active-X components of the DTS, but not the DataPump or Execute SQL, and this is a security isse? It would seem to me, that executing Ative-X should have more security not less. Anyway, the article doesn't layout, at least for a simpleton like me, what the problem is. I used the sample code in the link, and it informed me that: 1. The DataPump steps fail. 2. The Execute SQL steps fail. 3. There is no additional information other than the fail message to tell me why. 4. The DTS Package executes properly via Enterprise Manager on the Work Station. 5. The DTS Package executes properly via Enterprise Manager on the Server. I'm using sa as my user, and have supplied the correct password. What possible security issue could it be? still very confused..... ------------ bnhcomputing "Allan Mitchell" wrote: This is most probably a permissions thing. Have a look here Execute a package from Active Server Pages (ASP) (http://www.sqldts.com/default.aspx?207) Allan "bnhcomputing" <bnhcomputing (AT) discussions (DOT) microsoft.com> wrote in message news:C63384EA-9D03-4257-BA66-39FE0AD0F9F6 (AT) microsoft (DOT) com: Good news, I am able to execute the DTS package from the ASP. The BAD NEWS, none of the datapump tasks complete. The little loop that returns the error codes, says evert datapump task failed, AND they are NOT executed in the order of the work flow. The only thing that seems to execute is the active-x components in the DTS. None of the Datapumps, and none of the ExecuteSQL task work either. If I run the package from the server via enterprise manager, it runs. Any suggestions -- bnhcomputing "Allan Mitchell" wrote: Have a look here Execution (http://www.sqldts.com/default.aspx?104) Allan "bnhcomputing" <bnhcomputing (AT) discussions (DOT) microsoft.com> wrote in message news:E94123C4-3880-4EC7-9221-DBE8B00368B3 (AT) microsoft (DOT) com: I have a completed DTS package in my SQL server. The examples talk about creating and executing a DTS from VB, but no connection information is ever provided. I just want to execute the already existing package, not create another. I would REALLY like to execute the package, that's already in my SQL server, from an ASP. Does anyone have an example / documentation on how to simply execute an already existing DTS from VB or an ASP? -- bnhcomputing |
#9
| |||
| |||
|
|
Allan: You are right, it's a security issue. One that I don't know how to resolve. ---- Code ---- Set oPkg = Server.CreateObject("DTS.Package") oPkg.LoadFromSQLServer sServer, sUID, sPWD, iSecurity , sPkgPWD, "", "", sPkgName ' Execute the Package oPkg.Execute ---- Emd/Code ---- sUID is set to "sa", and I am using the proper sa password. The log however, reports a different user. It appears to use the UID I supply to load the package, but then use the connected/generic/internet user to execute the package. Granting additional rights to the connected/generic/internet USER is a security issue. So how do I get it to "Execute" the package with the SA username/password I am suppling? -- bnhcomputing "Allan Mitchell" wrote: An Active Script task does not in general connect to anything right? This is where the issue more than likely is. What is the error? Have the package log the execution "bnhcomputing" <bnhcomputing (AT) discussions (DOT) microsoft.com> wrote in message news:57A9CF64-623B-48CD-A8A5-8D10E978B436 (AT) microsoft (DOT) com: Allan: Thanks for the input and help thus far. I know I'm close, I just can't seem to get over this last bump in the road. This link leads to the same place as the one you sent before. Yes, I have seen that sample. That is exactly what I implemented. It can do the Active-X components of the DTS, but not the DataPump or Execute SQL, and this is a security isse? It would seem to me, that executing Ative-X should have more security not less. Anyway, the article doesn't layout, at least for a simpleton like me, what the problem is. I used the sample code in the link, and it informed me that: 1. The DataPump steps fail. 2. The Execute SQL steps fail. 3. There is no additional information other than the fail message to tell me why. 4. The DTS Package executes properly via Enterprise Manager on the Work Station. 5. The DTS Package executes properly via Enterprise Manager on the Server. I'm using sa as my user, and have supplied the correct password. What possible security issue could it be? still very confused..... ------------ bnhcomputing "Allan Mitchell" wrote: This is most probably a permissions thing. Have a look here Execute a package from Active Server Pages (ASP) (http://www.sqldts.com/default.aspx?207) Allan "bnhcomputing" <bnhcomputing (AT) discussions (DOT) microsoft.com> wrote in message news:C63384EA-9D03-4257-BA66-39FE0AD0F9F6 (AT) microsoft (DOT) com: Good news, I am able to execute the DTS package from the ASP. The BAD NEWS, none of the datapump tasks complete. The little loop that returns the error codes, says evert datapump task failed, AND they are NOT executed in the order of the work flow. The only thing that seems to execute is the active-x components in the DTS. None of the Datapumps, and none of the ExecuteSQL task work either. If I run the package from the server via enterprise manager, it runs. Any suggestions -- bnhcomputing "Allan Mitchell" wrote: Have a look here Execution (http://www.sqldts.com/default.aspx?104) Allan "bnhcomputing" <bnhcomputing (AT) discussions (DOT) microsoft.com> wrote in message news:E94123C4-3880-4EC7-9221-DBE8B00368B3 (AT) microsoft (DOT) com: I have a completed DTS package in my SQL server. The examples talk about creating and executing a DTS from VB, but no connection information is ever provided. I just want to execute the already existing package, not create another. I would REALLY like to execute the package, that's already in my SQL server, from an ASP. Does anyone have an example / documentation on how to simply execute an already existing DTS from VB or an ASP? -- bnhcomputing |
#10
| |||
| |||
|
|
If you are using asp/iis. Assuming you are using anonymous access, you already have these two accounts set up: IWAM_<machine name>, IUSR_<machine name These two accounts need to have permission to your SQL server database. David "bnhcomputing" wrote: I have a completed DTS package in my SQL server. The examples talk about creating and executing a DTS from VB, but no connection information is ever provided. I just want to execute the already existing package, not create another. I would REALLY like to execute the package, that’s already in my SQL server, from an ASP. Does anyone have an example / documentation on how to simply execute an already existing DTS from VB or an ASP? -- bnhcomputing |
![]() |
| Thread Tools | |
| Display Modes | |
| |