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
Support for table value parameters (TVPs) [CORE2079] #2514
Comments
Modified by: @cincuranetdescription: MSSQL2k8 introduced neat feature called TVP. It's simply ability to put into variable rows and the work with it. This is extremely useful when passing more rows into SP. Example: create procedure testSP(@Row testRow READONLY) declare @myrow testRow; => MSSQL2k8 introduced neat feature called TVP. It's simply ability to put into variable rows and the work with it. This is extremely useful when you want to pass and process more rows in SP. Example: create procedure testSP(@Row testRow READONLY) declare @myrow testRow; |
Modified by: @cincuranetdescription: MSSQL2k8 introduced neat feature called TVP. It's simply ability to put into variable rows and the work with it. This is extremely useful when you want to pass and process more rows in SP. Example: create procedure testSP(@Row testRow READONLY) declare @myrow testRow; => MSSQL2k8 introduced neat feature called TVP. It's simply ability to put into variable rows and the work with it. This is extremely useful when you want to pass into and process more rows in SP. Example: create procedure testSP(@Row testRow READONLY) declare @myrow testRow; |
Modified by: @asfernandes |
Submitted by: @cincuranet
Is duplicated by CORE2549
Votes: 2
MSSQL2k8 introduced neat feature called TVP. It's simply ability to put into variable rows and the work with it. This is extremely useful when you want to pass into and process more rows in SP.
Example:
create type testRow as table (id int, s nvarchar(200), y datetime);
create procedure testSP(@Row testRow READONLY)
as
begin
select id + 1, s from @Row;
end
declare @myrow testRow;
insert into @myrow values (10, 'abc', CURRENT_TIMESTAMP);
insert into @myrow values (11, 'abc', CURRENT_TIMESTAMP);
exec testSP @myrow;
The text was updated successfully, but these errors were encountered: