Expand my Community achievements bar.

SOLVED

SQL Drop Table in ext:FFDA Database

Avatar

Level 2

Hello,

 

Previously in v7 the following SQL code would be suitable to drop a schema's table:

 

drop table <table name>

 

In v8, for tables which exist in the FFDA database, this SQL code throws an error. 

 

Can someone please point me toward the correct documentation for accessing FFDA tables with SQL commands in v8?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @SkylerQu2,

 

In a js activity you should use :

sqlExecOnDataSource ("drop table <table>","nms:extAccount:<InternalName>")

 Here are more infos about this function.

 

Br,

Amine ABEDOUR

View solution in original post

3 Replies

Avatar

Community Advisor

Hi @SkylerQu2 ,

Select FDA data source and its external account in SQL code activity

ParthaSarathy_0-1745338167356.png

 

And make sure you have database permission to delete the table from database.

Avatar

Level 2

Hi @ParthaSarathy

 

Thank you for the helpful reply. I am trying to execute this SQL code within a javascript activity:

 

sqlExec("drop table <table>")

 

Is there a similar configuration that can be made within a js activity?

 

Thanks,

Skyler

Avatar

Correct answer by
Community Advisor

Hello @SkylerQu2,

 

In a js activity you should use :

sqlExecOnDataSource ("drop table <table>","nms:extAccount:<InternalName>")

 Here are more infos about this function.

 

Br,

Amine ABEDOUR