- Joined
- 31 Dec 2003
- Posts
- 5,172
- Location
- Barrow-In-Furness
Building some queries for my ASP.NET 2.0 Dataset.
I'm new to this all but one of the queries is giving me an error, i'm learning from a tutorial on the ASP.net website so i'm stuck really.
"Error in WHERE clause near '@'. Unable to parse query text.
Any help is appreciated, thanks
I'm new to this all but one of the queries is giving me an error, i'm learning from a tutorial on the ASP.net website so i'm stuck really.
Code:
SELECT ProductID, ProductName, SupplierID, CategoryID, QuantityPerUnit, UnitPrice, UnitsInStock, UnitsOnOrder, ReorderLevel, Discontinued
FROM Products
WHERE CategoryID = @CategoryID
"Error in WHERE clause near '@'. Unable to parse query text.
Any help is appreciated, thanks



I've got a niggly little problem I cannot bloody figure it out. I have a pass-through SQL query in Access which grabs data from our Oracle DB but when I try using the pass-through query in ASP.NET for some reason it will not show the primary key (StudentID) so if getting three fields StudentID, Firstname, Surname. It will not show the StudentID and I don't know why. I have feeling it's something to do with casting the type from Oracle. 