question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SQL Azure connection?

See original GitHub issue

I am trying to connect to SQL Azure:

knex({
  client : 'mssql',
  connection: {
    server : 'myserver.database.windows.net',
    port: 1433,
    user : 'myuser',
    password : 'mypass',
    database : 'mydatabase',
    encrypt: true
  }
});

I am getting Knex:Error Pool2 - Error: Timed out acquiring resource

Is it not supported or am I doing something wrong?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

15reactions
edziscommented, Jul 7, 2016

@jeffijoe this worked for me:

knex({
  client : 'mssql',
  connection: {
    server : 'myserver.database.windows.net',
    user : 'myuser',
    password : 'mypass',
    options: {
        port: 1433,
        database : 'mydatabase',
        encrypt: true
    }
  }
});

Had to try out tedious directly and compare it to the config manipulations applied by knex and `mssql.

1reaction
willmorgancommented, Oct 19, 2018

@kibertoad Reviewed!

Read more comments on GitHub >

github_iconTop Results From Across the Web

SSMS: Connect and query data - Azure SQL Database & SQL ...
Connect to your database · Select Options in the Connect to Server dialog box. In the Connect to database drop-down menu, select mySampleDatabase ......
Read more >
How to Connect to Azure SQL Database - Adam the Automator
To connect to an Azure SQL database with Visual Studio Code, you'll need to install the mssql extension for Visual Studio Code. Once...
Read more >
Connecting to SQL Azure with SQL Management Studio - DZone
Steps to Connect SSMS to SQL Azure · 1. Authenticate to the Azure Portal · 2. Click on SQL Databases · 3. Click...
Read more >
How to access azure sql database from local ... - Pragim Tech
Click on Add SQL Server icon. ... Expand Azure node. You will see all databases in Azure. Click on the Azure database you...
Read more >
Create and connect to an Azure SQL DB in 6 easy steps
Create a resource group · Create an Azure SQL logical server · Create an Azure SQL database · Configure the firewall · Create...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found