简体   繁体   中英

How to copy database from SQL Server Express to SQL Server 2005?

如何将数据库和所有表的pks触发器等以及数据从SQL Server Express复制到SQL Server 2005?

Using Backup/Restore

  1. Backup the database on SQL Server Express
  2. Restore the database to SQL Server 2005

Using Detach/Attach

  1. Detach the database from SQL Server Express
  2. Attach the database to SQL Server 2005

Note

This assumes the Express Edition is 2005 as well. Downgrading from 2008 to 2005 can be problematic.

您可以创建数据库备份,也可以删除数据库作为查询。

Why do you need to copy anything?? Just detach the database (MDF + LDF) from your SQL Server Express, copy the files to the full server, and re-attach the database - and you're done!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM