Using the Azure SDK for iOS, I have an app writing to the database. I'm now trying to configure a query using ODBC and Excel. As I'm on a Mac, only JDBC is an option.
JDBC connection only gives "Network error IOException: Connection refused"
I have setup up the Azure firewall settings for the machine IP.
Anyone with any Azure/iOS dev experience?
Thanks
Martin
Please use Microsoft JDBC Driver and make sure your connection string conforms SQL Azure Connection string. Required properties are:
Encrypt=True
Trusted_Connection=false
Database=[database name]
You shall have no issues with this setup.
Related
In order to connect to an IBM DB2 database, I am using DBeaver with an ODBC type of connection. But since I found Azure Data Studio very lightweight and portable, I want to ask if there is a way to connect to such databases because all I get is Microsoft SQL Server as connection type.
I trying to connect to a Neo4J version 3.5 database hosted by Graphene using .Net client 4.1.6 which uses driver 4.2 in .NET. I am getting this error:
Connection with the server breaks due to IOException: Unexpected end of stream when performing handshake, read returned 0 Please ensure that your database is listening on the correct host and port and that you have compatible encryption settings both on Neo4j server and driver. Note that the default encryption setting has changed in Neo4j 4.0.
A number of things to note:
I am able to connect to the database using an old version of my app (driver 1.7), so I know the database is accessible
I am able to connect to a local copy of my 3.5 database so I know its not a driver compatibility issue
I am able to connect my Neo4J browser remotely to my Graphene hosted database which is another indication that the database is accessible
I am not able to downgrade the version of the driver in my new app. I tried to set Encryption level to EncryptionLevel.Encrypted. Any help as to why this error is occuring would be helpful.
I have a MVC application which is using Azure SQL database for data storage. I have created a docker image for the same.
Later, I have setup Kubernetes cluster on Ubuntu 18.4 using Kubeadm. The Linux VM is is created on azure cloud.
Initially, i have deployed my app on the single node cluster and the application was working as expected without any SQL connection issue. Then I have created two VM on the cloud and used it as Node 1 (master) and Node 2. Now i am facing an SQL connection issue after deploying my app on Node 2 machine.
Unhandled Exception: System.Data.SqlClient.SqlException: 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: 35 - An internal exception was caught) ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: Resource temporarily unavailable
I tried and verified below options-
Added IPs to Azure SQL database firewall settings
From Linux Machine, tried to connect SQL database using sqlcmd
POD network is install correctly (calico)
Tried adding outbound rule for SQL port 1433 on VM
I have created a SQL database on VM and tried to connect this database from MVC app and it is also working.
Can someone please help me to diagnose and fix this issue? Please let me know if you want more details on this.
I'm evaluating TeamCity 9.0.4 and using HSQLDB.
Now trying to setup MS SQL Server 2014 as External Database.I don't have a named instance(NULL).
So I tried the following connection URL
connectionUrl=jdbc:sqlserver://<host>:1433;databaseName=<database name>
connectionProperties.user=<user>
connectionProperties.password=<password>
When I trying to load the build server I'm getting this message.
TeamCity is starting
Continuing attempts to connect to the database
TeamCity server is connecting to MSSQL database. The database server
is not started yet, or the connection properties are not properly set.
And also I checked the log file, this is what I got.
[2015-05-20 14:08:34,513] INFO - jetbrains.buildServer.STARTUP -
Current stage: Continuing attempts to connect to the database
SQLSERVER is up,I think there is a problem with connection URL.
What can I do to solve this.
TeamCity 9.x Documentation Setting up an External Database
Thanks DevOps.
My mistake, I was testing TeamCity locally.
Problem was with the SQL Server Network Connection.
TCP/IP was disabled for SQLEXPRESS
Enable TCP/IP for SQLEXPRESS
Open SQL Server Configuration Manager
Go to Protocols for SQLEXPRESS under SQL Server Network
Configuration.
Right-click on TCP/IP and choose Properties. Set Enabled = YES.
Better check this too, click on IP Addresses tab and find the section
IP All. Set TCP Port to 1433.
System.ComponentModel.Win32Exception: The network path was not found
This is the error I am getting trying to visit my AWS deployed ASP MVC website. The connection string works with another shared host that I use, so I have a strong feeling that something within my AWS instance of SQL Server 2012 is blocking the connection.
I am new to AWS and IIS. Is there any sort of firewall that I need to be opening up?
The solution was adding an outgoing MS SQL rule to my security group.