Anonymous Asked in Cars &Transportation ยท 2 weeks ago

How do I change the schema of a table in SQL?

Contents
Part 1 Open Microsoft SQL Server Management Studio and log in. Click the New Query button. Paste the following script into the New Query box changing oldschema to the name of the current schema: SELECT 'ALTER SCHEMA dbo TRANSFER ' + s. Name + '.' + o. Name. FROM sys.Objects o. . Click Execute.


Related Questions

Relevance
Write us your question, the answer will be received in 24 hours