SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Do While Loop
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

240 Posts

Posted - 09/05/2013 :  10:33:57  Show Profile  Reply with Quote
Hi All,

I have created one procedure with Emp_ID parameter. Now I have to
fetch Emp_Id from Emp_Master Table and execute this procedure.

I do not want to use Cursor is there anu other way to do this

Flowing Fount of Yak Knowledge

6062 Posts

Posted - 09/05/2013 :  10:38:23  Show Profile  Reply with Quote
Any other way to do what, exactly? Is it that you want to call this procedure once for every Emp_id in Emp_Master?
If so, then it's best to re-write the procedure to act on all employees as a set rather than on just a single employee.

Be One with the Optimizer
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000