I have a column with data like this "Tom Hardy" and I add a new query to search in this column like this :
SELECT Number, Name, Business, [Tax File No], Phone
FROM Archive
WHERE (Name = @Name)
and it works when I entered the full name like "Tom Hardy" but I want to find results by searching just "Tom" or "Hardy".
I also tried :
SELECT Number, Name, Business, [Tax File No], Phone
FROM Archive
WHERE (Name IN (@Name))
Neither work.
Using Visual Studio 2010 with C# and SQL database connected to it.
Please help, thanks!