Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Do While Loop
 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

6065 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  
 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.02 seconds. Powered By: Snitz Forums 2000