SELECT 'ALTER SCHEMA NewSchemaName TRANSFER ' + SysSchemas.Name + '.' + DbObjects.Name + ';' FROM sys.Objects DbObjects INNER JOIN sys.Schemas SysSchemas ON DbObjects.schema_id = SysSchemas.schema_id WHERE SysSchemas.Name = 'OldSchemaName' AND (DbObjects.Type IN ('U', 'P', 'V'))now just copy the output of this script and run...
Wednesday, March 26, 2014
Change schema of all tables in database
Share This!
Subscribe to:
Post Comments (Atom)
1 comment:
Soccer Betting and Soccer Betting - Legalbet.co.kr
Soccer Betting and Soccer Betting is legal in the most regulated countries of the world. The sport also 1xbet apps offers odds for different matches and
Post a Comment