Skip to content

Instantly share code, notes, and snippets.

@mnaoumov
Created December 13, 2012 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnaoumov/4275001 to your computer and use it in GitHub Desktop.
Save mnaoumov/4275001 to your computer and use it in GitHub Desktop.
if exists (select * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = 'WBC_UserProfileMap' and COLUMN_NAME = 'InitIndicator')
begin
update
WBC_UserProfileMap
set
InitIndicator = 'SELF_REGISTERED'
where
CISKey = 'TestUser80';
update
WBC_UserProfileMap
set
InitIndicator = 'STAFF_REGISTERED'
where
CISKey = 'TestUser81';
update
WBC_UserProfileMap
set
InitIndicator = 'MIGRATED'
where
CISKey = 'TestUser80';
end
go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment