How to establish a connection to MySQL in vb 6.0 - vb6

i want to establish a connection to my site database which using MySQL how to do it ?
i'm using visual basic 6.0
or simply read a text file from server

Related

How can I run my project on client pc without installing SQL server on client pc

I have developed a c# windows application which uses SQL server 2012 database in Visual Studio 2015 which is running well on my pc.
I am to install this application on a number of computers without SQL server installed on it, but when I run the application, its gives me database connection error.
My question is, how can I create the setup file to be able to run the app on those clients pc without installing SQL server on all those computers. Please I need your help.
Thank you.
Am Emmanuel.
Use an Azure database and have the clients connect to that.
Have a look at https://azure.microsoft.com/en-us/services/sql-database/
Alter your application connection string and make sure you keep the connection string secret.
Server=tcp:myserver.database.windows.net,1433;Database=myDataBase;User ID=mylogin#myserver;Password=myPassword;Trusted_Connection=False;Encrypt=True;MultipleActiveResultSets=True;
An important fact is that the clients need to allow communication via port 1433.
If this is not an option create an API application and query the database via that.
If you need a private database per client you can use a database file and connect to the file
https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-express-localdb?view=sql-server-ver15
Update based on reply
You can create a pop-up on the application allowing the users to add valid settings and credentials when your appsettings.json is blank or "a test connect" to the database fails.

SQL Server Compact Database File

I have a SQL Server Compact Database file (.sdf) that I am trying to connect through using Visual Studio 2017. I have installed SQLight / SQL Server Compact ToolBox with NuGetPackage Manager.
I have placed a SqlDataSource on the ASPX page.
I click new "Connection" Select "SQL Server Compact 4.0 (Simple by ErikEJ)"
Put in the Data Source.
Test Connection "Test connection succeeded".
Click OK and I get this error
Exception of type 'Microsoft.VisualStudio.Web.Data.InternalException' was thrown
I have searched google can not find anything about this. I can connect to different SQL Server databases but not to this .sdf.
Any recommendations?
SqlDataSource does not work with SQL Server Compact (or vice versa). Use for example EF Core or ADO.NET for data access instead.

Error when adding Oracle DB to ODBC connection

Hi everyone here,
I am pretty new to Oracle DB configurations as I have been using SAS and Microsoft SQL all this while.
What i want to do is to add Oracle DB to ODBC(64-bit) in a new server.
This is the scenario:
Server A:- Existing Application server that has Oracle configured in ODBC(64-bit)(Been using for the past 3 years, configured by other people).
Server DB:- The Database server
Server B:- Brand new server that i want to configure Oracle DB in ODBC(64-bit)(Brand new).
I copy every single details of the server information in Server A ODBC for the same Oracle DB and put it in Server B ODBC. I have both Server A and Server B remote connection side by side and do "Test Connection".
Server A can connect successfully. However, Server B is giving me this error:
SQLState=08004
This is my first time trying to configure for ODBC to Oracle DB. I have previously configured many Microsoft SQL DB without any issue. Do take note that i have not installed any Oracle driver or any necessary-tool needed for ODBC to link with Oracle as i do not know of any. Is there anything i have to install for this to work or any necessary settings need to be done before configuring it?
All this while for Microsoft SQL connection to ODBC, i just put in the DB credentials and voila.
Your help is very much appreciated.

Connecting to Oracle DB with tunnel from Visual Studio 2013

I have to connect to an external Oracle database. For this I use putty to create an ssh tunnel and then sqldeveloper as a client.
This is the connection from sqldeveloper and it works fine:
Now I have to consume this data from an ASP.NET application. I installed the oracle packages for entity framework but when I type "localhost" from the Server Explorer it tries to connect to a local instance of Oracle.
What can I do to fix it?

Bidirectional Synchronization between Compact and SQL Server DB in Windows Mobile 6.5

I followed the link http://mobileworld.appamundi.com/blogs/andywigley/archive/2008/12/08/building-a-sync-services-for-ado-net-solution-for-mobile-devices.aspx
and was able to sync DB.
Problem is that it is only for static connection string and Server IP where SQL server DB is located which i provided through designer wizard.
now i want to change the connection string and Server IP as provided in some file.So that user can change the Server DB location and synchronize.I don't know how to proceed.Please Help
In the tutorial the MiddleTierServiceLibrary project has an App.Config file with the DB connection string. You can set the DB connection there.

Resources