Dear All
I am develop the help Sp but i dont know how to set validation error . kindly give the suggetion.
Note : if select multiple options show error
Ex : select multiple months in help show error message
if (@paramname= 'Month')
begin
select 'ALL' 'GRDPARAMVALUE'
union all
SELECT distinct DATENAME(month, schedule_date) 'GRDPARAMVALUE'
from tmscd_emp_gre_calendar_vw m
where master_ou=@ouinstance
end

Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 14, 2017, 10:31 PM EST
venkatesh duddukuri11 reputationPosted Feb 14, 2017, 11:33 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 14, 2017, 11:44 PM EST
Rafnas T PRank #280 · 8.8K reputationPosted Feb 15, 2017, 12:35 AM EST
venkatesh duddukuri11 reputationPosted Feb 15, 2017, 1:03 AM EST
Rafnas T PRank #280 · 8.8K reputationPosted Feb 15, 2017, 1:06 AM EST