Hi all,
I created an app that started off using Access as a backend. There are many places that I have updates to more than one table in a single statement. I am now trying to move to SQL Server 7.0, residing on a windows NT 4.0 machine. Everytime one of these statements is run SQL Server throws an exception..
Can you really only update one table in an UPDATE Statement?!?! I can't believe that Access would be able to and SQL Server not have this capability.. I'm stumped... confused.. and disappointed...
here's a small statement that wont even work:
UPDATE table1 as t1, table2 as t2
set t1.product= 'BaseBall', t2.SalesDept='Sports'
where t1.ID='2' and t1.ID= t2.Prod_ID
HELP PLEASE!
Thanks
-crow
I created an app that started off using Access as a backend. There are many places that I have updates to more than one table in a single statement. I am now trying to move to SQL Server 7.0, residing on a windows NT 4.0 machine. Everytime one of these statements is run SQL Server throws an exception..
Can you really only update one table in an UPDATE Statement?!?! I can't believe that Access would be able to and SQL Server not have this capability.. I'm stumped... confused.. and disappointed...
here's a small statement that wont even work:
UPDATE table1 as t1, table2 as t2
set t1.product= 'BaseBall', t2.SalesDept='Sports'
where t1.ID='2' and t1.ID= t2.Prod_ID
HELP PLEASE!
Thanks
-crow