I'd like to create a function (or perhaps it should be a stored procedure?) that I can call from any stored procedure.
It needs to loop through the values of all parameters, checking to see if any of them contain an empty string and if so, assign NULL to each.
I'm aware that you can assign NULL as a default value but this isn't suitable for my situation.
Many thanks.
It needs to loop through the values of all parameters, checking to see if any of them contain an empty string and if so, assign NULL to each.
I'm aware that you can assign NULL as a default value but this isn't suitable for my situation.
Many thanks.