Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Not able to add foreign keys through tmssqlrow component

I am trying to add constraints through tmssqlrow component using below statement but it is failing with below error. But there is no "}" symbol in my query.

 

Any help is greatly appreciated!

 

Error:

Error Line: 1175
Detail Message: Syntax error on token "}", delete this token
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.

 

Flow:tPrejob --> tmssqlrow

 

Statement:

alter table POLICY.Tx_Account WITH CHECK ADD CONSTRAINT FK1_Tx_ACCOUNT_Tx_POLICYBENEFIT FOREIGN KEY (Tx_Policy_Benefit_ID)
REFERENCES POLICY.Tx_PolicyBenefit (Tx_Policy_Benefit_ID)

 

 

 

 

 

Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

Hi,

 

does your statements enquired by ""?

"alter table POLICY.Tx_Account WITH CHECK ADD CONSTRAINT FK1_Tx_ACCOUNT_Tx_POLICYBENEFIT FOREIGN KEY (Tx_Policy_Benefit_ID)
REFERENCES POLICY.Tx_PolicyBenefit (Tx_Policy_Benefit_ID)"

View solution in original post

3 Replies
manodwhb
Champion II
Champion II

@harsh_kothari ,  have you specified that query between double quotes?

Anonymous
Not applicable
Author

I did gave it in double quotes but as soon as i hit ok, the double quote vanishes.
vapukov
Master II
Master II

Hi,

 

does your statements enquired by ""?

"alter table POLICY.Tx_Account WITH CHECK ADD CONSTRAINT FK1_Tx_ACCOUNT_Tx_POLICYBENEFIT FOREIGN KEY (Tx_Policy_Benefit_ID)
REFERENCES POLICY.Tx_PolicyBenefit (Tx_Policy_Benefit_ID)"