Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Are Innerjoins Updatable??

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I am using VB as a front end to SQL server...if I pull up a recordset using and Inner Join statement, are inner joins updatable??

Thanks
 
The answer to your question is a firm yes and no! Yes, you can use a join in an update to define which records to update. No you cannot update both tables at the same time. Updates also depend on constraints on the tables and often have to be done in a specific order due to the realtionships between the tables.
While you can't write one update statement, you can put both update statement si n one stored procedure or trigger.
 
I think dvannoy means using an inner join within a view to create a dynaset. These are not necessarily updateable... It depends on the join and on the particular field. Look it up Books Online. Let's just say SQL Server is much more restrictive than Microsoft Jet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top