Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

How to connect AL Object Designer in Vs Code to my-DB instead of the default DB ?

(0) ShareShare
ReportReport
Posted on by 30

is it possible to open another database different than the default one on AL object designer  ??!

for example, i've    1- Demo Database BC (15-0)  Default one

2- DemoData the vs code & object designer open the first one by default 

so , how could i make the object designer open the second DB 

i also have change in BC Administration the DB Name to myDB and re download the symbols and restart the vs  but unfortunately no thing change,

the AL Object Designer in VS still  open the default DB ??! any suggest ?!!

  • srttel Profile Picture
    on at
    RE: How to connect AL Object Designer in Vs Code to my-DB instead of the default DB ?

    Hi Mostafa,

    for troubleshooting reason, I would start the webclient just to verify it connect to the db you are expecting.

    Another easy way to verify that nothing is wrongly cached, is to stop the NST, keep it stopped, see if you get an error in Visual Studio code.

    Run “clear credentials cache” in VS code from the command palette.

    If you mean by anychance my-DB is the tenant name in a multi-tenant environment and not the database name you might use the parameter "tenant": in your launch.json file.

    If still in doubt, I suggest to either report this issue to you Dynamics Business Central partner or if you are a Dynamics Business Central partner, log a service request with the support team.

  • MostafaDeve Profile Picture
    30 on at
    RE: How to connect AL Object Designer in Vs Code to my-DB instead of the default DB ?

    Dear Sebastian Röttel,

    i already change the database name across the NST Instance and restarted the service and re-download Symbols , also created new Project throw the VS Code but the AL Object Designer still look at the Default DB.

  • srttel Profile Picture
    on at
    RE: How to connect AL Object Designer in Vs Code to my-DB instead of the default DB ?

    With Visual Studio Code you are developing against an instance of an NST which is connected to a database.

    Once you have make sure the NST instance is connected to the correct database within e.g. the administration console and you have restart the NST instance after you changed the database name, your VS Code should consider that change.

    In your launch.json file you setup the connection to the NST instance you want to use.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 815

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 569

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans