Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking in WarehouseCopy and Opening Mirroring for SQL Server #22

Closed
wants to merge 5 commits into from

Conversation

MarkPryceMaherMSFT
Copy link
Contributor

Checking in WarehouseCopy and Opening Mirroring for SQL Server

Check in the first version into source control
Added some usage text to the readme
Adding a notebook to query the connections in Fabric
1. On a custom schedule per table, extract any changes on the table and upload them to the landing zone.

# Instructions
1. Conpile the solution using VSCode or Visual Studio 2022 - I used Community Edition.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo - 'Conpile' - 'Compile'

@@ -0,0 +1 @@
{"cells":[{"cell_type":"code","source":["# Install semantic-link-labs if its not already installed\n","#%pip install semantic-link-labs\n","import sempy\n","import sempy.fabric as fabric\n","import sempy_labs as labs\n","\n","# name of Gen2, or the database\n","Gen2Name = \"mpm\" # I am using find so a partial string would work, but this should be the servername/workspace name and the database.\n","\n","# list_connections\n","cons = labs.list_connections()\n","# display all the connections / just for debugging\n","#display(cons)\n","\n","# loop through all the connections, just highlight the ones that are using the dedicated sql pool\n","for index, row in cons.iterrows():\n"," #print (index,row[\"Connection Path\"])\n"," x=row[\"Connection Path\"];\n"," if (x.find(Gen2Name) > -1 and row[\"Connection Type\"]=='SQL'):\n"," print(\"Change this connection\", x)\n"," # TODO: Put code here to update the connection\n"],"outputs":[],"execution_count":null,"metadata":{"microsoft":{"language":"python","language_group":"synapse_pyspark"},"collapsed":false},"id":"c16feef8-36e7-4e78-a41c-f9b46dd4bc49"}],"metadata":{"kernel_info":{"name":"synapse_pyspark"},"kernelspec":{"name":"synapse_pyspark","language":"Python","display_name":"Synapse PySpark"},"language_info":{"name":"python"},"microsoft":{"language":"python","language_group":"synapse_pyspark","ms_spell_check":{"ms_spell_check_language":"en"}},"nteract":{"version":"[email protected]"},"spark_compute":{"compute_id":"/trident/default","session_options":{"conf":{"spark.synapse.nbs.session.timeout":"1200000"}}},"synapse_widget":{"version":"0.1","state":{}},"dependencies":{"lakehouse":{"default_lakehouse":"5b489503-4b3b-4fe3-aef7-ac8bdf09211e","known_lakehouses":[{"id":"5b489503-4b3b-4fe3-aef7-ac8bdf09211e"}],"default_lakehouse_name":"Backup_LH","default_lakehouse_workspace_id":"be3544c2-423d-46f9-b8bc-50b7c1fd7296"}}},"nbformat":4,"nbformat_minor":5}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove guids from lakehouse items

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readme?

@AzureNick
Copy link
Contributor

code was pushed through in another PR

@AzureNick AzureNick closed this Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants