Copy/ Backup date in SQL Server
2018-08-24 14:25
281 查看
Backup a table (create a new table)
Backup a table structure
Copy the data to backup table (The backup table is exist)
SELECT * INTO BackupTbl FROM OriTbl;
Backup a table structure
SELECT TOP 0 * INTO BackupTbl FROM OriTbl;
Copy the data to backup table (The backup table is exist)
INSERT INTO BackupTbl SELECT * FROM OriTbl;
相关文章推荐
- Copy a table from one database to another in SQL Server 2005
- How to check if a date is a valid date in Sql Server 2005
- select records by Date in SQL Server
- Create maintenance backup plan in SQL Server 2008 R2 using the wizard
- SQLServer The datediff function resulted in an overflow
- How to backup and restore database in SQL Server
- SQL Server Database Backup and Restore in C#
- SQL Server Backup file in standard Zip format
- How to format datetime & date in Sql Server 2005
- SQL Server DATEADD() 函数
- Working with schemas in SQL Server 2005(zz)
- How do I UPDATE from a SELECT in SQL Server?
- Using TRY/CATCH to Resolve a Deadlock in SQL Server 2005
- T-SQL Enhancement in SQL Server 2005[下篇]
- Hierarchies in SQL Server 2008
- Importing/Indexing database (MySQL or SQL Server) in Solr using Data Import Handler--转载
- JSON in SQL Server 2016
- Special Offer: Watch Three In-Depth SQL Server Courses by SQLskills (FREE)
- SQL SERVER GETDATE()函数用法
- Query performance troubleshooting in SQL Server 2008: query_hash and query_plan_hash