zoukankan      html  css  js  c++  java
  • SQL技巧大全

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

    (一)SQL Server之间
     把远程数据库中的数据导入到本地数据库。
     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/4982/4982625.xml?temp=.8189966

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

     sql2005的数据库导入sql2000中
     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

     英文版sql server2005中bcp导出中文乱码问题
     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

     (二)SQL Server --> Access

     将SQL数据导出至Access(SQL与Access同一台机器上)
     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/4917/4917015.xml?temp=.7591364

     (三)Access --> SQL Server
     http://faq.csdn.net/FAQUnfurl.aspx?id=214875

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

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

     (五)SQL Server --> txt 
     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

     (六)Excel --> SQL Server 
     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/4940/4940738.xml?temp=.8665125
     http://community.csdn.net/Expert/topic/4938/4938969.xml?temp=1.918972E-03
     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

     (七)DBF --> SQL Server
     http://community.csdn.net/Expert/topic/5070/5070623.xml?temp=6.957644E-02

     其他问题

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

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

     自己总结了一些数据转换的问题,还没有总结完全,我会逐渐完善,大家有什么好的贴子可以发给我或者直接跟贴就好了。谢谢。

     补充:
     http://blog.csdn.net/dutguoyi/archive/2006/10/16/1337274.aspx
      xml --> sql server
     http://community.csdn.net/Expert/topic/5041/5041228.xml?temp=.8233911

      oracle --> sql server
     http://community.csdn.net/Expert/topic/5019/5019542.xml?temp=2.604312E-02

     昨天遇到把MSSQL里的关系图导到别的MSSQL中的问题,搜索CSDN好几个大版+网上Google/baidu都没找到好办法。
     最后Google出了这个(MSSQL帮助里对那个系统表也只有不痛不痒的2篇介绍),希望有人用得着:

     http://support.microsoft.com/kb/320125
     SQL Server 7.0和2000版本可以使用下面方法来实现。
     http://support.microsoft.com/kb/320125

     对于2005版本的基本方法是:backup一个数据库为.bak文件,然后在新数据库里restore
     http://fufun.cn/show.aspx?id=dC8yMDAyMDUzMC8xNS83NjUxOTEuaHRtbA_x003D__x003D_

     如果自己有说得不对的地方请大家多指点。

     在用Bulk Insert导入数据时的日期时间格式问题,
     原因:bulk insert 不能转换数据类型,如果时间格式不正确就会出错。
     http://community.csdn.net/Expert/topic/5100/5100692.xml?temp=.0559656

     Excel --> SQL Server
     导入时添加额外列,
     例如 EXECL表的结构为 名称,内容,类别,
          SQLserver表的结构为 名称,内容,类别,属性
     http://community.csdn.net/Expert/topic/5105/5105613.xml?temp=.3277399

     补上
     Excel --> SQL Server
     导入时列名调整补充
     http://community.csdn.net/Expert/topic/5086/5086098.xml?temp=.5973932

     
     SQL Server 2005 --> SQL Server 2000
     http://dev.csdn.net/author/taito/840c28a03ec0432492db18a329125bb5.html
     http://community.csdn.net/Expert/topic/4954/4954820.xml?temp=.495083

     Sybase --> SQL Server
     DTS包从Sybase导入数据
     http://community.csdn.net/Expert/topic/5074/5074037.xml?temp=.5815241

     通过.mdf文件附加数据库出错。
     通过"附加数据库"来打开,在选择了"要附加的数据库mdf文件"后验证会提示"所选文件不是有效的SQL server文件"。可是那个文件在别的电脑上附加过没有问题。
     http://community.csdn.net/Expert/topic/5014/5014644.xml?temp=.2409937

     SQL Server 2005 --> SQL Server 2000
     用sql2005的导入导出工具将所有SQL2005的表和数据导出到SQL2000下,但是所有的主键、索引、关系、默认值全部丢了。
     http://community.csdn.net/Expert/topic/4905/4905590.xml?temp=6.176394E-02

     SQL Server 2000 --> SQL Server 2000
     导出表的所有结构、所有数据
     http://community.csdn.net/Expert/topic/5092/5092752.xml?temp=.8595545

     
     SQL Server 2005 --> SQL Server 2000
     http://community.csdn.net/Expert/topic/5089/5089204.xml?temp=.4461328

     Sybase --> SQL Server
     SyBase与SQL server如何建立连接,以及从SQL里查询SyBase是的数据表 
     http://community.csdn.net/Expert/topic/5074/5074037.xml?temp=.845669

     SQL Server 2005 --> Excel
     数据长度为255,出错 
     http://community.csdn.net/Expert/topic/4951/4951804.xml?temp=.2144739

     SQL Server 2000 --> SQL Server 2000
     DTS包的制作
     http://community.csdn.net/Expert/topic/5006/5006594.xml?temp=.2426111

     SQL Server之间复制数据库
     http://community.csdn.net/Expert/topic/4835/4835266.xml?temp=.7495233

     SQL Server 2005 --> SQL Server 2000
     2005导出的脚本为什么在2000运行总是出错?
     http://community.csdn.net/Expert/topic/4682/4682496.xml?temp=.6038324

     SQL Server 2000 --> SQL Server 7.0
     SQL2000数据导入到SQL7,那些设置为主键的没有了
     http://community.csdn.net/Expert/topic/5004/5004254.xml?temp=.1570246

     大家可以在下面的链接来搜索CSDN技术社区文档,很大的技术宝藏啊。
     http://search.csdn.net/search/null/1/dev/

     SQL Server --> DB2
     http://www.21cnvip.com/csdn/default.aspx?q=20021105/10/1149089.html

     MySql --> SQL Server
     http://topic.csdn.net/t/20031203/09/2521118.html
     http://topic.csdn.net/t/20030407/11/1627991.html

     Pardox --> SQL Server 2000
     通过Delphi
     http://topic.csdn.net/t/20020905/15/998942.html
     http://topic.csdn.net/t/20031104/11/2425022.html#

     Paradox --> SQL Server 2000
     看来这个数据库的名称使用中有变化,Paradox和Pardox是相同的吧。在http://www.connectionstrings.com中找到了这个数据库。用Paradox来搜索的话答案还是很多的。
     使用DTS:http://www.microsoft.com/China/msdn/Archives/msdnonline/features/articles/DTS_overview.ASP

  • 相关阅读:
    利用IIS应用请求转发ARR实现IIS和tomcat整合共用80端口
    Application Request Route实现IIS Server Farms集群负载详解
    jQuery插件之ajaxFileUpload
    百度上传组件
    jQuery选择器总结 jQuery 的选择器可谓之强大无比,这里简单地总结一下常用的元素查找方法
    如何使 WebAPI 自动生成漂亮又实用在线API文档
    Swagger+AutoRest 生成web api客户端(.Net)
    小程序开发的40个技术窍门,纯干货!
    为你下一个项目准备的 50 个 Bootstrap 插件
    In-Memory:内存数据库
  • 原文地址:https://www.cnblogs.com/chenbg2001/p/1429703.html
Copyright © 2011-2022 走看看