Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you call a Stored Procedure from within a DTS Package?

Status
Not open for further replies.

uncleroydee

Technical User
Nov 28, 2000
79
US
How does one call a stored procedure to insert a value into the data being imported by a DTS package?

The DTS package imports user information from an Excel spreadsheet. The spreadsheet contains a column, but no values, for the password. I have a SP to create random passwords and would like to run that SP as the DTS package executes.

Here's the DTS Transformation that I tried (it failed):

Function Main()
DTSDestination("username") = DTSSource("User Name-Note1")
DTSDestination("password") = (EXEC random_password @Password_type = 'complex')

Thanks,

Roy
 
Have you tried putting the owner's name (eg 'dbo', 'username') in front of the stored procedure?

EXEC dbo.random_password
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top