<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Failed to open the connection: Error Code 17 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179026#M1619753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, sorry...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YES, SQL Server 2000. I couldn't find any direct reference to a code 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the same ODBC connection works on the other two reports.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2008 21:55:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-23T21:55:02Z</dc:date>
    <item>
      <title>Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaq-p/4179024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an odd one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Environment: &lt;/P&gt;&lt;P&gt;VB.NET Winform&lt;/P&gt;&lt;P&gt;Visual Studio 2008&lt;/P&gt;&lt;P&gt;.NET framework 2.0&lt;/P&gt;&lt;P&gt;Crystal Reports 2008 &lt;/P&gt;&lt;P&gt;ODBC connection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three reports, living in the same directory. They are essentially identical, except for the grouping. All three run successfully within Crystal reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From a report viewer Winform in VS, two of the three run. As I am dealing with a small data set, the reports render quickly. On the third report, There is a long pause when the report viewer form opens, then I finally get an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="Courier" __jive_macro_name="font"&gt;
"Failed to open the connection.
Details: [Database Vendor Code: 17]
Failed to open the connection.
CallReportByExtension 58F5C135-7BA3-4215-898A-DADA6C7DAD9C.rpt
Details:[Database Vendor Code: 17]
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was initially getting similar errors on all three reports, before changing the datasource location to my ODBC connection. I have double-checked the location, verified the database, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong? I can provide the VB code if requested, but since the other two reports work properly, I doubt it's code. I &lt;STRONG&gt;do&lt;/STRONG&gt; know that I am passing the report name and path correctly to the report viewer form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I am about to kick my monitor through the window and become a street denizen, I would greatly appreciate any help that would be offered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike Beckner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 21:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaq-p/4179024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T21:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179025#M1619752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What type of database?  SQL Server?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd first recommend looking up error code 17 for you RDBMs system, to get at the root cause.  The error message is stating it's getting back error code 17 from the database driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ted Ueda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 21:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179025#M1619752</guid>
      <dc:creator>ted_ueda</dc:creator>
      <dc:date>2008-07-23T21:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179026#M1619753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, sorry...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YES, SQL Server 2000. I couldn't find any direct reference to a code 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the same ODBC connection works on the other two reports.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 21:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179026#M1619753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T21:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179027#M1619754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mentioned that you are working with "a small data set". I'd like to rule out the scenario where you are actually passing a .NET DataSet to your report at runtime. If you are passing a DataSet then you are not doing the same thing in code as you are through the designer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are simply using a Crystal Report designed with the ODBC database driver then your situation is puzzling. I think it is worth seeing your code to see what could be going wrong. Please break your code down to its simplest form before post so I don't have to go through too much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 05:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179027#M1619754</guid>
      <dc:creator>former_member208657</dc:creator>
      <dc:date>2008-07-24T05:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179028#M1619755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. This code works...two of the three reports work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imports CrystalDecisions.CrystalReports.Engine&lt;/P&gt;&lt;P&gt;Imports CrystalDecisions.Shared&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Public Class frmReportViewer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Dim m_datStartDate As Date&lt;/P&gt;&lt;P&gt;    Dim m_datEndDate As Date&lt;/P&gt;&lt;P&gt;    Dim m_strReportPath As String&lt;/P&gt;&lt;P&gt;    Dim m_strReportName As String&lt;/P&gt;&lt;P&gt;    Dim m_strStaticPath As String = "c:\Program Files\CallReportViewer\Reports\"&lt;/P&gt;&lt;P&gt;    Dim crConnectionInfo As New ConnectionInfo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   *****Omitting property declarations--I assign the report name and path via these properties. *****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Private Sub frmReportViewer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;/P&gt;&lt;P&gt;        LoadReport()&lt;/P&gt;&lt;P&gt;    End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Public Sub LoadReport()&lt;/P&gt;&lt;P&gt;        Dim crReportDocument As New ReportDocument&lt;/P&gt;&lt;P&gt;        Dim crTableLogonInfo As New TableLogOnInfo&lt;/P&gt;&lt;P&gt;        Dim crTables As Tables&lt;/P&gt;&lt;P&gt;        Dim crTable As Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Try&lt;/P&gt;&lt;P&gt;            With crConnectionInfo&lt;/P&gt;&lt;P&gt;                .ServerName = "CallWhereData"&lt;/P&gt;&lt;P&gt;                .DatabaseName = "CallWhereData"&lt;/P&gt;&lt;P&gt;                .UserID = "MyID"&lt;/P&gt;&lt;P&gt;                .Password = "MyPassword"&lt;/P&gt;&lt;P&gt;            End With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Me.Text = m_strReportName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            crReportDocument.Load(m_strStaticPath &amp;amp; m_strReportPath)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            crReportDocument.SetParameterValue("1StartDate", m_datStartDate)&lt;/P&gt;&lt;P&gt;            crReportDocument.SetParameterValue("2EndDate", m_datEndDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            crTables = crReportDocument.Database.Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            For Each crTable In crTables&lt;/P&gt;&lt;P&gt;                crTableLogonInfo = crTable.LogOnInfo&lt;/P&gt;&lt;P&gt;                crTableLogonInfo.ConnectionInfo = crConnectionInfo&lt;/P&gt;&lt;P&gt;                crTable.ApplyLogOnInfo(crTableLogonInfo)&lt;/P&gt;&lt;P&gt;            Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            CrystalReportViewer1.Dock = DockStyle.Fill&lt;/P&gt;&lt;P&gt;            CrystalReportViewer1.ReportSource = crReportDocument&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Catch ex As Exception&lt;/P&gt;&lt;P&gt;            MessageBox.Show(Err.Description)&lt;/P&gt;&lt;P&gt;        End Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    End Sub&lt;/P&gt;&lt;P&gt;End Class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 13:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179028#M1619755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T13:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179029#M1619756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now it's a matter of figuring out the difference between working reports and non working report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Does the report have subreports? &lt;/P&gt;&lt;P&gt;2) Is the report using the same connection properties (E.G.; ODBC / OLE DB, other)? Check and compare the "Set datasource location" for working and none working reports. &lt;/P&gt;&lt;P&gt;3) Does the non working report contain unlinked tables? &lt;/P&gt;&lt;P&gt;4) Is the non working report using stored procedures as opposed to tables for the working report? &lt;/P&gt;&lt;P&gt;5) Does it help if you enable "Verify on first print"? (File | Report Options) &lt;/P&gt;&lt;P&gt;6) More unlikely, but possible; are any database fields off the design pane of the report when you look at the report in the design view? &lt;/P&gt;&lt;P&gt;7) And of course the assumption is that the report works in the CR designer... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ludek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 13:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179029#M1619756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T13:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179030#M1619757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, Ludek.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll paste your questions below, and reply in-line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Does the report have subreports?  No&lt;/P&gt;&lt;P&gt;2) Is the report using the same connection properties (E.G.; ODBC / OLE DB, other)? Check and compare the "Set datasource location" for working and none working reports.  The datasource location is the same.&lt;/P&gt;&lt;P&gt;3) Does the non working report contain unlinked tables?  No&lt;/P&gt;&lt;P&gt;4) Is the non working report using stored procedures as opposed to tables for the working report? No. I am using a command.&lt;/P&gt;&lt;P&gt;5) Does it help if you enable "Verify on first print"? (File | Report Options) Will try and advise. I think the answer will be no (see below)&lt;/P&gt;&lt;P&gt;6) More unlikely, but possible; are any database fields off the design pane of the report when you look at the report in the design view? No&lt;/P&gt;&lt;P&gt;7) And of course the assumption is that the report works in the CR designer... Yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a pretty straightforward report, actually. I connect to the database and do a technically simple select...a couple of joins, but no big deal. The query I use is identical to the others. The only difference I can see between the two is the report grouping. But it's not even getting that far. The non-working report is not connecting to the database. I verified this in SQL Profiler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 13:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179030#M1619757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T13:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179031#M1619758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do the other reports use command table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 13:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179031#M1619758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T13:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179032#M1619759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. They are &lt;STRONG&gt;identical&lt;/STRONG&gt; except for the grouping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont' know if it matters or not, but I originally connected to the database via OLE DB (ADO). I changed to ODBC (Set Datasource location....) after I designed the reports.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 14:03:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179032#M1619759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T14:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179033#M1619760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was the report that does not work created in an earlier version of Crystal Reports than the reports that work? If so, save them as the present version that you are running. &lt;/P&gt;&lt;P&gt;I'm obviously running out of ideas :). But there has got to be a difference between those reports... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ludek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 14:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179033#M1619760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T14:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179034#M1619761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everything was created in CR 2008. I agree that there MUST be something different, but I have gone through every setting, every field, every menu item I can find, and just don't see it. Unfortunately I'm the only CR guy here, so I don't have a second set of eyes.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't help but think it might be some obscure glitch in the CR object model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point, I'm going to just rename the file, make a copy of one of the working reports, change the grouping, and move on. As much as I'd like to figure out what happened so I can avoid the problem in the future, I need to move on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll leave the question open in case anybody else has had this happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for taking the time to help, Ludek.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 14:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179034#M1619761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T14:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179035#M1619762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do feel... empty / unsatisfied also. But as you said, if you can "recreate" the report from an existing report, it may be the best way to proceed. It will be interesting to see if you get the same issue once you have competed the grouping modification... (please don't let it be so).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keeping my fingers crossed,&lt;/P&gt;&lt;P&gt;Ludek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 14:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179035#M1619762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T14:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179036#M1619763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might be late in replying, but here's how I see the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Server Error Code 17 means "SQL Server does not exist or access denied.".  I can get this exception by (1) using a Table to which my database logon identity does not have access, or (2) change the ODBC setting to point to a bogus machine name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this issue doesn't appear to be a code issue, but something in the report that's triggering the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd recommend, if you do revisit the issue, to turn on ODBC tracing in the ODBC manager, to see if you can get any indication of what's going on.  I'm thinking this would give more info, since it's connecting to the driver, just not to the RDBMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ted Ueda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 14:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179036#M1619763</guid>
      <dc:creator>ted_ueda</dc:creator>
      <dc:date>2008-07-24T14:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179037#M1619764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ted,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I enabled tracing, and ran the report...very interesting, nothing was created. No file.  (and I did get the connection error). To make sure i had it set right, I ran it with one of the working reports, and it did create a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it's hanging up before it even opens ODBC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 14:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179037#M1619764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T14:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179038#M1619765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you have a very interesting issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pretty much out of ideas - I might just do the report rewrite you've indicated earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ted Ueda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 15:01:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179038#M1619765</guid>
      <dc:creator>ted_ueda</dc:creator>
      <dc:date>2008-07-24T15:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179039#M1619766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep...I've already done that, and it worked like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the mean time, I'll go back to it and see if I can figure out what happened. I cross-posted on a couple of other boards. If I get it figured out, I'll post the solution here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, Ted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 15:04:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179039#M1619766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T15:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179040#M1619767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's possible that you have a partially corrupt report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard troubleshooting routine that I do in a situation like this is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Make a backup&lt;/P&gt;&lt;P&gt;2. Remove everything from the report so that all there is is a completely blank report - test it - if it works, then it was something on the report.  If not, then it's either in a group (If any are left), or in the command itself&lt;/P&gt;&lt;P&gt;3. If it works, then restore from backup, and this time only remove half of the report - test it - if it fails, then remove even more and test again.&lt;/P&gt;&lt;P&gt;4. Basically, keep removing objects from the report until it works - then I would know that the last object removed was the problem.&lt;/P&gt;&lt;P&gt;5. If it fails until I remove the last database object from the report - then I know that it is something to do with the database connection itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a bit tedious - but it usually works to narrow down the exact problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 15:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179040#M1619767</guid>
      <dc:creator>former_member203619</dc:creator>
      <dc:date>2008-07-24T15:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open the connection: Error Code 17</title>
      <link>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179041#M1619768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My turn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error code 17 indicates the report is trying to connect to a data source that no longer exists. Which is why it also takes a minute for the ODBC or OLE DB connection to time out. Somewhere in the old report there is a reference to the old connection info. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have discovered the only way to clean this up is to re-build the report. At some point a step was missed when setting location to ODBC and left some old DB connection info behind in the report. &lt;/P&gt;&lt;P&gt;Unforetunately there is no way to view the connection info in the RPT file after version 8.5. In 8.5 using notepad and opening the RPT file you can see the connection info. Likely when this report was upgraded to the current version some reference was left behind. Possibly manually modified the SQL statement when it was allowed. To confirm if you select Show SQL Query, if a RESET button is in the window then it indicates at some time you had manually modified the SQL and this may be causing it to try to to connect to the old source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I any event we'll consider this thread complete and closed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final work around: Rebuild the report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 14:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/failed-to-open-the-connection-error-code-17/qaa-p/4179041#M1619768</guid>
      <dc:creator>former_member11696</dc:creator>
      <dc:date>2008-07-25T14:57:16Z</dc:date>
    </item>
  </channel>
</rss>

