![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm executing DTS from asp with this code and hard coded user pwd in asp file it works just fine Dim objPkg, strError, iCount Set objPkg = Server.CreateObject("DTS.Package") const DTSSQLStgFlag_UseTrustedConnection = 256 objPkg.LoadFromSQLServer "server", "", "",DTSSQLStgFlag_UseTrustedConnection,"blablab la-user-pwd","","","dts_package" objPkg.Execute() but when i use globalvariables, package executes but returns error, that i need owner passwords, Set objPkg = Server.CreateObject("DTS.Package") objPkg.LoadFromSQLServer "server", "", "",DTSSQLStgFlag_UseTrustedConnection,"blablab la-user-pwd","","","dts_package" objPkg.GlobalVariables("code").Value = Code objPkg.Execute() Set objPkg = Nothing in enterprise manager, dts with global variable runs without problem with user passwords i realy don't want to code owners password in asp file, because it runs as "sa" is there solution for this? |
#3
| |||
| |||
|
|
The owner password is not the sa password. The owner password is a password that allows you to change and edit the package. A User password allows you to run the package and not edit it. It has nothing to do with SQL Server logins. -- Allan Mitchell www.SQLDTS.com www.SQLIS.com www.Konesans.com "Muson" <muson (AT) muson (DOT) lt> wrote in message news:ufvVxzRaGHA.596 (AT) TK2MSFTNGP05 (DOT) phx.gbl... I'm executing DTS from asp with this code and hard coded user pwd in asp file it works just fine Dim objPkg, strError, iCount Set objPkg = Server.CreateObject("DTS.Package") const DTSSQLStgFlag_UseTrustedConnection = 256 objPkg.LoadFromSQLServer "server", "", "",DTSSQLStgFlag_UseTrustedConnection,"blablab la-user-pwd","","","dts_package" objPkg.Execute() but when i use globalvariables, package executes but returns error, that i need owner passwords, Set objPkg = Server.CreateObject("DTS.Package") objPkg.LoadFromSQLServer "server", "", "",DTSSQLStgFlag_UseTrustedConnection,"blablab la-user-pwd","","","dts_package" objPkg.GlobalVariables("code").Value = Code objPkg.Execute() Set objPkg = Nothing in enterprise manager, dts with global variable runs without problem with user passwords i realy don't want to code owners password in asp file, because it runs as "sa" is there solution for this? |
![]() |
| Thread Tools | |
| Display Modes | |
| |