Stop being the product.
Become the owner.
or
sign uplog in

How do I properly write the server and port for an Express…

How do I properly write the server and port for an Express typescript API that uses mssql with the tedious driver?

My express app (typescript) uses the following properties in its connection configuration:

`server: 'localhost\\SQLEXPRESS01',`

`port: 1433,`

`database: 'MyDatabase'`

`When I try to run a function against my database using the mssql package (tedious driver), I get the error:`

>`ConnectionError: Port for SQLEXPRESS01 not found in localhost`

I'm running SQL Express 2022
#programming #technology #dev
source
earnings
3,000 mlx total
$0  total
engagement
3 views
0 reactions

0 comments