473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

connect to windows mysql from linux

Hello I want to connect to a windows sql server 2000 database from linux.


Any one have idea to connect to the the system
May 9 '07 #1
2 1738
First things first: We need to know on what network your sql server is on. Is it on an Intranet or the internet? If its on the the intranet the you will have configure your linux server to communicate with you sql server. use samba do that. Once the two machines can talk then either use the complete domain or IP address of you sql server in your connection statement.

if its on the internet the you use the complete domain name of that sql server in your connect statements
May 9 '07 #2
Hi!
I am actually in the situation right now where in I am trying to establish a connection using openrowset within our MS SQL server 2005 (in a domain) to a visual foxpro database stored and is shared in linux box (sles 9) using samba 3.0.4. and won't work, the error is: OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Visual FoxPro Driver]File 'employee_latest.dbf' does not exist.".
Msg 7350, Level 16, State 2, Line 1
Cannot get the column information from OLE DB provider "MSDASQL" for linked server "(null)".

Here's my script:
select idnumber from openrowset('MSDASQL','Driver=Microsoft Visual FoxPro Driver;SourceDB=\\samba\payroll\;SourceType=DBF',' select * from employee_latest')

Note: I tried copying the employee_latest table to my desktop and to other window servers and the script just worked flawlessly. I don't what went wrong or what's the issue between samba and sql server.

Any thoughts would be appreciated thanks.
[
QUOTE=zeebiggie]First things first: We need to know on what network your sql server is on. Is it on an Intranet or the internet? If its on the the intranet the you will have configure your linux server to communicate with you sql server. use samba do that. Once the two machines can talk then either use the complete domain or IP address of you sql server in your connection statement.

if its on the internet the you use the complete domain name of that sql server in your connect statements[/quote]
Mar 10 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Eric W. Holzapfel | last post by:
Hello PHP group, I have mysql running on a linux box. I have apache (2.0.4) running on a diff linux box. I have php 4.X. I can connect to the mysql db using odbc from a windows box, but...
0
by: Primaria Falticeni | last post by:
Hello, I installed MySQL 4.0.14 on a new Linux machine unde the form of two servers: one master and one slave. I met many unsynchronized events so it was appears conflicts from this late of the...
0
by: Chris W | last post by:
I have mysql 4.0.16 on my windows machine and have just installed suse linux on another machine. It comes with mysql 4.0.15. After I got the user setup I was able to use the mysql client on the...
3
by: Pugi! | last post by:
On a freshly installed Fedora C3 (incl. webserver apache php mysql) i get the following problem when connecting to mysql through a browser (phpMyAdmin): : #2002 Can't connect to local MySQL...
16
by: MLH | last post by:
Using MS Access, I have attached to MySQL servers in other states and other countries on the other side of my router. But when I use the MySQL ODBC driver 3.51 to connect to a MySQL server on my...
0
by: Nick | last post by:
hi, all, I have a window mysql verison, which works really well with SyncLog. Now I have a vm linux, and install MySql4.0 server on it. I can use command line, mysql-administrator to access it...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
5
by: smatta | last post by:
I have just installed MySql version 5.0-18 on Red Hat Fedora Core 4. It is running but I cant connect to it using MySql Query Browser running on my pc. >From my pc, I can telnet to the sql...
3
by: cubano | last post by:
Hi there: I need URGENT help about this .. I wrote a program application for windows which can add and delete data from this application, it working fine with my own MySQL install on the same...
3
by: emsik1001 | last post by:
Hi http://dev.mysql.com/doc/query-browser/en/mysql-query-browser-connection.html I'm trying to connect from my Windows based PC to a dedicated server which is running on Linux system. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.