help! how to creat sqldataadapter?

S

sunny

when I use creat the sqldataadapter (database is northwind),I enter:

SELECT OrderID, ProductID, UnitPrice, Quantity, Discount
FROM [Order Details]
WHERE (OrderID IN
(SELECT orderid
FROM orders
WHERE customerid = @customerid))

and I click NEXT,I get:

generated SELECT statment.
must declare the variable '@customerid'


why??????anybody can help me?


Thank you a huge lot in advance.


sunny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top