Connecting Apache Superset to SQL Server - sql-server

I'm new to Superset and very excited to get started. I need to connect to my data on Microsoft SQL Server Express 2019. I did follow these instructions. Now when I try to connect using the following connection string:
mssql+pymssql://ss_user:password008#100.0.0.44\SQLEXPRESS:1433/EmpDataMaster
I get the following error. Can someone please help?
ERROR: (builtins.NoneType) None [SQL: (pymssql._pymssql.OperationalError) (20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Server is unavailable or does not exist (100.0.0.44\\SQLEXPRESS)\n') (Background on this error at: https://sqlalche.me/e/14/e3q8)] (Background on this error at: https://sqlalche.me/e/14/dbapi)

Related

How do I connect to microsoft sql server remotely with raspberry pi 4

I am trying to connect to microsoft sql server remotely with Raspberry pi 4 but I am getting error as below. What is the reason?
I proceeded as stated in the link but failed. text
import pyodbc
dsn='sqlserverdatasource '
user='....'
password='...'
database='msbd'
con_string='DSN=%s';UID=%s;PWD=%s;DATABASE=%s;'% (dsn, user, password, database)
print("debug1")
cnxn=pyodbc.connect(con_string)
print("debug2")
Error:
[08S01] [08S01][FreeTDS][SQL Server]Unable to connect: Adaptive Server is unavailable or does not exist (20009) (SQLDriverConnect)
I proceeded as stated in the link but failed. text
Error:
[08S01] [08S01][FreeTDS][SQL Server]Unable to connect: Adaptive Server is unavailable or does not exist (20009) (SQLDriverConnect)

Apache Superset 'Unable to Connect to SQL Server 2017' which is enabled with TLS v1.2

I am using apache-superset 0.35.2 to connect to SQL Server 2017 and whenever I turned-on TLS v1.2 of the SQL Server, I get the following:
OperationalError: (20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive server is unavailable or does not exist...
When I turn it back to TLS 1.0 it works fine. I have already tried using pyodbc but wouldn't work either. The Encrypt=yes URI parameter is not recognized too. I also tried other connect_args parameters like sslmode in the Extras field but are not recognized either.
I am using pymssql 2.2.2

Microsoft SQL Server, Error: 18470 and 18456 Occurring Simulaneously

I was trying to connect to SQL Server but it seems impossible to do so as both Windows authentication and SQL server authentication are giving error as described in the screenshot posted below:
The following error has occurred:
Login failed for user 'MicrosoftAccount\harshitsaini15#gmail.com'. Reason: The account is disabled.
Sql Server Management Startup error
Most of the resolutions solve either solve any one of the error but none of them give insights on how to resolve the issue if both accounts are locked down. Even the same error occurred while upgrading from version 2016 to 2017.

Cannot connect to MSSQL with Docker via VSC (MacOS)

I am trying to connect to MSSQL via Visual Studio Code with installed mssql extension. I did pull and run SQL Server 2017 container image with Docker and I am trying to make a connection, although I do get an error:
mssql: Failed to connect: System.Data.SqlClient.SqlException
(0x80131904): A network-related or instance-specific error occurred
while establishing a connection to SQL Server. The server was not
found or was not accessible. Verify that the instance name is correct
and that SQL Server is configured to allow remote connections.
(provider: TCP Provider, error: 25 - Connection string is not valid)
---> System.Net.Sockets.SocketException (0x80004005): Undefined error: 0 at System.Data.SqlClient.SN
The container image is running - I did log on to MSSQL through terminal, but I can't with Visual Studio Code. Do I have to provide an instance as well? Where I can find it - cannot find it on docker inspect statement.
Did you guys have similar problem and maybe found a solution?
Okay I managed to solve the problem. I do connect to sql server container on 1401 port (localhost,1401 on VSC), but apparently when you start a container you need to change the password for sa. Rookie mistake :) Thanks for trying to help

Pentaho connection issue

I installed MS SQL Server 2008 R2 on my laptop, just to practice SQL and it is running on localhost. I also downloaded Pentaho to learn a BI tools. The problem is I have been getting the below error for a week or so and cannot seem to find a solution.
Error connecting to database [test] : org.pentaho.di.core.exception.KettleDatabaseException:
Error occured while trying to connect to the database
Error connecting to database: (using class net.sourceforge.jtds.jdbc.Driver)
Network error IOException: Connection refused: connect
org.pentaho.di.core.exception.KettleDatabaseException:
Error occured while trying to connect to the database
Error connecting to database: (using class net.sourceforge.jtds.jdbc.Driver)
Network error IOException: Connection refused: connect
I have tried every possible login combination and also installed the necessary Java drives.
Any help is much appreciated.
At the first, you check sql server is listening on default port, sometimes isnĀ“t take default port(antivirus,firewal, anyway).
Check the PID of SQL server service
type "netstat -a -n -o" command on console
search your PID on it and get your port where your sqlserver is listening

Resources