How would you explicitly define a numeric parameter stored in a text data type? eg. @OrderNumber = 008542. If the parameter is mapped to a stored procedure parameter that takes in an OrderNumber. The OrderNumber is an integer however, it is stored in a varchar(10) field. The integer is padded with leading Zeros when stored. So, how would you explicitly define the parameter to = 008542 without SSRS trimming off the leading Zeros. Single or double quotes don't work, so how is this done?
↧