Declare @r Int; Exec @r=dbo.__gsm_get_number2 '', NULL, 0, '', '', 'Москва и МО', '', 1, 30, '11'; Select @r