---
title: "[转]数据导入导出问题总结-主MS SQL "
author: "moogle"
date: "2006-11-16T23:51:12Z"
tags: []
slug: "ms-sql"
draft: false
lastmod: "2006-11-16T23:51:12Z"
id: 34671
url: "https://moogle.iteye.com/blog/34671"
---

大家打开这个链接可以看到很多数据库的连接方法。[http://www.connectionstrings.com](http://www.connectionstrings.com/)  
这些数据库之间的数据交换就是这个贴子所要总结的内容。

（一）SQL Server之间  
把远程数据库中的数据导入到本地数据库。  
[http://community.csdn.net/Expert/topic/5079/5079649.xml?temp=.7512018](http://community.csdn.net/Expert/topic/5079/5079649.xml?temp=.7512018)  
[http://community.csdn.net/Expert/topic/5011/5011278.xml?temp=.1658899](http://community.csdn.net/Expert/topic/5011/5011278.xml?temp=.1658899)  
[http://community.csdn.net/Expert/topic/4982/4982625.xml?temp=.8189966](http://community.csdn.net/Expert/topic/4982/4982625.xml?temp=.8189966)

把A库里的其中几个表和视图导入B库  
[http://community.csdn.net/Expert/topic/5042/5042648.xml?temp=.2556574](http://community.csdn.net/Expert/topic/5042/5042648.xml?temp=.2556574)

sql2005的数据库导入sql2000中  
[http://community.csdn.net/Expert/topic/4954/4954820.xml?temp=.3408625](http://community.csdn.net/Expert/topic/4954/4954820.xml?temp=.3408625)  
在SQL2005中 如何导入 SQL2000中的Analysis Service ?  
[http://community.csdn.net/Expert/topic/4713/4713032.xml?temp=2.752322E-02](http://community.csdn.net/Expert/topic/4713/4713032.xml?temp=2.752322E-02)

英文版sql server2005中bcp导出中文乱码问题  
[http://community.csdn.net/Expert/topic/5024/5024662.xml?temp=.7404596](http://community.csdn.net/Expert/topic/5024/5024662.xml?temp=.7404596)

如何将一个由SQL保存出来的\*.bas文件再导回到SQL中  
[http://community.csdn.net/Expert/topic/4944/4944630.xml?temp=.8225672](http://community.csdn.net/Expert/topic/4944/4944630.xml?temp=.8225672)

（二）SQL Server --&gt; Access

将SQL数据导出至Access（SQL与Access同一台机器上）  
[http://community.csdn.net/Expert/topic/4919/4919937.xml?temp=.2461359](http://community.csdn.net/Expert/topic/4919/4919937.xml?temp=.2461359)  
将SQL数据导出至Access（SQL与Access不在同一台机器上）  
[http://community.csdn.net/Expert/topic/4906/4906691.xml?temp=.1377222](http://community.csdn.net/Expert/topic/4906/4906691.xml?temp=.1377222)  
[http://community.csdn.net/Expert/topic/4917/4917015.xml?temp=.7591364](http://community.csdn.net/Expert/topic/4917/4917015.xml?temp=.7591364)

（三）Access --&gt; SQL Server  
[http://faq.csdn.net/FAQUnfurl.aspx?id=214875](http://faq.csdn.net/FAQUnfurl.aspx?id=214875)

为什么access与sqlserver2000导入导出时，数据库结构变了，默认主键，自动编号全没了？  
[http://community.csdn.net/Expert/topic/4712/4712570.xml?temp=.3942224](http://community.csdn.net/Expert/topic/4712/4712570.xml?temp=.3942224)

（四）txt（记事本）--&gt; SQL Server  
[http://community.csdn.net/Expert/topic/5045/5045602.xml?temp=.0278284](http://community.csdn.net/Expert/topic/5045/5045602.xml?temp=.0278284)  
TXT文件导入数据库出现乱码  
[http://community.csdn.net/Expert/topic/4939/4939026.xml?temp=.4465296](http://community.csdn.net/Expert/topic/4939/4939026.xml?temp=.4465296)  
关于上千份大文本存入Sqlserver  
[http://community.csdn.net/Expert/topic/4973/4973969.xml?temp=.4392816](http://community.csdn.net/Expert/topic/4973/4973969.xml?temp=.4392816)

（五）SQL Server --&gt; txt  
[http://community.csdn.net/Expert/topic/4906/4906039.xml?temp=.6642267](http://community.csdn.net/Expert/topic/4906/4906039.xml?temp=.6642267)  
SQL导出TXT或HTML求助  
[http://community.csdn.net/Expert/topic/5031/5031048.xml?temp=1.302737E-02](http://community.csdn.net/Expert/topic/5031/5031048.xml?temp=1.302737E-02)

（六）Excel --&gt; SQL Server  
[http://community.csdn.net/Expert/topic/5002/5002120.xml?temp=.4375727](http://community.csdn.net/Expert/topic/5002/5002120.xml?temp=.4375727)  
[http://community.csdn.net/Expert/topic/5086/5086098.xml?temp=.6402094](http://community.csdn.net/Expert/topic/5086/5086098.xml?temp=.6402094)  
[http://community.csdn.net/Expert/topic/4940/4940738.xml?temp=.8665125](http://community.csdn.net/Expert/topic/4940/4940738.xml?temp=.8665125)  
[http://community.csdn.net/Expert/topic/4938/4938969.xml?temp=1.918972E-03](http://community.csdn.net/Expert/topic/4938/4938969.xml?temp=1.918972E-03)  
[http://community.csdn.net/Expert/topic/4892/4892120.xml?temp=.1775324](http://community.csdn.net/Expert/topic/4892/4892120.xml?temp=.1775324)  
使用Excel导入数据库时,遇到这么个奇怪的问题,当Excel的一列中的数据类型明显不同时就会直接eof,??  
[http://community.csdn.net/Expert/topic/4929/4929620.xml?temp=.2570154](http://community.csdn.net/Expert/topic/4929/4929620.xml?temp=.2570154)

（七）DBF --&gt; SQL Server  
[http://community.csdn.net/Expert/topic/5070/5070623.xml?temp=6.957644E-02](http://community.csdn.net/Expert/topic/5070/5070623.xml?temp=6.957644E-02)

其他问题

怎样把数据库中的题目经过vb 导到word  
[http://faq.csdn.net/FAQUnfurl.aspx?id=215243](http://faq.csdn.net/FAQUnfurl.aspx?id=215243)

使用作业来完成DTS操作。  
[http://community.csdn.net/Expert/topic/5046/5046974.xml?tep=.9785425](http://community.csdn.net/Expert/topic/5046/5046974.xml?tep=.9785425)