MySQL as a bridge for SQL Server 2008 in Linux (Ubuntu) - mysql

In Windows, there is a link table feature in SQL Server (or MS Access). Basically, if I link SQL-Server and MySQL, then when my apps write something in SQL-Server, the MySQL is also updated via ODBC connection.
Basically the flow is: win-apps -> sql-server 2008 -> (via win-odbc) mysql (linux)
Now I want to reverse the process in Linux environment into:
the flow I want is: nix-apps -> mysql (linux) -> (via nix-odbc?) sql-server 2008...
Is this possible?

If you want to connect to SQL Server from unixODBC there are a couple of options commercially Easysoft SQL Server ODBC driver or if you prefer an un-supported free version the Free TDS ODBC driver
Other ODBC drivers are available but may not be compatable with unixODBC.

Related

Using workbench to connect to SQL server on management studio

I have been trying to connect to the server on Microsoft SQL Management Studio using Workbench via an IP.
But I cannot seem to connect whatsoever, is workbench even supported with Database engine servers.
I am connecting with the root username, could that be the problem too?
If you are referring to MySQL Workbench and SQL Server, MySQL is a visualization tools for MySQL Server and databases. You cannot access other servers with it. SSMS or SQL Server Management studio is the visualization tool for SQL Server databases. These both databases use almost similar syntax and structure but are totally different entities in terms of Parent Company and access.
In Layman's terms, when you try to enter an IP in Workbench, it tries to find and access a MySQL Server but doesn't find it and hence does not connect. It is not a SSH Client which connects to any server specified.
There is one way to connect SQL Server from MySQL Workbench and that is database miration.
Find More Information Here:
I recommend SQL Server Management Studio for SQL Server Access and visualization.
For connecting to SQL Server using Python, consider PyODBC (preferred) or pymssql as documented here

MySql database to Microsoft Server Managemant Studio

I have installed ODBC driver in order import Mysql database to MS sql Management Studio but still not connecting. What should I do?
You have installed MS SQL Management Studio which can connect with MS SQL Server to manage, create objects etc. There is nothing you should do from MS SQL M Studio to MySQL Server.
You have to install MySQL Workbench (free) to do your job. You have to install MySQL Workbench, export your data from it to '.sql' and then import it into your MS SQL Server after converting the SQL format from MySQL to MSSQL.
OPTION 2
Create MS Access database. Link both MS SQL Server's tables as well as MySQL Server's tables in it. (MS Access works great with MySQL Server).
Do simple copy and paste from one table (say MySQL S) to other (say MS SQL S) within MS Access.

Oracle database - link to MySql on Mac?

I'm working with a remote Oracle database and would like to create a link to a local MySQL database on my Macbook Pro. From what I've read it sounds possible, but I'm not sure how to get things setup.
I believe I need ODBC connection info setup on my Mac in the odbc.ini file. I can't find where that file should be, or what info to enter into it. I've come across Mac app "ODBC Manager" which looks like it should help with setup, but I see no instructions on how to use it. Can ODBC connection info be setup through other clients like Sequel Pro or SQL Developer?
I'm currently running Mac OS X 10.10.5 (Yosemite). I could update to Sierra if that would make the odbc setup/linking easier.
Thanks,
Steve
You don't need to upgrade OS X, in any case.
Are you trying to make MySQL consume data from Oracle? I do not believe this is possible.
Or make Oracle consume data from MySQL? This is done with DG4ODBC, an Oracle helper application, as Oracle -> DG4ODBC -> ODBC driver for MySQL -> MySQL.
DG4ODBC is available for various platforms (which do not include OS X). You'll need an ODBC driver for MySQL (such as those from my employer) installed on the same platform; DG4ODBC will need to be TCP/IP accessible by Oracle from its host; and MySQL on your Mac will need to be TCP/IP accessible by DG4ODBC from its host.

Linux MS SQL ODBC Driver for MySQL Workbench iODBC

I am running MySQL Workbench on Ubuntu 12.04. MySQL workbench cannot use FreeTDS for migration of MSSQL 2000 to MYSQL, it wants to use iODBC. I cannot find a deb/ubuntu MS SQL 2000 ODBC connector that I can use with iODBC.
All the documentation assumes you are running MySQL Workbench under Windows. I tried that, but had too many issues. Based on 3 days to googeling, trial and error, I think it will work better with MySQL Workbench running the migration from Ubunto instead of Windows.
Does anyone know of an ODBC driver for Ubuntu that will work with MySQL Workbench/iODBC?
Thanks!
JR
To clarify: iODBC is NOT a driver, is a driver manager. FreeTDS is a driver and you need both to use migration wizard. All detailed instructions how to setup you can find in link below:
Installing a driver for Microsoft SQL Server and Sybase ASE in Linux and Mac
The MySQL migration forum contains a number of sticky links to various resources that may help you with your task.
How-To, Blog post
List of links to ODBC drivers for various RDBMSes (and MS Access)

Connecting to Oracle database in windows server 2003 from amazon ubuntu 10.04 instance

I have an oracle database in windows 2003 server.
I have created an amazon instance (ubuntu 10.04).
Here,I have to run some kettle jobs which populate data to mysql database from oracle database.
i.e when the kettle job is started,it should access the oracle database in windows server
and populate my destination database in mysql.
But I don't know how to connect to the oracle database.
I'm using JNDI connection to access both my source and destination databases.
Why don't you use a ODBC connection ?
Connecting to an Oracle database via and ODBC driver requires the following steps:
Install the ODAC (Oracle Data Access Components) or Oracle Client on
the Workstation or application Server.
Setup the SQLNET and TNSNAMES files in the Client or ODAC home’s
Admin directory.
Use the ODBC Data Source configuration tools to create the ODBC Data
Source.
To download the ODAC go to Oracle ODAC
This can be done in windos and linux as well !