Viewing 5 posts - 1 through 5 (of 5 total)
Ok I can see the flaw - its the replace function that causes the problem
set @searchterms= replace(@searchterms, SUBSTRING(@Searchterms,1,@Spaceat),'')
when it removes '1 ' it affects '11 ' in the searchterms etc...
October 10, 2006 at 3:09 am
Thanks guys - I have prepared a stripped down version of the original sql that uses the pubs database to test with - it works when the @SearchTerms is as...
October 10, 2006 at 1:59 am
Assuming you backup regularly
to reinstate the old dates :
Do a RESTORE of database1 with its latest backup to a new database2
then update database1 setting database1.datecolumn = database2.datecolumn where database1.IDcolumn...
June 15, 2005 at 4:35 am
Thanks David, you steered me in the right direction - got it working correctly using 'LEFT JOIN'
November 25, 2004 at 10:11 am
Viewing 5 posts - 1 through 5 (of 5 total)