I need to delete some rows in some of my tables after tranfering data from my OLTP to SQL database.
Im using SQL 2000
I have tried with the following:
Delete from fsalesinvoiceline
Join dsalesinvoiceheader on
Fsalesinvoiceline.salesid= dsalesinvoiceheader.salesid and
Fsalesinvoiceline.company= dsalesinvoiceheader.company
Where dsalesinvoiceheader.billtocustomerno=¡¯INDTAST DEBITORNUMMER¡¯
Go
Delete from dsalesinvoiceheader
Where dsalesinvoiceheader.billtocustomerno=¡¯INDTAST DEBITORNUMMER¡¯
I get the following error message:
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'JOIN'
What am I doing wrong
/Soren D. Jensen