I created new application using Kotlin by Android Studio and I have a connection between my and SQL server Database.
The problem is Anyone can unpack my APK file and see my Connection Info
like SQL Server IP and database name and user and password of this database
i want to secure this Connection Info and none can see it. How can I do so?
You will need to create an API on the server and thus your Android application will only know how to connect the API, while the db data will be known by the API only. This would mean a restructuring of your project, so instead of being connected directly to a database you will only be connected to the API.
Related
I want to connect an SQL Server Database hosted in Azure configured with MFS from Oracle SQL-Developer.
Currently I am able to connect to this db server using SSMS just by putting the Server Name, user name & password, Default Network Protocol and choosing the Authentication type as 'Azure Active Directory - Universal with MFA.
But when using SQL-Developer it asks for Http/Https, Hostname, Port, Server Path & Service Name where I don't know what should be entered.
I tried by only entering the URL (the server Name I use is SSMS), but it failed to connect.
Do anyone know how I can make the connection successful?
To access the Azure SQL database in the Oracle SQL developer tool, you must download the JTDC driver which will be useful to connect to third party database.
I am able to make the successful connection from SQL developer tool to Azure SQL database by following below procedure:
Download the latest JTDC jar file from the URL below: https://sourceforge.net/projects/jtds/
Upload the jar file in the below path: Tools>>preferences>>Database>>Third Party JDBC driver
After that, trigger the new connection from the developer tool and then you can get option to select SQL server
Give the connection name, credentials and host name to access the database.
From SSMS:
From SQL Developer tool:
I'm trying to connect to my Microsoft Azure SQL database to Visual Studio 2019. I've tried signing in using SQL Server Authentication, included the password and proceed to "Connect". However, I'm unable to connect and it returns with the error number 10060.
These are the settings (including) in Azure which I configured before opening Visual Studio 2019.
Under set firewall - Public Network, selected "selected networks"
Enabled allow Azure services and resources to access this server.
Additional information
Error number 10060 means the SQL Server client cannot connect to the server
The same error appears when I tried connecting to Azure Data Studio.
The server I am trying to connect to is a Development server.
MSSQL SERVER error 10060 can be caused by that the default SQL Server settings do not allow remote connections as mentioned in MS Document
As mentioned by #Lakshmi Vijayakumar's document there are multiple ways for 10060 error
MySQL configuration issues
Firewall restrictions
Wrong MySQL connection string
Refer his Document it may help to resolve your issue.
Also, you can refer #Vamshi B latest article
There are samples out there how to connect SSMS database to NodeJS.
However they show it using your own credentials like example on this link:https://www.tutorialsteacher.com/nodejs/access-sql-server-in-nodejs
Question is, how to connect it without using own credentials? Directly may be with window authentication instead?
So that your application (NodeJS) connected with SSMS database without your own credential being saved in the server.
Thanks in advance.
I created a SQL Server on Azure (https://saigkillsbacktrace.database.windows.net) with a Database. Now i'm trying to connect with it via SQL Studio.
Studio tells me, that the host is unknown. But what to do?
Has anyone ever connected ASP (ASP, aka classic not .NET) to an Azure db? I've had three experts looks at connection strings, endpoints, firewalls, db accounts and they're finding
the database works and contains data
the database is accessible remotely by our local machines via Visual Studio and SQL Server Manager
ASP runs on web server on the VM machine
All the connection strings offered by Azure fail
All db related ports are open
If you're connecting to the Azure DB from SSMS, everything is probably configured properly.
Which client library are you using to connect to the Azure SQL instance? You may need to download and install the MS SQL Native Client on the VM, which I know works.
Are you using ADO in your app? If so, and assuming you have installed the Native Client, this connection string will work:
Driver={SQL Server Native Client 10.0};Server=tcp:[serverName].database.windows.net; Database=myDataBase;Uid=[LoginForDb]#[serverName];Pwd=myPassword;Encrypt=yes;