<?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>topic Re: MS SQL Server DB Mirror in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/MS-SQL-Server-DB-Mirror/m-p/2344347#M112012</link>
    <description>Hi 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;java.sql.SQLException: Cannot open database "{db_name}" requested by the login. The login failed.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Take a look at a similar 
&lt;A href="http://www.aspdotnet-suresh.com/2010/10/cannot-open-database-requested-by-login.html" target="_blank" rel="nofollow noopener noreferrer"&gt;topic&lt;/A&gt;, and try the solutions mentioned in that article. 
&lt;BR /&gt;Shong</description>
    <pubDate>Wed, 31 Jul 2013 13:54:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-07-31T13:54:18Z</dc:date>
    <item>
      <title>MS SQL Server DB Mirror</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MS-SQL-Server-DB-Mirror/m-p/2344346#M112011</link>
      <description>I'm attempting to write jobs against the new high available database using database mirroring. I have the additional JDBC parameters set to failoverPartner={failoverPartner} 
&lt;BR /&gt;The job works when the principal is server_0, but when a failover is initiated and server_1 becomes the principal, there is a driver exception. The failover has been tested via SQL Management Studio and client applications using the SQLCLI and .NET Framework Data Provider. 
&lt;BR /&gt;How can this be resolved using the jtds driver? If not, what is the work around? 
&lt;BR /&gt;MS Server 2008 R2 (10.50.4000) 
&lt;BR /&gt;TPEI 5.2.1 
&lt;BR /&gt;Exception in component tMSSqlConnection_1 
&lt;BR /&gt;java.sql.SQLException: Cannot open database "{db_name}" requested by the login. The login failed. 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368) 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2820) 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2258) 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:603) 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.ConnectionJDBC2.&amp;lt;init&amp;gt;(ConnectionJDBC2.java:345) 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.ConnectionJDBC3.&amp;lt;init&amp;gt;(ConnectionJDBC3.java:50) 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184) 
&lt;BR /&gt; at java.sql.DriverManager.getConnection(DriverManager.java:582) 
&lt;BR /&gt; at java.sql.DriverManager.getConnection(DriverManager.java:185)</description>
      <pubDate>Mon, 29 Jul 2013 19:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MS-SQL-Server-DB-Mirror/m-p/2344346#M112011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-29T19:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: MS SQL Server DB Mirror</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MS-SQL-Server-DB-Mirror/m-p/2344347#M112012</link>
      <description>Hi 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;java.sql.SQLException: Cannot open database "{db_name}" requested by the login. The login failed.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Take a look at a similar 
&lt;A href="http://www.aspdotnet-suresh.com/2010/10/cannot-open-database-requested-by-login.html" target="_blank" rel="nofollow noopener noreferrer"&gt;topic&lt;/A&gt;, and try the solutions mentioned in that article. 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 31 Jul 2013 13:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MS-SQL-Server-DB-Mirror/m-p/2344347#M112012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-31T13:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: MS SQL Server DB Mirror</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MS-SQL-Server-DB-Mirror/m-p/2344348#M112013</link>
      <description>Database mirroring has been available since SQL Server 2005 (9.0.x). We are using SQL Server 2008 R2 with database mirroring to provide high availability for our databases.
&lt;BR /&gt;The issue is with the jtds provider. I'm able to validate via ASP (OLEDB), .NET console (.NET Framework Data Provider), and SQL Management Studio. 
&lt;BR /&gt;Principal: SERVER_0
&lt;BR /&gt;Mirror: SERVER_1
&lt;BR /&gt;Witness: SERVER_2
&lt;BR /&gt;Failover between SERVER_0 and SERVER_1 works using the Microsoft providers. The jtds provider works when SERVER_0 is the principal, but fails when SERVER_1 is the principal (failover state) as it doesn't understand the failoverPartner parameter.
&lt;BR /&gt;DB Type: Microsoft SQL Server
&lt;BR /&gt;Connection String: jdbc:jtds:sqlserver://SERVER_0:1433/{db_name};failoverPartner=SERVER_1
&lt;BR /&gt;Server: SERVER_0
&lt;BR /&gt;Port: 1433
&lt;BR /&gt;Database: {db_name}
&lt;BR /&gt;Additional parameters: failoverPartner=SERVER_1
&lt;BR /&gt;I am able to use a General JDBC connection using the Microsoft JDBC (sqljdbc4.jar). Failover between SERVER_0 and SERVER_1 works using the MS provider. The issue is the previous jobs using the MS SQL Server will have to be re-written and we lose the features provided in the defined provider (jtds).
&lt;BR /&gt;DB Type: General JDBC
&lt;BR /&gt;JDBC URL: jdbc:sqlserver://SERVER_0:1433;databaseName={db_name};failoverPartner=SERVER_1
&lt;BR /&gt;Class name: com.microsoft.sqlserver.jdbc.SQLServerDriver
&lt;BR /&gt;Mapping file: id_MSSQL</description>
      <pubDate>Thu, 01 Aug 2013 17:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MS-SQL-Server-DB-Mirror/m-p/2344348#M112013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-01T17:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: MS SQL Server DB Mirror</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MS-SQL-Server-DB-Mirror/m-p/2344349#M112014</link>
      <description>Could you report this issue via the Tech Support portal: &lt;A href="https://support.talend.com" rel="nofollow noopener noreferrer"&gt;https://support.talend.com&lt;/A&gt;&lt;BR /&gt;I believe we need to investigate further your case.</description>
      <pubDate>Thu, 01 Aug 2013 17:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MS-SQL-Server-DB-Mirror/m-p/2344349#M112014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-01T17:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: MS SQL Server DB Mirror</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MS-SQL-Server-DB-Mirror/m-p/2344350#M112015</link>
      <description>Ticket submitted via OTRS. Thx</description>
      <pubDate>Thu, 01 Aug 2013 19:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MS-SQL-Server-DB-Mirror/m-p/2344350#M112015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-01T19:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: MS SQL Server DB Mirror</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MS-SQL-Server-DB-Mirror/m-p/2344351#M112016</link>
      <description>Actually in the mean time I got a feedback from the dev team. And unfortunately they confirmed that for performance and stability reason all our MS SQL components rely on the jtDS lib and that this lib doesn't support mirroring, therefore I'm afraid you may need to do again your job to use JDBC instead if you want to get the mirroring in function.
&lt;BR /&gt;Sorry about this
&lt;BR /&gt;Elisa</description>
      <pubDate>Fri, 02 Aug 2013 08:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MS-SQL-Server-DB-Mirror/m-p/2344351#M112016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-02T08:17:53Z</dc:date>
    </item>
  </channel>
</rss>

