Declare @FechaIni Datetime Declare @FechaFin Datetime Set @FechaIni='20040830' Set @FechaFin='20041030' SELECT DATA001.DBO.FN_DIASACALCULAR (@FechaIni,@FechaFin) As DiasACalcularSo far so good. But what if I want to make this sintax non database dependent, I mean, I'm planning to use this same function on several databases and I don't want to change the UDF's prefix on each one.