![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have created a task that executes a simple query: select count(*) from ifsmessages Within this task I have created an output parameter called gMsgCount with a data type of int. I have given it a parameter type of Row Value. Next I created an ActiveX object with VBScript language. Eventually I want to create a DTS package that allows the user to execute or not execute the package depending on the value returned in gMsgCount using a YES/NO message box. To test the running of the task and the output value I have written the following: Function Main() msgbox "The number of records in table IFSMessages is: " & DTSGlobalVariables("gMsgCount").Value, VBYesNo, "IFSMessages Count" End Function When I execute the ActiveX object step I get a VBScript error saying "Variable uses an automation type not supported in VBScript." What am I missing? -- Message posted via http://www.sqlmonster.com |
#3
| |||
| |||
|
|
I have created a task that executes a simple query: select count(*) from ifsmessages Within this task I have created an output parameter called gMsgCount with a data type of int. I have given it a parameter type of Row Value. Next I created an ActiveX object with VBScript language. Eventually I want to create a DTS package that allows the user to execute or not execute the package depending on the value returned in gMsgCount using a YES/NO message box. To test the running of the task and the output value I have written the following: Function Main() msgbox "The number of records in table IFSMessages is: " & DTSGlobalVariables("gMsgCount").Value, VBYesNo, "IFSMessages Count" End Function When I execute the ActiveX object step I get a VBScript error saying "Variable uses an automation type not supported in VBScript." What am I missing? -- Message posted via http://www.sqlmonster.com |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |