I am trying to set a filter on a remote view in the data remote view designer to get a dataset back.
When I call:
cSearchStr = "BANK"
SELECT DISTINCT Sdn.ent_num, Sdn.SDN_Name, Sdn.SDN_Type, Sdn.Program,;
Sdn.Title, Sdn.Call_Sign, Sdn.Vess_type, Sdn.Tonnage, Sdn.GRT, Sdn.Vess_flag,;
Sdn.Vess_owner, Sdn.remarks;
FROM ;
dbo.SDN Sdn;
WHERE Sdn.SDN_Name LIKE ( ?'%'+cSearchStr+'%' );
ORDER BY Sdn.SDN_Name
I have tried "IN" forward and backwards.
I want it to return records that have in the name "CUBA BANK", "BANK OF IRAN" and so on but I am only getting records that are an exact match. When I set the search string to BANK it returns nothing. I can do a stored procedure in SQL 2008 that has:
SELECT * FROM sdn WHERE sdn_name like '%' + @sdn_name + '%' order by ent_num
and it returns the data set I want. Is there a way to make a remote view do the same?
When I call:
cSearchStr = "BANK"
SELECT DISTINCT Sdn.ent_num, Sdn.SDN_Name, Sdn.SDN_Type, Sdn.Program,;
Sdn.Title, Sdn.Call_Sign, Sdn.Vess_type, Sdn.Tonnage, Sdn.GRT, Sdn.Vess_flag,;
Sdn.Vess_owner, Sdn.remarks;
FROM ;
dbo.SDN Sdn;
WHERE Sdn.SDN_Name LIKE ( ?'%'+cSearchStr+'%' );
ORDER BY Sdn.SDN_Name
I have tried "IN" forward and backwards.
I want it to return records that have in the name "CUBA BANK", "BANK OF IRAN" and so on but I am only getting records that are an exact match. When I set the search string to BANK it returns nothing. I can do a stored procedure in SQL 2008 that has:
SELECT * FROM sdn WHERE sdn_name like '%' + @sdn_name + '%' order by ent_num
and it returns the data set I want. Is there a way to make a remote view do the same?