Viewing 4 posts - 1 through 4 (of 4 total)
Here you go I updated your code to reflect some of the suggestions
set nocount on
--Cleanup
if exists (select * from tempdb.sys.tables where name like '#SearchResult%') drop table #SearchResult
if...
March 14, 2013 at 2:28 am
Also to make provisions for Databases,schemas,Tables and fields names that have spaces by adding "[" and "]" to the strings
March 14, 2013 at 1:56 am
Hi Gaurav,
another suggestion is that you add a variable for schema as I see you assume that all tables will be in a "dbo" schema
March 14, 2013 at 1:49 am
Viewing 4 posts - 1 through 4 (of 4 total)