Linked service structure

Dave Gray 586 Reputation points
2023-02-13T12:48:35.69+00:00

Hi,

Was wondering if there's a way to have ADF create a SQL structure from a linked service and data set?

So for example, I want to pull data from the built-in "ServiceNow" connector and it returns a lot of columns. There appears no obvious way to even just get a list of the column names so that I can manually create a SQL table to take this data.

The column names are different to the ones served by the REST API so it's not even if I can use the JSON generated from that to help me create my structure.

Thanks

sn1a

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,875 questions
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 38,456 Reputation points Microsoft Employee
    2023-02-14T08:10:54.93+00:00

    Hi Dave Gray,

    Thank you for posting query in Microsoft Q&A Platform.

    If I am understanding correctly then you want to take only few columns from source and create a data with that structure in SQL to copy that data. Please correct me If I am wrong.

    You can use mappings tab in copy activity, to map only the columns which you wish to sink. And under sink tab of copy activity, select Auto create table option, to create table at sink database.

    In below gif, I selected Auto create table option. This creates the table automatically. Under Mappings tab I am removing columns depName and gender from source.

    Copy

    Hope this helps. Please let me know if any further queries.


    Please consider hitting Accept Answer button. Accepted answers help community as well.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.