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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Joins

Author  Topic 

sinjin67
Yak Posting Veteran

53 Posts

Posted - 2008-12-30 : 23:25:25
I have put together various SP's and a question came to mind
reqarding joins. If in using an SP where a left join is being
used, Is the SP required to "break" the Join before commiting
to another non related process ?

Example would be you do an update where you have table A
and table B joined at the start of the SP, It looks at table
B and updates table A. Then moves on to deleting everything
in table B. Until at such time a user has added data in table
B and called the SP via a onClick event or button.

I only ask this because in Foxpro, "More so later version" you had
to at times break a join to isolate a single table for exclusive
use. I have been reading what I can find but nothing seems to
indicate one way or another...

Thank you....

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-12-31 : 00:21:24
There is no option in SQL Server to break a join. SQL Server handles modifying data via locks.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sinjin67
Yak Posting Veteran

53 Posts

Posted - 2008-12-31 : 01:30:25
Thank you for your feedback.. I will try for a more
exciting question next time around..
Go to Top of Page
   

- Advertisement -