I am trying to use the following script to move all tables from the s016PASP schema to dbo schema. So far it doesnt do anything and I can't see why. Can someone take a look and assist?
exec sp_MSforeachtable '
IF EXISTS(select * from information_schema.tables where TABLE_SCHEMA = ''s016PASP'' and Table_Name = ''?'')
BEGIN
ALTER SCHEMA dbo TRANSFER ?
END'