How do I pass a list of parameters to a precedent?

Asked

Viewed 73 times

0

I want to pass N parameters of N types to a dynamic process.

How can I do it?

Example: struct = (Here the structure will be mounted with several parameters)

struct.id = 123 struct.name='Marisa' struct.data='2020-06-16' . . . Run sp_execute Project struct

How to pass? And in the past, how to identify?

  • 1

    creates a type with equal values of your Structure, see more here: https://docs.microsoft.com/en-us/sql/t-sql/statements/create-type-transact-sql?view=sql-server-ver15

  • feel your code and language. [MCVE]

1 answer

0


  • Thanks @José Diz for the tip. I ended up not using so many parameters right now, but I need to better understand the link you gave me in case I need it in the future. I’m not DBA, I’m just a developer who needs to give a DBA at the moment. : ) For me the link got confused. I appreciate the attention.

  • @Robsoncabral The information I gave you is for developers. You can test separately, in development environment, so as to master the feature of creating data types. The suggestion is that a stool for testing.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.