5858IF OBJECT_ID (' dbo.TestPhoto' ) IS NOT NULL
5959 DROP PROCEDURE dbo .TestPhoto ;
6060GO
61+ IF OBJECT_ID (' dbo.FixedLengthBinaryTVPTestProc' ) IS NOT NULL
62+ DROP PROCEDURE [dbo].[FixedLengthBinaryTVPTestProc]
63+ GO
6164IF OBJECT_ID (' Sales.GetUKSalesOrders' ) IS NOT NULL
6265 DROP FUNCTION Sales .GetUKSalesOrders ;
6366GO
@@ -72,6 +75,10 @@ IF OBJECT_ID(N'Sales.UnitedKingdomOrders') IS NOT NULL
7275 DROP TABLE Sales .UnitedKingdomOrders
7376GO
7477
78+ IF OBJECT_ID (N ' [dbo].[FixedLengthBinaryTVPTestTable]' ) IS NOT NULL
79+ DROP TABLE [dbo].[FixedLengthBinaryTVPTestTable]
80+ GO
81+
7582-- TRIGGERS
7683IF OBJECT_ID (N ' Production.tr_Location_Slow' ) IS NOT NULL
7784 DROP TRIGGER Production .tr_Location_Slow
@@ -116,6 +123,10 @@ IF TYPE_ID(N'Sales.<USD>') IS NOT NULL
116123 DROP TYPE Sales.[<USD>]
117124GO
118125
126+ IF TYPE_ID (N ' dbo.FixedLengthBinaryTVPTest' ) IS NOT NULL
127+ DROP TYPE [dbo].[FixedLengthBinaryTVPTest]
128+ GO
129+
119130
120131CREATE TYPE dbo .MyTableType AS TABLE (myId int not null , myName nvarchar (30 ) null )
121132GO
138149CREATE TYPE Sales.[<USD>] FROM MONEY NOT NULL
139150GO
140151
152+ CREATE TYPE [dbo].[FixedLengthBinaryTVPTest] AS TABLE (
153+ [BinaryCol] BINARY (50 )
154+ )
155+ GO
156+
141157-- TABLES
142158
143159CREATE TABLE dbo .TableHavingColumnNamesWithSpaces (
@@ -150,7 +166,13 @@ CREATE TABLE Sales.UnitedKingdomOrders(
150166 [SalesOrderID] [int] NOT NULL ,
151167 [TotalDue] [Sales].[<GBP>] NOT NULL
152168)
153- GO
169+ GO
170+
171+ CREATE TABLE [dbo].[FixedLengthBinaryTVPTestTable] (
172+ ID INT IDENTITY (1 , 1 ) NOT NULL ,
173+ FixedLengthBinaryTVPTest BINARY (50 ) NOT NULL
174+ )
175+ GO
154176
155177INSERT INTO Sales .UnitedKingdomOrders
156178SELECT SalesOrderID, TotalDue
@@ -237,6 +259,16 @@ WHERE
237259 SpatialLocation .STDistance (@SpatialLocation) = 0 ;
238260GO
239261
262+ CREATE PROCEDURE [dbo].[FixedLengthBinaryTVPTestProc]
263+ @fixedLengthBinaryTests [dbo].[FixedLengthBinaryTVPTest] READONLY
264+ AS
265+ BEGIN
266+ INSERT INTO [dbo].[FixedLengthBinaryTVPTestTable]
267+ SELECT [BinaryCol]
268+ FROM @fixedLengthBinaryTests
269+ END
270+ GO
271+
240272
241273CREATE FUNCTION dbo .ufnGetStock2 (@ProductID [int] = NULL )
242274RETURNS [int]
0 commit comments