Sql Server Function Declare Variable C