Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Tabled-Value-Parameters feature support dynamic struct? #757

Open
zhanghaiyang9999 opened this issue Jun 17, 2022 · 1 comment
Open

Comments

@zhanghaiyang9999
Copy link

For example, there are two tables in MSSQL, one is table1,another is table2, but table1 and table2 have different fields.
see table1 has 3 fields such as ID, Name, Age, and table2 has 4 fields such as ID, Company, Position, Salary, can we dynamically create different struct to use the TVP feature? if we pre-define the struct in code for the two tables, it's ok, but if we have hundreds of tables, it's impossible to pre-define the struct for every table.

Thanks!

@NikitaDef
Copy link
Contributor

For example, there are two tables in MSSQL, one is table1,another is table2, but table1 and table2 have different fields. see table1 has 3 fields such as ID, Name, Age, and table2 has 4 fields such as ID, Company, Position, Salary, can we dynamically create different struct to use the TVP feature? if we pre-define the struct in code for the two tables, it's ok, but if we have hundreds of tables, it's impossible to pre-define the struct for every table.

Thanks!

Hi, can you write some example of code. I don't understand how to want use TVP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants