Do you know what parameters need to be supplied at the Java level to get a successful connection? If so, we can try and work out how to get that through the Saxon layer. If you don't know, then it's probably worth while trying to get it working directly from Java before you try to get it working from XSLT - that removes one layer of uncertainty from the system.

I assume you've googled around and found posts like this one:

Michael Kay

On 01/12/2012 22:48, Mats Eklund wrote:

I am having problem with the SQL extension element getting some data from a SQL Server DB using the following approach (note authentication method used):

            <sql:connect driver="'sun.jdbc.odbc.JdbcOdbcDriver'" database="'jdbc:odbc:Driver={SQL Server};Server=FOO;Database=BAR;Trusted_Connection=Yes'">
                    <xsl:message terminate="yes">SQL extensions are not installed</xsl:message>

When I run this I get the following error:

Description: (SQL) [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'User'.

Is it not possible to use windows integrated authentication?

Thanks for any advice!


LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers

saxon-help mailing list archived at