Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Cloud Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Cloud.
SOLVED

Is there a way to publish data as nvarchar when writing to SQL Server?

TrifactaUsers
10 - Fireball

Currently, it seems I'm only allowed to publish string data as varchar.

1 REPLY 1
45fbbb55ab1ef273b792
Alteryx Alumni (Retired)

Hi Scott,

Depending on your product version, you can go to

 

/opt/trifacta/services/data-service/build/conf/vendor/sqlserver/publish-metadata.json

 

Here you can find the mappings used by Trifacta to convert to SQL Server specific type.

 

By default you should see this section

 

{

   "trifactaType": "string",

   "jdbcType": "varchar",

   "vendorTypeList": ["varchar(256)"]

  },

 

You can change it to

 

{

   "trifactaType": "string",

   "jdbcType": "varchar",

   "vendorTypeList": ["nvarchar(256)","varchar(256)"]

  },

 

Trifacta uses the first type defined in vendorTypeList when it is creating tables.

 

Please also back up the existing /opt/trifacta/services/data-service/build/conf/vendor/sqlserver/publish-metadata.json file just incase.

 

A Trifacta restart will be needed.