This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MoveIndexToFileGroup]') AND type in (N'P', N'PC')) | |
BEGIN | |
DROP PROCEDURE [dbo].[MoveIndexToFileGroup] | |
END | |
GO | |
CREATE PROC [dbo].[MoveIndexToFileGroup] ( | |
@DBName sysname, | |
@SchemaName sysname = 'dbo', | |
@ObjectNameList Varchar(Max), |