-
-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to connect to Azure SQL #1324
Comments
I'm also seeing this issue |
We are running 3.6.6 and still getting the same issue while connecting to Azure SQL. Is there any fix to this issue? |
Same issue with 3.6.7 and a Azure SQL Server 2012 $ export TDSDUMP=~/tmp/freetds.log logs
|
I believe the problem lies in the MS SQL driver that pgloader depends on. Specifically see: Could you please open an issue there and follow-up when we have a fix for it? |
Created the above issue. Though is there anything that can be done in the meantime to workaround this issue? Although I also do not see any I am running pgloader in a docker container. I am just getting:
|
Hmm... the maintainer of that dependency says they are not maintaining it anymore.... any other option for fixing Azure connectivity? |
Stumbled upon the same issue ourselves. archimag/cl-mssql#10 fixes it in our case. |
Here's an updated pgloader Docker image with the fix. |
I pulled this Docker image, however, when I tried to use pgloader, I got this error message: Any idea of how to solve, I am using Docker (Docker version 25.0.3, build 4debf41) on Win11. Additionally, I created a Debian VM and got issues too. |
My colleague Esteban found the issue, apparently, you built the image on ARM (maybe Mac) and it was not compatible with x86, so basically it was recompiled using the pgloader exe from Dimitri and your code. In this link, we have the functional image for x86, all the credit to you. docker pull esbalo/pgloader |
pgloader --version
did you test a fresh compile from the source tree?
No
did you search for other similar issues?
Yes
how can I reproduce the bug?
I tried migrating data from Azure SQL to Postgres using docker (see below command), but pgloader wasn't able to connect to Azure SQL due to use of unsupported
USE
command:In the /tmp/pgloader/freetds.log file I found below error:
This is after pgloader sent below command to the mssql db:
where
pgloader
is the mssql db name I used.According to the Azure SQL docs, the USE command is not supported to switch to a different database:
https://docs.microsoft.com/en-us/sql/t-sql/language-elements/use-transact-sql?view=sql-server-ver15
data that is being loaded, if relevant
N/A
How the data is different from what you expected, if relevant
I expect pgloader to be able to connect to Azure SQL
The text was updated successfully, but these errors were encountered: