I have a dropdown listbox whose SQLDataSource connects to an Oracle database from a SQL Server 2005. Based on the department selection, the query should display all the employees in the selected department. However, it only list a null value. The SQL @parameter is not recognized by Oracle but the equivalent search criteria is:
Select * from department
Where department_name LIKE :department_name.
Any help would be greatly appreciated.
ASP.NE - Selecting an item from a dropdown listbox control
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Oct 4, 2009, 5:29 AM EDT
Oracle don't use @prameter
it uses
¶meter
so your query would like below now
Select * from department Where department_name LIKE '&dep_name';