试着重装一下MDAC 2.8:http://www.microsoft.com/downloads/details.aspx?FamilyID=6c050fe3-c795-4b7d-b037-185d0506396c&DisplayLang=zh-cn

解决方案 »

  1.   

    安装时报错为
    MDAC 2.8 RTM is incompatible with this version of Windows. All of its features are currently part of Windows.
      

  2.   

    The SQLXMLOLEDB Provider is an OLE DB provider that exposes Microsoft SQLXML functionality through ActiveX Data Objects (ADO). However, the provider can execute commands only in the "write to an output stream" mode of ADO. The SQLXMLOLEDB Provider is not a rowset provider. When you execute a command, you must specify the adExecuteStream flag, which directs ADO to use the output stream that you have specified.The following example shows the syntax for the Execute command in which the adExecuteStream flag is specified: Copy Code 
    Dim oTestCommand As New ADODB.Command
    ...
    oTestCommand.Properties("Output Stream").Value = oTestStream
    oTestCommand.Execute , , adExecuteStream
    ...
     
      

  3.   

    the provider can execute commands only in the "write to an output stream" mode of ADO
    这说明不能使用楼主的 
    ="provider=sqloledb;data source=xx;user id=sa;password=;Initial Catalog=xx;"
    的方式
      

  4.   

    这是sql2005 联机帮助上的原话.
      

  5.   

    我看了Sql2005的联机帮助还有这个http://www.microsoft.com/china/MSDN/library/data/xml/ASurveyofMicrosoftSQLServer2000XMLFeatures.mspx?mfr=true原来这套ASP页面是来测试SQL2000数据库的。现在要移植到oracle上。页面中是按照MS提供的范例来写的。原文如下
    Const adExecuteStream = 1024Set conn = CreateObject("ADODB.Connection")
    conn.Provider = "SQLXMLOLEDB.3.0"
    conn.ConnectionString = ConnectionString
    conn.Open Set cmd = CreateObject("ADODB.Command")
    Set cmd.ActiveConnection = connSet stmXMLout = CreateObject("ADODB.Stream")
    stmXMLout.Open
    cmd.Properties("Output Stream") = stmXMLout
    cmd.CommandText = "xx"
    cmd.CommandType = 1
    cmd.Properties("xml root") = "xx"
    cmd.Properties("Base Path") = MyBasePath
    cmd.Properties("xsl") = "xx.xsl"cmd.Execute, , adExecuteStream
    当按原来的connectionstr="data provider=sqloledb;data source=xx;user id=sa;password=;Initial Catalog=xx;"运行时报错 为provider没有安装于是改为connectionstr="provider=sqloledb;data source=xx;user id=sa;password=;Initial Catalog=xx;"通过。但在Oracle下所有的Provider都显示不支持StreamOut。。我个人觉得语句没有问题。问题是不是需要安装SQLXMLOLEDB。现在不知道这个东西该怎么安装,而且怀疑安装后oracle下能不能适用。
      

  6.   

    to : libin_ftsafe(子陌红尘)我下了页面上各个版本的MDAC都无法安装。我的系统是windows xp sp2。2002版。英文。。