declare @idioma as varchar(20) declare @query as varchar(max) set @idioma='esp' set @query='select mitext_' + @idioma + ' from tabla where id=1' exec Sp_sqlExec @query