तालिका-मूल्यवान पैरामीटर को sp_executesql में कैसे पास किया जाए, इसका एक उदाहरण यहां दिया गया है . वेरिएबल को पास करना होगा readonly :
if exists (select * from sys.types where name = 'TestTableType')
drop type TestTableType
create type TestTableType as table (id int)
go
declare @t TestTableType
insert @t select 6*7
exec sp_executesql N'select * from @var', N'@var TestTableType readonly', @t