How to fetch database in lookup?

Sarvesh Pandey 71 Reputation points
2022-10-03T16:34:49.483+00:00

Hi,
Is it possible to fetch all the database name just like table name we fetch using Lookup activity?
If yes how it is done, request you to please share the steps.
if no, can you please explain the reason and any workaround of it.

Can we pull database name from azure SQL server?

Azure SQL Database
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nandan Hegde 36,146 Reputation points MVP Volunteer Moderator
    2022-10-03T17:40:03.697+00:00

    Hey,
    Assuming you are using SQL server, you can use
    Select name from sys.databases and filter out the ones like temp, master etc.

    The same can work on Azure SQL DB wherein you would need to exclude the Master database name


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.