How to connect to MS SQL Server 2008 via Airflow Connection? - sql-server

I am trying to connect MS SQL Server 2008 in Airflow Connection and I am getting the following error:
(20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Server is unavailable or does not exist (server_name)\n')"
However, the connection works through the DBeaver DBMS. Has anyone encountered a similar error? As an assumption that the problem is related to the drivers, because MS SQL Server 2008 is used and the following driver to connect:
Microsoft JDBC Driver 9.2 for SQL Server 9.2.0.0
Is it possible to install that driver via extra parameter in the Airflow Connection?

Try to install the Microsoft ODBC driver for SQL Server (Linux).
Works on ubuntu 20.04, airflow 2.4.1.

Related

ODBC Driver 11 for SQL Server not supported

I have a windows 10 machine that I need to set an odbc connection to sql server. When adding the new connection in odbc, there is no odbc driver for SQL Server, so I went and downloaded it from Microsoft both versions and and when I try to install it I receive an error of the following:
Microsoft_Error

Unable Connect to SQL Server 2019 using PYODBC

Using PYODBC I am trying to connect to SQL Server 2019 which is not installed locally.
But I am getting below error:
pyodbc.InterfaceError: ('IM002', '[IM002] [Microsoft][ODBC Driver
Manager] Data source name not found and no default driver specified
(0) (SQLDriverConnect)')
My Connection String is:
MSSQL_conn_str = "DRIVER={ODBC Driver 18 for SQL Server};DATABASE=<>;UID=<>;PWD=<>;SERVER=<IP>;"
MS SQL Server Installed in Windows Server 2019. Below ODBC Driver are there:
ODBC Driver 18 for SQL Server, ODBC Driver 17 for SQL Server, SQL Server, SQL Server Native Client 11.0.
Ports are open, telnet responds successfully.
I thought I should do it via DSN. So I tried.
While creating DSN I am getting below error.
Any solution how to solve this ?

How to connect to a SQL Server database from a separate Oracle SQL Developer's Server?

I cannot connect to a SQL Server database through SQL Developer (Oracle).
It gives the following error: "Status : Failed Test failed: I/O Error: Unknown packet type 0x48"
I was able to connect with SQL Server Management Studio, but I need to connect through SQL Developer.
I tried using JDBC jtds 1.2, and 1.3.1 and both didn't work.
I was able to connect with SQL Server Management Studio, but I need to connect through SQL Developer. I use JDBC jtds 1.2, but I've already tested it with 1.3.1 and it wasn't either.

How can I connect Access 2013 Database to SQL Server (linked tables) Using ODBC?

I'm working with a client for whom we're trying to link SQL Server tables to Access. Simple enough, right? The problem is that the machine is running Office 2013 on Windows 7. The SQL Server is, I believe, SQL 2017 (99% sure of this).
Yet no matter what I try, SQL Server native, ODBC 11, ODBC 13, using the same Windows Integrated authentication that I'm able to use successfully in SQL Server Management Studio, I cannot create an ODBC connection (either user, or system, or file), it always tells me "Server Not Found"
By request, the full error message. I have to type this manually so (the error message comes from the ODBC Create Data Source...
Connection Failed:
SQLState: '08001'
SQL Server Error: -1
[Microsoft][ODBC Driver 11 for SQL Server] SQL Server Network
Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]
Connection Failed:
SQLState: 'HYT00'
SQL Server Error: 0
[Microsoft][ODBC Driver 11 for SQL Server]Login timeout expired.
So here are more specifics:
I am remoting into a Windows 7 Desktop. Call this PC#1
We connect to SQL Server through Remote Desktop Connection (SQL Server is not installed on this machine) Call this PC#2
If I log on to PC#2 using remote desktop connection (the machine where SQL Server is actually installed) I can create the ODBC connection with no problem.
However, the Access is installed on PC#1. If I try to connect to the SQL Server database by using PC2\SQLEXPRESS, that's when we get the error.
DETAILS:
Operating System: Windows 7
Office 2013
SQL Server 2017 (via Remote Desktop) - I can connect to this no problem in SSMS using the same integrated security credentials that I'm trying here.
This is something I can do in my sleep in Access 2016 and Windows 10, but I'm running out of ideas fast. Any ideas?

[ODBC SQL Server driver][DBMSLPCN]SSL Security error

I am getting Error
"[microsoft][ODBC SQL Server driver][DBMSLPCN]SSL Security error"
while connecting throught SQLDriverConnect() using
connection string "DRIVER=SQLServer;SERVER=localhost\XXXSQLEXPRESS;DATABASE=xxxDB;UID=xxxxxx;PWD=xxxx;Trusted_Connection=No";
It was working earlier before re-installing
SQL Server 2014.
But able connect using SQLCMD and SQL Server management studio.
Thanks for your kind help in advance
You are using the legacy SQL Server ODBC driver, which is provided with Windows for backwards compatibility. Try using either the SQL Server Native Client or ODBC Driver 13.1 for SQL Server. Those support TLS 1.2.

Resources