Viewing 2 posts - 1 through 2 (of 2 total)
thanks peterhe!
Yes, I agree "It's a best practice to always explicitly give the column names in the select and insert statement."
SP and table were sort of quick test for...
October 7, 2005 at 1:23 am
#595778
select value1,value2,value3 from table t
where (t.value = @param1 or @param1 is null)
t.value is the column which matches your searc criteria
September 5, 2005 at 4:21 am
#587543