Skip to content

Instantly share code, notes, and snippets.

DaveBoltman

Block or report user

Report or block DaveBoltman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@DaveBoltman
DaveBoltman / tSQLt.PrepareTableForFaking.sql
Last active Jul 26, 2019
Prepare table for faking in tSQLt , even when the table has schemabound dependencies
View tSQLt.PrepareTableForFaking.sql
SET QUOTED_IDENTIFIER ON
SET ANSI_NULLS ON
GO
ALTER PROCEDURE tSQLt.PrepareTableForFaking
@TableName NVARCHAR(MAX),
@SchemaName NVARCHAR(MAX)
AS
-- This is not part of the standard tSQLt library
-- See https://harouny.com/2013/04/19/tsqlt-taketable-indexed-view/ (original source)
You can’t perform that action at this time.