我从本站里找了个用ADO连接数据库的文档,并下载了改代码,可运行后出现一个错误对话框:  IDispatch error #3149这是什么原因造成的?  如何修改?

解决方案 »

  1.   

    Error 3143
    Severity Level 16
    Message Text
    The data set on device '%ls' is not a SQL Server backup set.Explanation
    The backup being restored conforms to the Microsoft Tape Format, but is not a Microsoft® SQL Server™ backup. The backup may have been written by another software product. Action
    To determine the contents of the backup, consider using RESTORE HEADERONLY.
      

  2.   

    不好意思,错了!
    A database cannot be restored unless its sort order, collation sequence, Unicode locale ID, and Unicode comparison style match those of the server.