document-api-python icon indicating copy to clipboard operation
document-api-python copied to clipboard

Changing Datasource Connection to another database

Open ismailsimsek opened this issue 6 years ago • 2 comments

is it possible to change Data-source Connection to another database which has same table structure. would that break anything?

for example changing from PostgreSQL to Redshift or Redshift to snowflake

ismailsimsek avatar Oct 17 '19 09:10 ismailsimsek

Hi, @ismailsimsek Did anyone found any solution for this? Is it possible to change connection type using any API? (I have to migrate from Teradata to Snowflake which have same table structures)

suryapsm avatar Aug 17 '20 04:08 suryapsm

hi @suryapsm this is not official solution also not proven, but by looking at Connection it shuld be possible to change database by changing its class. again its not proven! even getting connection working datasource might get datatype issues/mismatches. IMO this is one of the most important feature tableau missing.

a sample PostgreSQL connection from datasource xml file

<named-connections>
  <named-connection caption='localhost' name='postgres.029sthq05ouun816ulker0cmf5s7'>
    <connection authentication='username-password' class='postgres' dbname='testdb' odbc-native-protocol='' one-time-sql='' port='5432' server='localhost' sslmode='require' username='testuser' />
  </named-connection>
</named-connections>

ismailsimsek avatar Aug 17 '20 10:08 ismailsimsek