synapse database

arkiboys 9,706 Reputation points
2022-08-22T12:54:16.67+00:00

In synapse notebook,
spark.sql("CREATE DATABASE IF NOT EXISTS db_databaseName")
df.write.mode("overwrite").saveAsTable("tbl_tableName")

the above completed successfully.
Question:
In Data tab, under workspace/SQL database, I do not see this database?
Am I looking in the correct place for this database and table I just created in notebook?
Thank you

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Bhargava-MSFT 31,361 Reputation points Microsoft Employee Moderator
    2022-08-22T18:48:02.423+00:00

    Hello @arkiboys ,

    Welcome to the MS Q&A platform.

    When you use the notebook it will connect to the Apache spark pools. When you create the database from there, that means it’s a lake database.

    But if you open SQL script and create DB from there, it will connect to the serverless SQL pool. When you create the DB from here, it will create as a serverless DB.

    If you connect to the serverless endpoint using SSMS, you will see all lake databases as well as SQL serverless DBs.

    233744-image.png

    233683-image.png

    233745-image.png

    I hope this helps.

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.