Hi,
Just wanted to know is there any way we can run the stored procedures sitting on MS SQL server 2000 on Datastage. Any suggestions are most welcome.
Thanks in advance.
Running Stored Procudures from MSSQL server in DataStage
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
Yes! Use the ODBC stage to run SQL Server stored procedures. This has been covered many a time. Search the forum for more info.
Whale.
Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Hi Dsgurus,DSguru2B wrote:Even the before/after sql tab in the DRS stage.
You had mentioned we can run the stored procedures in Before/After SQL tab in DRS stage, I had tried this but i am getting an error message. And the SQL i had used is 'EXECUTE sp_name'. So could you please let me know exact SQL for calling the stored procedure in the before/after SQL tab that would be great. Iam fairly new to this running the stored procedures so any help is much appreciated. My stored procedure doesn't return any values it just updates the columns that are there is the table.
Thanks in advance
What error message are you getting.
Also try
Also try
Code: Select all
call <schemaname>.storedProcName()
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.