Skip to content

Conversation

@njregenwether
Copy link

@njregenwether njregenwether commented Oct 1, 2019

Added two parameters allowing you to include or exclude columns by name.

Example

-- This ensures that ID, Name, and DateAdded are included but DateAdded, Date Changed, AddedByID, and ChangedByID are not. 
-- If a row is included in both lists, it will be excluded. 

EXECUTE dbo.GenerateInsert @ObjectName = N'dbo.MYTABLE', @ColumnExclusion = 'DATEADDED,DATECHANGED,ADDEDBYID,CHANGEDBYID', @COLUMNINCLUSION='ID,NAME,DATEADDED';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant