I want to use select query in SQL Server 2008 in which I want to search book's details according to their name.
I use
SELECT *
FROM MasterTitle
WHERE BookName = '"+s1''
and it works fine but problem occurs when s1
contains a quote '
Something like
SELECT *
FROM MasterTitle
WHERE BookName = 'Educational Cd'S (Set)' and DisplayAuthorName = 'Test'
I can't use escape character