I created a test type as a table with the below columns:
CREATE TYPE [dbo].[TestType] AS TABLE
(
[TestField] [varchar](10) NULL,
[TestField2] [int] NULL
)
I then created a stored procedure the takes that table type as a parameter.
CREATE PROCEDURE TestTypeProcedure (@tt TestType READONLY)
AS
SELECT *
FROM @tt;
My goal is to be able to pass something like a list of lists as the parameter for the table type. Is that even possible?
myList = [['Hello!', 1], ['Goodbye!', 2]]
....
cursor.execute('{{Call {TestTypeProcedure} ({?})}}', myList)