This is probably very simple. I have a stored procedure where I am passingin a vendor ID that is 6 characters long. In the procedure I also need to use this same ID as a 10 character string. I don't want to pass in both of the values since they are the same except for length. Is it as simple as?
Or do I need to cast/convert/select the @VendID6 to @VendID10? Looking for the proper way to do this.
Auguy
Sylvania/Toledo Ohio
Code:
@VendID6 char(6),
@VendID10 char(10) = @VendID6
Auguy
Sylvania/Toledo Ohio