Re: Linking to MySQL

From: Tudor Sofron (tudor.sofron_at_mydomain.com)
Date: 01/25/05


Date: Tue, 25 Jan 2005 19:31:26 +0200

Hi,
in order to import data from mysql you'll need the followind:
- DSN to MYSQL Server using MyODBC-3.51.06 drivers
- Linked Server to the DSN

the following script:

--sp_tables_ex 'linked_server_name'
use [dababase]
dbcc traceon (8765)
if object_id ([table to import]) is not null drop table dbo.[table to
import]

select * into dbo.[table to import] from openquery ([linked_server_name],
'select * from [table to import] )

Tudor

"Shane" <Shane@discussions.microsoft.com> wrote in message
news:D8F7180E-BCE2-4CBD-BDE7-9DB99301D8DC@microsoft.com...
> Hi,
>
> I have to install a SQL 2000 server. Currently there is a MySQL 4.1
> server
> and I want to link to the server.
>
> I create an ODBC connection, called LinuxBox, to the MySQL server and the
> connection tests successfully but when I try to link the server, I cannot
> get
> access to the tables and have tried all the security options.
>
> If I use MySQL's Administrator from the SQL server, this connects
> successfully as well so I don't see to much problem with the security.
>
> The linked server setup contains the option "Microsoft OLE DB Provider for
> ODBC Drivers" and "LinuxBox" (name of the system dsn).
>
> Is there any other info I need to add in?
>
> Any help would be greatly appreciated as it would make my life a lot
> easier
> in the migration.
>
> Shane



Relevant Pages

  • Re: Problem with bind_param using DBD::mysql
    ... >>>placeholders in the server, via CVS (or I can package it and send it ... syntax; check the manual that corresponds to your MySQL server version ... FAILED tests 73-351 ...
    (perl.dbi.users)
  • Dataset using MySql renders "Parser Error"
    ... Server) I get the a parser error on the dataset file. ... The MySql server on the W2003 server is filled ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: transfering mysql data
    ... > The mysql server on my machine is running under windows and is being ... The most normal use of mysqldump is probably for making a backup of ... See section 4.4.1 Database Backups. ...
    (linux.redhat)
  • Re: I am trying to install and config MySQL ... if there is a FAQ I will read ...
    ... but this newsgroup is dedicated to Microsoft SQL ... Server, so any help here will be limited. ... My goal is to setup and configure the "Community MySQL server" on ... shell because the script is a Unix script. ...
    (comp.databases.ms-sqlserver)
  • Re: Feature Matrix Question...
    ... it accesses a LINUX MySQL server on our LAN as its primary ... > D7 Pro was local only as well. ... >> 'dbexpress Server Connectivity'? ... >> then you need Server Connectivity? ...
    (borland.public.delphi.non-technical)