use pubs


drop Function B
drop assembly TVFunc

CREATE ASSEMBLY TVFExample from 'C:\types\TVFExample.dll'
go

Create Function B(@preStart int, @start int, @count int)
returns TABLE (next int, previous int)
as EXTERNAL NAME TVFExample.CBernoulli.Bernoulli

select * from dbo.B(1,2,6)
