![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have an app that runs selected DTS packages when a trigger file arrives. They need to define what DTS package to run by entering the encrypted command-line syntax, right now that is done by them running DTSRunUI.exe and copping the generated syntax and pasting it in my app. I would rather not make them do that because DTSRunUI.exe is not very intuitive for someone that does not know SQL Server. Is there a way to generate an encrypted command-line syntax using c#? Thanks Dan Reber |
#3
| |||
| |||
|
|
I have an app that runs selected DTS packages when a trigger file arrives. They need to define what DTS package to run by entering the encrypted command-line syntax, right now that is done by them running DTSRunUI.exe and copping the generated syntax and pasting it in my app. I would rather not make them do that because DTSRunUI.exe is not very intuitive for someone that does not know SQL Server. Is there a way to generate an encrypted command-line syntax using c#? Thanks Dan Reber |
#4
| |||
| |||
|
|
Hi As far as I know this is not possible; effectively you are asking for the key to the encryption algorithm. John "Daniel Reber" <dreber (AT) nospam (DOT) com> wrote in message news:uvUVnlVtFHA.2880 (AT) TK2MSFTNGP12 (DOT) phx.gbl... I have an app that runs selected DTS packages when a trigger file arrives. They need to define what DTS package to run by entering the encrypted command-line syntax, right now that is done by them running DTSRunUI.exe and copping the generated syntax and pasting it in my app. I would rather not make them do that because DTSRunUI.exe is not very intuitive for someone that does not know SQL Server. Is there a way to generate an encrypted command-line syntax using c#? Thanks Dan Reber |
#5
| |||
| |||
|
|
Do you *need the ecryption, do the packages have passwords or are the package names sensative ? "Daniel Reber" <dreber (AT) nospam (DOT) com> wrote in message news:uvUVnlVtFHA.2880 (AT) TK2MSFTNGP12 (DOT) phx.gbl... I have an app that runs selected DTS packages when a trigger file arrives. They need to define what DTS package to run by entering the encrypted command-line syntax, right now that is done by them running DTSRunUI.exe and copping the generated syntax and pasting it in my app. I would rather not make them do that because DTSRunUI.exe is not very intuitive for someone that does not know SQL Server. Is there a way to generate an encrypted command-line syntax using c#? Thanks Dan Reber |
#6
| |||
| |||
|
|
I have an app that runs selected DTS packages when a trigger file arrives. They need to define what DTS package to run by entering the encrypted command-line syntax, right now that is done by them running DTSRunUI.exe and copping the generated syntax and pasting it in my app. I would rather not make them do that because DTSRunUI.exe is not very intuitive for someone that does not know SQL Server. Is there a way to generate an encrypted command-line syntax using c#? Thanks Dan Reber |
#7
| |||
| |||
|
|
Dan, Construct your dtsrun command line and add /!Y switch at the end. This will generate an encrypted command line without executing. This is the only way to get encryption going. We use this approach in conjunction with xp_cdmshell extended stored procedure so to not expose logins in files. You can still catch xp_cdmshell sql statement with the profiler, but one would need sa rights to do that. Keep in mind that there is a limit to the length of dos command line in general. The encrypted dtsrun command line is about three times longer and you may hit this limit when you have too many parameters. We did. The step to resolve this limitation would be keeping all parameters in a file, encrypted if necessary. Then you would need to supply only the file location. Ilya "Daniel Reber" <dreber (AT) nospam (DOT) com> wrote in message news:uvUVnlVtFHA.2880 (AT) TK2MSFTNGP12 (DOT) phx.gbl... I have an app that runs selected DTS packages when a trigger file arrives. They need to define what DTS package to run by entering the encrypted command-line syntax, right now that is done by them running DTSRunUI.exe and copping the generated syntax and pasting it in my app. I would rather not make them do that because DTSRunUI.exe is not very intuitive for someone that does not know SQL Server. Is there a way to generate an encrypted command-line syntax using c#? Thanks Dan Reber |
![]() |
| Thread Tools | |
| Display Modes | |
| |