Want to store .sql files to azure blob using adf

Amar Agnihotri 926 Reputation points
2022-04-14T06:16:34.01+00:00

Hi ,
I am using third party tool which exports .sql scripts daily . I want to store those .sql scripts in azure blob (if possible without using azure mysql db instance) using adf in the form of tables and then i will use those tables for analytical purpose. I don't know how to achieve that. I don't want to use any snaypse analytics or azure databricks. Kindly suggest me the steps to achieve this . Is this possible to do without creating azure mysql db instance . FYI we are not using any on premise my sql server.

Thanks

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
986 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nandan Hegde 36,146 Reputation points MVP Volunteer Moderator
    2022-04-14T06:25:24.27+00:00

    Hey,
    Can you please clarify what are the SQL scripts like (DDL definitions or insert scripts etc)

    Note: Assuming the 3rd part vendor uploads the SQL scripts in a location which can act as a source in ADF, you can use copy activity to copy the SQL files from the source to blob.
    You would need to use Binary dataset


1 additional answer

Sort by: Most helpful
  1. Simon Wall 6 Reputation points
    2022-04-20T12:10:22.66+00:00

    Normally SQL scripts are just text files with a .sql suffix as a type indicator. You can open these files with anything that will read a text file. If I understand your problem correctly, then storing the file as a blob should not be a problem.
    There are two questions here, and they relate to the types of data you are trying to get into Power BI

    1. Do you want to parse the sql scripts and report on the table names, field names ?.
    2. Are you interested in the data tables that the scripts create and want to know counts of tables, records, fields ?

    Its not clear from your description which of these you are trying to solve.

    1 person found this answer helpful.
    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.