Is there any single sql command to export entire database from one sql server to another?

tee*_*nup 4 sql sql-server sql-server-2005

I was asked in the interview tell me the different ways of exporting database from one sql server to another, I knew only about creating a .bak file and then restoring it to another sql server which I told them. However, they asked me about a single SQL INSERT command which will perform this task.

I have googled it and can not find it. Please tell me if there is any such command ?

Ben*_*son 6

我从未听说过这样的命令,这是MS支持文章,它告诉您如何在服务器之间移动数据库.它提供了三个选项,其中没有一个是单个insert语句,最接近的是使用sp_detach_db和sp_attach_db.

  • 同意,我从未遇到过单个SQL命令来在服务器之间迁移数据库. (2认同)
  • 我也是.听起来像一个"真正的"专业人士正在问问题. (2认同)