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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 CURSOR w\multiple tables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Chris_Kelley
Posting Yak Master

114 Posts

Posted - 08/22/2014 :  09:04:14  Show Profile  Reply with Quote
c

Edited by - Chris_Kelley on 11/11/2014 19:31:55

Chris_Kelley
Posting Yak Master

114 Posts

Posted - 08/22/2014 :  09:10:02  Show Profile  Reply with Quote
c

Edited by - Chris_Kelley on 11/11/2014 19:32:04
Go to Top of Page

Chris_Kelley
Posting Yak Master

114 Posts

Posted - 08/22/2014 :  09:34:36  Show Profile  Reply with Quote
c

Edited by - Chris_Kelley on 11/11/2014 19:32:12
Go to Top of Page

gbritton
Flowing Fount of Yak Knowledge

1445 Posts

Posted - 08/22/2014 :  09:50:42  Show Profile  Reply with Quote
I cannot see why you are using a cursor at all. I don't believe it is needed for this problem. (In fact, I don't believe a cursor is ever needed. I'm still looking for a problem that cannot be solved with set-based logic.)

What is proc_TOSS_NOTE doing?
Go to Top of Page

Chris_Kelley
Posting Yak Master

114 Posts

Posted - 08/23/2014 :  17:28:27  Show Profile  Reply with Quote
c

Edited by - Chris_Kelley on 11/11/2014 19:32:19
Go to Top of Page

gbritton
Flowing Fount of Yak Knowledge

1445 Posts

Posted - 08/24/2014 :  08:52:23  Show Profile  Reply with Quote
Cursors should be avoided at all costs. If the toss_note process just does an insert, I'd pull the logic into your new proc which can be entirely set based.
Go to Top of Page

gbritton
Flowing Fount of Yak Knowledge

1445 Posts

Posted - 08/24/2014 :  08:52:29  Show Profile  Reply with Quote
Cursors should be avoided at all costs. If the toss_note process just does an insert, I'd pull the logic into your new proc which can be entirely set based.
Go to Top of Page

gbritton
Flowing Fount of Yak Knowledge

1445 Posts

Posted - 08/24/2014 :  08:52:30  Show Profile  Reply with Quote
Cursors should be avoided at all costs. If the toss_note process just does an insert, I'd pull the logic into your new proc which can be entirely set based.
Go to Top of Page

Chris_Kelley
Posting Yak Master

114 Posts

Posted - 08/24/2014 :  21:34:32  Show Profile  Reply with Quote
c

Edited by - Chris_Kelley on 11/11/2014 19:32:28
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.05 seconds. Powered By: Snitz Forums 2000