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
6 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rafnas T PPosted Feb 15, 2017, 6:06 AM
venkatesh duddukuriPosted Feb 15, 2017, 6:03 AM
Rafnas T PPosted Feb 15, 2017, 5:35 AM
Nitin SontakkePosted Feb 15, 2017, 4:44 AM
venkatesh duddukuriPosted Feb 15, 2017, 4:33 AM
Nitin SontakkePosted Feb 15, 2017, 3:31 AM