
February 10th, 2004, 11:11 AM
|
|
Registered User
|
|
Join Date: Feb 2004
Location: Oshawa
Posts: 8
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
help needed with syntax problem
Hi...I'm new to SQL and am trying to convert queries to SQL 8. I have the following Delete query that query Analyzer is giving syntax errors. I can't find any reference or help on the 'PARAMETERS' statement at all. Any help would be greatly appreciated!
Here's the query...
PARAMETERS pTransId Text ( 255 );
DELETE DISTINCTROW tblApTransInvoiceTax.*, tblApTransInvoiceTax.TransId
FROM tblApTransInvoiceTax
WHERE (((tblApTransInvoiceTax.TransId)=[pTransId]));
Here are the error msgs ...
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near 'Text'.
Server: Msg 170, Level 15, State 1, Line 4
Line 4: Incorrect syntax near 'tblApTransInvoiceTax'.
Thank you!
|