Re: 'Parameters' question

anonymous_at_discussions.microsoft.com
Date: 02/23/04


Date: Sun, 22 Feb 2004 20:25:56 -0800

This parm value for ptransid appears to be created/set
from a Form ...

>-----Original Message-----
>What value do you want the param to have?
>
>--
>Ray Higdon MCSE, MCDBA, CCNA
>---
><anonymous@discussions.microsoft.com> wrote in message
>news:149cb01c3f9bd$f6082550$a001280a@phx.gbl...
>> Also... I changed the query to the following. Query
>> Analyzer parsed it ok..but the execute gave an error of
>> 'invalid column name ptransid' on line 4
>>
>> DECLARE @pTransId nvarchar(50)
>> SET @ptransid = ptransid
>> DELETE FROM tblApTransInvoiceTax
>> WHERE tblApTransInvoiceTax.TransId= @pTransid;
>> >-----Original Message-----
>> >Hi...This is another problem that is eluding me.
>> >Suggestions on how this should be coded in Sql 2000?
I
>> >receive 'incorrect syntax' for 'text' on line 1
>> >and 'tblApTransInvoiceTax' on line 4.
>> >
>> >PARAMETERS pTransId Text ( 255 );
>> >DELETE DISTINCTROW tblApTransInvoiceTax.*,
>> >tblApTransInvoiceTax.TransId
>> >FROM tblApTransInvoiceTax
>> >WHERE (((tblApTransInvoiceTax.TransId)=[pTransId]));
>> >
>> >This is new to me...learning as I go !
>> >
>> >Thanks for the help.
>> >.
>> >
>
>
>.
>



Relevant Pages

  • Re: SQL Injectors
    ... >That top link by nexgenss is pretty comprehensive. ... >Ray Higdon MCSE, MCDBA, CCNA ...
    (microsoft.public.sqlserver.security)
  • Tables security
    ... Ray Higdon MCSE, MCDBA, CCNA ... (if use Sql Server enterprise manager can not ...
    (microsoft.public.sqlserver.security)
  • Re: Books for SQL Analysis Server
    ... "Ray Higdon" wrote in message ... >> Ray Higdon MCSE, MCDBA, CCNA ...
    (microsoft.public.sqlserver.olap)
  • Re: Line Numbers in SQL
    ... > Ray Higdon MCSE, MCDBA, CCNA ...
    (microsoft.public.sqlserver.datawarehouse)
  • Re: Over-Protected
    ... Ask your network or DBA's to restore a backup for you. ... Ray Higdon MCSE, MCDBA, CCNA ...
    (microsoft.public.sqlserver.security)