日期:2014-05-17  浏览次数:20418 次

sql server 2005 导入导出
各位大侠,sql server2005 数据库的导入导出,为什么只导入和导出了表,和数据,为什么表的一些关系没有导出导入呢?比如表的主键、外键等?坐等各位大侠解惑。。。
SQL?Server?2005 数据库 SQL?Server

------解决方案--------------------
The SQL Server Import and Export Wizard offers the simplest method to create a Integration Services package that copies data from a source to a destination.

可以看到只是COPY DATA而不是COPY关系。 如果你想COPY定义的话可以用生成脚本的功能 
------解决方案--------------------
看这篇例子:http://msdn.microsoft.com/en-us/library/ms178078(v=sql.105).aspx