Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8581

Re: Need an SP for UDO or UDT

$
0
0

Hi,

 

Check This

 

if (@object_type='OTP' and (@transaction_type='A' or @transaction_type='U'))

begin

If 1 < (SELECT count(T0.U_Shade) FROM [dbo].[@OTP]  T0

    where T0.U_Shade in (SELECT T1.U_Shade FROM [dbo].[@OTP]  T1 WHERE T1.Code = @list_of_cols_val_tab_del ))

    Begin

        SET @error = 'OTP 001'

        SET @error_message = 'Duplicate Shade Not Allowed'

 

    End

end

 

Thanks,

Nithi


Viewing all articles
Browse latest Browse all 8581

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>