Getting FreshDesk data

Hema Ramachandran 176 Reputation points
2022-02-18T11:10:42.857+00:00

My assignment is to create and maintain a SQL Server data warehouse using FreshDesk server data.
I have an URL link similar to
https://xxx.freshdesk.com/reports/schedule/download_file.json?uuid=5asdsd24324vdfd2232f
When you open this, you get some Response text where you can find another URL link that we can use to download a CSV file.
I have to import data to SQL server data warehouse from this CSV file.
What is the best method to do this?

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,564 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,624 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Olaf Helper 44,296 Reputation points
    2022-02-18T11:22:06.987+00:00

    The best is to create a ETL process using a SSIS package = SQL Server Integration Services:
    https://learn.microsoft.com/en-us/sql/integration-services/ssis-how-to-create-an-etl-package?view=sql-server-ver15

    0 comments No comments

  2. 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

  3. ZoeHui-MSFT 36,116 Reputation points
    2022-02-21T03:00:34.597+00:00

    Hi @Hema Ramachandran ,

    You may use TSQL query and SSIS to import the csv file data to SQL Server.

    BULK INSERT testtable  
    FROM 'D:\yourfilename.csv'  
    WITH  
    (  
        FIRSTROW = 2, -- as 1st one is header  
        FIELDTERMINATOR = ',',  --CSV field delimiter  
        ROWTERMINATOR = '\n',   --Use to shift the control to next row  
        TABLOCK  
    )  
    

    See here 3-easy-ways-to-import-csv-file-to-sql-server.

    Here is also the SSIS tutorial to load csv file to SQL Server.

    sql-server-import-csv-file-into-database-table-using-ssis

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  4. Hema Ramachandran 176 Reputation points
    2022-02-22T13:44:05.567+00:00

    I solved this issue using power shell comands.
    case closed.

    0 comments No comments

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.