Skip to content

Support automatic table creation on SQL Azure #65

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

Closed
quinvit opened this issue Dec 20, 2016 · 3 comments
Closed

Support automatic table creation on SQL Azure #65

quinvit opened this issue Dec 20, 2016 · 3 comments
Assignees
Labels
enhancement up-for-grabs This issue waits for a contributor to fix it.

Comments

@quinvit
Copy link
Contributor

quinvit commented Dec 20, 2016

It looks like support AzureSQL well if we create log table manually. Could we adjust script to create log table to support AzureSQL too?

https://i.gyazo.com/fdd7e79b7dd210b255d163126b85044d.png

@nblumhardt nblumhardt changed the title Support AzureSQL Support automatic table creation on AzureSQL Dec 24, 2017
@nblumhardt nblumhardt changed the title Support automatic table creation on AzureSQL Support automatic table creation on SQL Azure Dec 24, 2017
@nblumhardt nblumhardt added enhancement up-for-grabs This issue waits for a contributor to fix it. labels Jan 3, 2018
@MV10 MV10 changed the title Support automatic table creation on SQL Azure Support automatic log table creation on SQL Azure Oct 7, 2018
@MV10
Copy link
Contributor

MV10 commented Oct 14, 2018

@quinvit Are you saying the IF NOT EXISTS test fails on Azure SQL?

Azure SQL has other differences that conflict with recent changes to this sink. Easy to validate during configuration, but noting these in case this issue leads to some sort of Azure SQL -specific changes:

  • a clustered index is required
  • XML column data types not supported

@MV10 MV10 changed the title Support automatic log table creation on SQL Azure Support automatic table creation on SQL Azure Oct 14, 2018
@MV10
Copy link
Contributor

MV10 commented Oct 14, 2018

It appears the IF NOT EXISTS syntax should work on Azure SQL (I don't have time to try it right now). This Microsoft quickstart tutorial for Azure SQL has you begin by doing exactly that:

https://docs.microsoft.com/en-us/sql/azure-data-studio/quickstart-sql-database?view=sql-server-2017#create-the-tutorial-database

@ckadluba ckadluba self-assigned this Apr 22, 2020
@ckadluba
Copy link
Member

ckadluba commented Apr 22, 2020

Recently I implemented the Managed Identities for Azure authentication in this sink and while testing it on Azure I also tested the table autocreation. It worked without problems. The service principal has to have the necessary permissions on the database though.

Here are the screenshots from my test. The first one shows the sink configuration, the second one shows the database table that was created by the sink.

#222 (comment)

I'm closing this issue as automatic table creation seems to work with Azure as of today with the sink version 5.4.0-dev-00304.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement up-for-grabs This issue waits for a contributor to fix it.
Projects
None yet
Development

No branches or pull requests

4 participants