How to transfer a table from one schema to another?
Answer / Ravi Prakash Srivastava
In SQL Server, you can use the CREATE TABLE AS SELECT (CTAS) statement to create a new table based on the result set of a SELECT query. To transfer a table between schemas, specify the source and destination schema names in the FROM and TO clauses respectively: CREATE TABLE dbo.NewTable (...) AS SELECT * FROM srcdb.oldSchema.OldTable;
| Is This Answer Correct ? | 0 Yes | 0 No |
how can you move the master database
What is 2nf example?
How to loop through returning rows?
What is left outer join in sql server joins?
How To delete duplicate record from a particular table?
How to store pdf file in sql server?
1 Answers CarrizalSoft Technologies, College School Exams Tests, TATA,
What is index in an assignment?
What is the maximum rows in sql server table?
Can you index views?
Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?
What are the different types of sub-queries?
How do I start sql server?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)