When adding a Query in a TableAdapter I can use the statement
SELECT ServicerNbr, Name, Email FROM Servicer WHERE (Name LIKE @Name + '%')
generated from Query Builder and click Execute Query and get the same results (rows) as when I right click on the query in the designer and click Preview Data. Although when I create another TableAdapter and create the Query
SELECT RequestId, Seq, Part, Description, Qty, Amount FROM SrvParts WHERE (Part LIKE @Part + '%')
the results are OK when viewed from Query Builder and click Execute Query. When the query is right clicked on in the designer under the TableAdapter and I click Preview Data I get no records selected unless I key in an entire part number that matches a record in the database. No partial (or LIKE) matches are found with Preview Data but are found with Execute Query.
Any clue why results for same query would differ from Execute to Preview. Also got several other queries with "LIKE" to work on two separate tables. The "LIKE" doesn't work on Description field in the SrvParts table either.
Thought trailing blanks in data may be problem but this doesn't explain why difference between Preview Data and Execute Query.