How to rename query in Db Connections

Six Stars

How to rename query in Db Connections

Hello,

 

I have a query define in my metadata.

I would like juste rename. I try with SQLBuilder Editor but i can change the comment of a query not the name.TalendRenameQuery.JPG

Simply, how rename query "Q_NETAPP_E" with an another name ?

 

Thanks in advance

 

Dimitri


Accepted Solutions
Highlighted
Forteen Stars

Re: How to rename query in Db Connections

Hi Dimitri

 

you can just save query with new name and then delete original

or you can open Talend Workspace, find your project -> metadata -> connections -> STAGING_0.1.items and edit this file in text editor

something like:

    <queries xmi:id="_0YSuIBnWEemDPNd8P_QeIA">
      <query xmi:id="_0YSuIhnWEemDPNd8P_QeIA" id="_0YSuIRnWEemDPNd8P_QeIA" label="query_logs_full" value="select * from dwh_logs"/>
    </queries>
-----------

All Replies
Highlighted
Forteen Stars

Re: How to rename query in Db Connections

Hi Dimitri

 

you can just save query with new name and then delete original

or you can open Talend Workspace, find your project -> metadata -> connections -> STAGING_0.1.items and edit this file in text editor

something like:

    <queries xmi:id="_0YSuIBnWEemDPNd8P_QeIA">
      <query xmi:id="_0YSuIhnWEemDPNd8P_QeIA" id="_0YSuIRnWEemDPNd8P_QeIA" label="query_logs_full" value="select * from dwh_logs"/>
    </queries>
-----------
Six Stars

Re: How to rename query in Db Connections

Hi vapuko,

 

It's works.

I prefer to change in file because sometimes the same query is in use more than one job.

 

Thanks

 

Dimitri

Forteen Stars

Re: How to rename query in Db Connections

Welcome! :-)

-----------

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Downloads and Trials

Test drive Talend's enterprise products.

Downloads