rufus
Active member
I want to create a OleDbAdapter with commandtext as
Select title,titleid from titles where title LIKE @title+%
I want to get the title from the textbox, but If the build this query in the commandtext of the OleDbAdapter, it says error at @,
but I need this,if I type half word, then it should retirve all the titleid and title from the datasource. But Iam getting error in SQL statement at @.
can anyone know how to slove.
Select title,titleid from titles where title LIKE @title+%
I want to get the title from the textbox, but If the build this query in the commandtext of the OleDbAdapter, it says error at @,
but I need this,if I type half word, then it should retirve all the titleid and title from the datasource. But Iam getting error in SQL statement at @.
can anyone know how to slove.