Incorrect syntax error

I'm getting the following error
Line 1: Incorrect syntax near 'nvarchar'.
Must declare the variable '@ID'.

I ran a trace and the statement is being passed to SQL Server with the parameters, but it is not updating.
Using VB.Net, Asp 2.0, SQL Server 2000.
To me the code seems identical to other forms where it is working fine.

This code:

           UpdateCommand="update [Leads] set  brief_description=@brief_description, value=@value, [status]= @status, decision_date=@decision_date, probability=@probability where id=@id">
                <asp:Parameter Name="Customer_Name" Type="String" />
                <asp:Parameter Name="decision_Date" type="datetime"/>
                <asp:Parameter Name="probability" type="string"/>
                <asp:Parameter Name="brief_description" Type="String" />
                <asp:Parameter Name="value" Type="Decimal" />
                <asp:Parameter Name="status" Type="String" />
                <asp:Parameter Name="ID"  />
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try this

 <asp:Parameter Name="ID"  Type = "NVarChar" />
PatrickSweeneyAuthor Commented:
nvarchar is not a valid type in
I tried specifyign it as decimal type but that did not fix it.
PatrickSweeneyAuthor Commented:
I experimented by removing the clause "where id=@id"
It returned the incorrect syntax error again anyway
PatrickSweeneyAuthor Commented:
Bizarre error. It still occurs if I reduce the update statement to just
update leads set probability ='50%'.
Must be a problem at the application level - so this post should be on ASP.NET forum I suppose.
Anthony PerkinsCommented:
>>so this post should be on ASP.NET forum I suppose. <<
I would have to agree with you, especially as there is no sign of 'nvarchar' in the code you posted.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.