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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which table gets updated when two tables have same name, diff. user?

Status
Not open for further replies.

jsteph

Technical User
Oct 24, 2002
2,562
US
This is a somewhat academic question. In sql-2000, I have a database, and two tables with same name but different owners.

Lets say it's user A and user B. There is a stored procedure owned by user A, and lets say it says "Update table1 set field = 'x';"

Will it update the A.table1 or B.table1?

I'm assuming A, but am not 100 sure...
Thanks,
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top