![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
-----Original Message----- I need to execute a stored procedure from an activeXscript and I'm not sure about the syntax. Thanks in advance for your help. Here is my code - Function Main() Dim objFSO, strFullNm Set objFSO = CreateObject ("Scripting.FileSystemObject") strFullNm = DTSGlobalVariables("gvFilePathRoot").Value &_ "\ebtr_bldg_prop.txt" If objFSO.FileExists (strFullNm) Then -- here is the SP that I need to exec exec master.dbo.xp_cmdshell 'dtsrun /SMyServer /Ujohn /Pjohn123 /Nmy_dts_pkg /Metl123' MsgBox "The File Exists" Else MsgBox "You still need to create the file" End If Set objFSO = nothing Main = DTSTaskExecResult_Success End Function . |
#3
| |||
| |||
|
|
I need to execute a stored procedure from an activeXscript and I'm not sure about the syntax. Thanks in advance for your help. Here is my code - Function Main() Dim objFSO, strFullNm Set objFSO = CreateObject ("Scripting.FileSystemObject") strFullNm = DTSGlobalVariables("gvFilePathRoot").Value &_ "\ebtr_bldg_prop.txt" If objFSO.FileExists (strFullNm) Then -- here is the SP that I need to exec exec master.dbo.xp_cmdshell 'dtsrun /SMyServer /Ujohn /Pjohn123 /Nmy_dts_pkg /Metl123' MsgBox "The File Exists" Else MsgBox "You still need to create the file" End If Set objFSO = nothing Main = DTSTaskExecResult_Success End Function |
#4
| |||
| |||
|
|
I need to execute a stored procedure from an activeXscript and I'm not sure about the syntax. Thanks in advance for your help. Here is my code - Function Main() Dim objFSO, strFullNm Set objFSO = CreateObject ("Scripting.FileSystemObject") strFullNm = DTSGlobalVariables("gvFilePathRoot").Value &_ "\ebtr_bldg_prop.txt" If objFSO.FileExists (strFullNm) Then -- here is the SP that I need to exec exec master.dbo.xp_cmdshell 'dtsrun /SMyServer /Ujohn /Pjohn123 /Nmy_dts_pkg /Metl123' MsgBox "The File Exists" Else MsgBox "You still need to create the file" End If Set objFSO = nothing Main = DTSTaskExecResult_Success End Function |
![]() |
| Thread Tools | |
| Display Modes | |
| |