Re: SQLOLEDB vs. MSDASQL

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Erland Sommarskog (esquel_at_sommarskog.se)
Date: 09/04/04

  • Next message: Erland Sommarskog: "Re: Bug capturing print messages using OLEDB templates"
    Date: Sat, 4 Sep 2004 09:37:37 +0000 (UTC)
    
    

    rpallares (rpallares@discussions.microsoft.com) writes:
    > We have a huge application in VB6 and SQL server 2k, I
    > need to upgrade our version of ADO so that I can use it
    > with SQLXML.
    >
    > Currently the provider for the DB connections is MSDASQL,
    > can I change it to SQLOLEDB with virtually no impact on
    > existing code that uses this and currently works with
    > ADO2.5/2.7?
    >
    > Preliminary attempts have showed that won´t be straightforward. Which are
    > issues? SQL Sintax? Recordset initialization.

    SQL syntax should not be an issue.

    There are situations where you are likely to encounter difference, although
    many of them are subtle, like whether you get an diagnostic message or not.
    Of course, even if the difference is subtle, it may still be important.

    Since you mention XML, there is one case where there is an important
    difference: if you have a query with FOR XML, you can retrieve that as a
    regular recordset with MSDASQL. If you do the same with SQLOLEDB, you get
    binary data instead. I believe you are supposed to use the Stream object
    instead. Or, for that matter, SQLXMLOLEDB.

    Overall, it would help if you detailed the problems you have had so far.

    -- 
    Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
    Books Online for SQL Server SP3 at
    http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
    

  • Next message: Erland Sommarskog: "Re: Bug capturing print messages using OLEDB templates"

    Relevant Pages

    • wp-02-0007: Microsoft SQLXML ISAPI Overflow and Cross Site Scripting
      ... Westpoint Security Advisory ... SQLXML allows XML data to be transferred to and from SQL Server, ... SQlXML has two vulnerabilities: a buffer overflow in the SQLXML ISAPI ...
      (Bugtraq)
    • Re: Annotated schema with views?
      ... There are no plans for using FOR XML PATH for SQL 2005. ... In Sql 2005, there are no changes in the way SQLXML generate queries. ... For the complexity brought by the elements, if you use simple type elements ...
      (microsoft.public.sqlserver.xml)
    • Re: Schadenssummen durch Malware?
      ... SQLXML setzt XML ja nicht in SQL, sondern in die DML der MSSQL-Datenbank um. ...
      (de.comp.security.misc)
    • Re: Limitations of OPENXML support in SQL Server
      ... > Check out if SQLXML can help you out. ... SQLXML moves the XML management out ... > SQL Server and helps you write the same in the application layer. ... >> programming solutions, but not using XML as a data source. ...
      (microsoft.public.sqlserver.xml)
    • Re: Microsoft Security Bulletin MS02-030
      ... SQLXML virtual directories are not installed by default. ... I haven't used SQL ... tool to do this with is IIS Virtual Directory Management for SQL Server. ...
      (microsoft.public.sqlserver.security)