Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Connecting to mssql instances by instance name #264

Open
andresteyn opened this issue Mar 26, 2020 · 1 comment
Open

Connecting to mssql instances by instance name #264

andresteyn opened this issue Mar 26, 2020 · 1 comment
Labels
enhancement new feature or bug with easy workaround

Comments

@andresteyn
Copy link

andresteyn commented Mar 26, 2020

Apologies if this has been addressed elsewhere, but I have searched extensively. How do I connect to a mssql instance such as localhost\sqlexpress?

I have tried all of the following:
npx typeorm-model-generator -h localhost -d sqlexpress\dbname -u sa -x my_password -e mssql -o .
npx typeorm-model-generator -h localhost\sqlexpress -d dbname -u sa -x my_password -e mssql -o .
npx typeorm-model-generator -h localhost/sqlexpress -d dbname -u sa -x my_password -e mssql -o .
npx typeorm-model-generator -h localhost\\sqlexpress -d dbname -u sa -x my_password -e mssql -o .
npx typeorm-model-generator -h sqlexpress -d dbname -u sa -x my_password -e mssql -o . -s sqlexpress

@Kononnable
Copy link
Owner

Discovering mssql server through instance name isn't supported at the moment. You should specify server by host and port instead.

@Kononnable Kononnable added the enhancement new feature or bug with easy workaround label Apr 4, 2020
@Kononnable Kononnable changed the title Connecting to mssql instances Connecting to mssql instances by instance name Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement new feature or bug with easy workaround
Projects
None yet
Development

No branches or pull requests

2 participants