You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Afsaneh Rafighi edited this page Feb 6, 2017
·
1 revision
As of 6.1.1, the Microsoft JDBC Driver for SQL Server supports using table-valued parameters with stored procedure for Spring framework. Two public APIs are added to set the TVP name when calling a stored procedure having a table valued parameter passed as input.
Example:
Having a table defined as:
CREATETABLE [dbo].[customer] (IDint)
Having a stored procedure defined as:
CREATE PROCEDURE [dbo].[SProcTVP] @InputData dbo.TVPName READONLY
AS
BEGIN
INSERT INTO [test].[dbo].[customer]
SELECT ID FROM @InputData
END