<?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: DB Connection (Microsoft SQL Server) ignoring database context in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334226#M102912</link>
    <description>&lt;P&gt;Thanks for your feedback, @Shicong Hong​&amp;nbsp;and @David Beaty​&amp;nbsp;.&lt;/P&gt;&lt;P&gt;There is a misunderstanding though: i do not want to select from two different databases but only from one. And the select is not a problem since I use the statement "USE [db_name] SELECT * FROM [table]" now altough the db_name is already specified in the connection.&lt;/P&gt;&lt;P&gt;BUT there is no option to have "USE *" on tdboutput so it is inserting my values in the wrong database now [e.g. db_name_2] - even if the connection is still on [db_name].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Mar 2021 17:04:54 GMT</pubDate>
    <dc:creator>KVanselow</dc:creator>
    <dc:date>2021-03-29T17:04:54Z</dc:date>
    <item>
      <title>DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334223#M102909</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I am in a setup with a Microsoft SQL Server on one side and trying to SELECT and UPDATE / INSERT data based on different databases on this server.&lt;/P&gt;&lt;P&gt;With the tDBConnection I can specifiy the Database but it seems like it is not considering that specification:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I discovered through one job-run the job is writing two tables in two different databases although the database is specified via context variable and the same in both connections&lt;/LI&gt;&lt;LI&gt;next to that i discovered that within a tDBInput-Statement using inner join the job is jumping between databases and joining the table x from database 1 with table y from database 2. &amp;gt; this I try to prevent now using "USE [db_name]" within my select-statement&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how do I prevent 1.?&lt;/P&gt;&lt;P&gt;I am getting errors when trying to specify the table for the update / insert-action via [db_name].[dbo].[tablename]. " &amp;gt; INVALID OBJECT NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions why the database-context for the connection is not working and how to specify the correct database for both querys to DBInput and DBOutput?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Talend Open Studio 7.1 at the moment.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334223#M102909</guid>
      <dc:creator>KVanselow</dc:creator>
      <dc:date>2024-11-16T00:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334224#M102910</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can't select data from different database on the same tDBInput componnent (only one connection established), as a workaround, use two tDBInput components to query data from different Database, and then do join on tMap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 06:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334224#M102910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-29T06:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334225#M102911</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would suggest you create two tDBConnection components, one as the source/select connection and one as the desination/insert connection. That would probably just good practice, but also will help you, in this case, isolate the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, remember that in database select statements, you should fully qualify the table name:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT col1, col2,col3&lt;/P&gt;&lt;P&gt;FROM &lt;B&gt;{database}.{schema}.{table}&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 06:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334225#M102911</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2021-03-29T06:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334226#M102912</link>
      <description>&lt;P&gt;Thanks for your feedback, @Shicong Hong​&amp;nbsp;and @David Beaty​&amp;nbsp;.&lt;/P&gt;&lt;P&gt;There is a misunderstanding though: i do not want to select from two different databases but only from one. And the select is not a problem since I use the statement "USE [db_name] SELECT * FROM [table]" now altough the db_name is already specified in the connection.&lt;/P&gt;&lt;P&gt;BUT there is no option to have "USE *" on tdboutput so it is inserting my values in the wrong database now [e.g. db_name_2] - even if the connection is still on [db_name].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 17:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334226#M102912</guid>
      <dc:creator>KVanselow</dc:creator>
      <dc:date>2021-03-29T17:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334227#M102913</link>
      <description>&lt;P&gt;Hi, is your tdbOutput is relied to the good tDbConnection ? Maybe you'll have to delete the component and recreate a new one relied to your tDbConnection component. Could you send screenshots of your job?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 08:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334227#M102913</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-03-30T08:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334228#M102914</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000DuSkMAAV.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132323i4EB48B6CD97CC1FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000DuSkMAAV.jpg" alt="0695b00000DuSkMAAV.jpg" /&gt;&lt;/span&gt;I am providing a screenshot (in german). You see the connection open the db is used to do the update later on. But the table I specify in tDBConnection_1 is not updated through the tDBOutput_2 but rather a different table.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 10:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334228#M102914</guid>
      <dc:creator>KVanselow</dc:creator>
      <dc:date>2021-03-30T10:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334229#M102915</link>
      <description>&lt;P&gt;ok, is your tDBconnection_1 is correctly set, are you using shared db on your tDBConnection_1 ?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 12:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334229#M102915</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-03-30T12:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334230#M102916</link>
      <description>&lt;P&gt;cause shared Db can overwrite settings of a tDBConnection.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 12:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334230#M102916</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-03-30T12:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334231#M102917</link>
      <description>&lt;P&gt;"But the table I specify in tDBConnection_1 " :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can only specify db on TdbConnection not tables, and in tDBOutput you can specify the table on table field, the db is automaticly recognized by the tDBConnection link.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 12:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334231#M102917</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-03-30T12:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334232#M102918</link>
      <description>&lt;P&gt;Hey @guenneguez jeremy​&amp;nbsp;, thanks for all your valuable feedback!&lt;/P&gt;&lt;P&gt;Yes, the setup is a shared db.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am confused, since the DBConnections lets me specify a database as well .. at least this is what I thought it would do ?!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000DuTklAAF.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127899i52EB59B952173E79/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000DuTklAAF.jpg" alt="0695b00000DuTklAAF.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 14:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334232#M102918</guid>
      <dc:creator>KVanselow</dc:creator>
      <dc:date>2021-03-30T14:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334233#M102919</link>
      <description>&lt;P&gt;Hi @Kerstin Vanselow​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the tDBConnection lets you specify the database, as you showed in the screen shot, but once you select the tDBConnection_1 as the connection to use in the tDBOutput_2 component, the only thing you can specify there is the table name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggestions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create 2 DB connections, one for the read and one for the write.&lt;/LI&gt;&lt;LI&gt;Don't use the syntax of "USE [database]" in your selection - this "hides" what is really going on.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 14:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334233#M102919</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2021-03-30T14:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334234#M102920</link>
      <description>&lt;P&gt;could you specify db name and table name please ? and the value of context.db_name ?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 15:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334234#M102920</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-03-30T15:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334235#M102921</link>
      <description>&lt;P&gt;But why is it not using this database but rather another one on the same host ? Is this a bug ? I am still confused @David Beaty​&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both databases have the same setup, meaning tables and fields. One is rather the Test-Database [db_name_test] and the other the database with production data [db_name]. But both have the table [Protocol] but when I use the dbconnection on database [db_name] it is inserting the change into [db_name_test].[Protocol]&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 15:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334235#M102921</guid>
      <dc:creator>KVanselow</dc:creator>
      <dc:date>2021-03-30T15:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334236#M102922</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect then, that the context variable for the database is not getting updated from the test database to the live database when its run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 16:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334236#M102922</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2021-03-30T16:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334237#M102923</link>
      <description>&lt;P&gt;You have to Check Your context value and when you launch the job, be sure you use the good context, context group have multiple configuration like : dev,preprod, prod.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 17:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334237#M102923</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-03-30T17:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334238#M102924</link>
      <description>&lt;P&gt;This is the funny thing, @guenneguez jeremy​&amp;nbsp;: my context-variables are fine - the process was working perfectly with three other tables and selects so far until now, when I introduced a new table on the SQL Server ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the context is definitely correct.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 07:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334238#M102924</guid>
      <dc:creator>KVanselow</dc:creator>
      <dc:date>2021-03-31T07:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334239#M102925</link>
      <description>&lt;P&gt;Hi KVanselow, you can do one thing to ensure you have the good value in your context :&lt;/P&gt;&lt;P&gt;in your job put a tJava component with the folowing syntax :&lt;/P&gt;&lt;P&gt;System.out.println(context.db_host);&lt;/P&gt;&lt;P&gt;System.out.println(context.db_name);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and you'll see in the console if you really use the good values.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 07:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334239#M102925</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-03-31T07:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connection (Microsoft SQL Server) ignoring database context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334240#M102926</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000DujS9AAJ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149779iB8DB77A2A0E2AC7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000DujS9AAJ.jpg" alt="0695b00000DujS9AAJ.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally I got the reason: I was working with a subjob and forgot the small checkbox: "&lt;B&gt;transmit whole context&lt;/B&gt;". Aaargh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 17:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-Connection-Microsoft-SQL-Server-ignoring-database-context/m-p/2334240#M102926</guid>
      <dc:creator>KVanselow</dc:creator>
      <dc:date>2021-03-31T17:37:12Z</dc:date>
    </item>
  </channel>
</rss>

