![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am developing a Data Process Package where I would process data into a table using a stored procedure then export it using DTS. Could I execute the DTS package from a Stored Procedure? This way I would simplify the process for the operators. I needed to process tha data in a stored procedure so I could have the option to enter a date range. I know I could execute DTS using a batch file but this does not give me an option to prompt for a date range. Thanks, Noel V. Meneses Programmer Contra Costa County Health Plan 595 Center Ave. Martinez CA |
#3
| |||
| |||
|
|
I am developing a Data Process Package where I would process data into a table using a stored procedure then export it using DTS. Could I execute the DTS package from a Stored Procedure? This way I would simplify the process for the operators. I needed to process tha data in a stored procedure so I could have the option to enter a date range. I know I could execute DTS using a batch file but this does not give me an option to prompt for a date range. Thanks, Noel V. Meneses Programmer Contra Costa County Health Plan 595 Center Ave. Martinez CA |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi Tony, I have some questions about the code you sent me. --Create an instance of a DTS Package exec @rc = sp_OACreate 'DTS.Package', @pkg output Question: sp_OACreate - is this a stored procedure? If so I have no idea what the source code is like. Same questions for : sp_OAMethod, sp_OASetProperty & sp_OADestroy Thanks for your help, Sincereley Noel *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
My problem now is having the permission to execute these extended stored procedures. I searched in the Master database and it doesn't exist, maybe I even don't have the right to view it. On SQL Server Books Online it states that "Permissions: Only members of the sysadmin fixed server role can execute sp_OACreate". Do I really need to have a sysadmin fixed server role or is there any other way? Thanks, Noel |
![]() |
| Thread Tools | |
| Display Modes | |
| |