microsoft / microsoft/sqlmanagementobjects

Using SMO to extract the External Sources Information from Synapse SQL Serverless

Open
#69 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
143
Forks
28
PR merge metrics
No merged PRs in 30d

Description

I am trying to script the Synapse SQL Serverless objects and mainly External Sources objects. Which mainly consist of External File Format and External Data Sources.

Is it possible ?

$scrp.Script($dbs["stg"].ExternalDataSources)
Multiple ambiguous overloads found for "Script" and the argument count: "1".
At line:1 char:1

  • $scrp.Script($dbs["stg"].ExternalDataSources)
  •   + CategoryInfo          : NotSpecified: (:) [], MethodException
      + FullyQualifiedErrorId : MethodCountCouldNotFindBest
    
    

script function doesn't work with external data source. Is there another way to script it ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the $scrp.Script($dbs["stg"].ExternalDataSources) call against Synapse SQL Serverless and review how External Data Sources and External File Formats are handled. Done means these objects can be scripted without the ambiguous-overload error, with the supported approach documented or covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, sql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.