0

this is the code in Oracle:

  pUsuario             IN     SAV_CAMPANAS_ENCA.USUARIO_CREA%TYPE,
  pCodTipo             IN     SAV_TIPOS_CAMPANA.COD_TIPO%TYPE,
  pCantidadRegistros   IN     SAV_CAMPANAS_ENCA.CANTIDAD_REGISTROS%TYPE,
  pPrograma            IN     SAV_CAMPANAS_ENCA.PROGRAMA%TYPE,
  pCodPais             IN     SAV_PAIS.COD_PAIS%TYPE,
  pNumeroIntentos      IN     SAV_CAMPANAS_ENCA.MAXIMO_INTENTOS%TYPE,
3
  • 1
    That's not possible in SQL Server as far as I know Commented Jan 29, 2015 at 22:07
  • Seriously, no there is something? Commented Jan 29, 2015 at 22:49
  • I'm pretty sure there is no equivalent for %TYPE in T-SQL, but then I haven't used SQL Server for along time (let alone stored procedures) Commented Jan 29, 2015 at 22:50

1 Answer 1

1

SQL Server doesn't have anchored type declarations-- you can't do the equivalent of <<table>>.<<column>>%TYPE. You'd need to determine the actual data types of the underlying columns and use those. Of course, that means that if you change the data type of some column, you'd need to go through your code to change the data type of the variables that need to reference that column.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.