Running Stored Procudures from MSSQL server in DataStage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
samu
Charter Member
Charter Member
Posts: 16
Joined: Wed Aug 24, 2005 2:50 pm

Running Stored Procudures from MSSQL server in DataStage

Post by samu »

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.
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

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.
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
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Even the before/after sql tab in the DRS stage.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
samu
Charter Member
Charter Member
Posts: 16
Joined: Wed Aug 24, 2005 2:50 pm

Post by samu »

DSguru2B wrote:Even the before/after sql tab in the DRS stage.
Hi Dsgurus,

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
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

What error message are you getting.
Also try

Code: Select all

call <schemaname>.storedProcName()
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply