sqlDataSource and parameters

  • Thread starter Thread starter Tomas
  • Start date Start date
T

Tomas

Hello,

I use sqlDataSource and SelectQuery property to retriev data from access
database.
There is some problems with SelectQuery and Parameters.

I have sql below in sqlDataSource.SelectQuery and parameter as Name = ?
Value = title
Every time I start application I get error "SQL parsing error - Invalid
expression ? found in SELECT SQL statement at line 3"

Can someone point me what is wrong?


Select item.*, category.title as CategoryTitle, category.code as
CategoryCode
from item Join category On item.categoryid=category.id
Order By ?



regards,
Tomas
 
Back
Top