Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSIS package load data from SQl to Mysql Expand / Collapse
Author
Message
Posted Monday, August 13, 2012 5:45 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, August 9, 2013 8:19 AM
Points: 179, Visits: 751
Try to create a SSIS package to insert data from SQL to Mysql.
The setup is as follows
OLE DB connection to SQL db
ADO.net connection to Mysql.
Both works fine I can select from the MYSQL db using the connection manager.
I have setup a step to gather the data from SQL and dump it to a temp table. Trying to insert it to the MYSQL destination is the problem.
The problem I face is that when I try and select my destination table (mysql) I can’t get a list of tables via ado.net destination workflow connection. ‘No tables or views could be loaded’.
How do I select the table I want to insert into in MYSQL using SSIS.
Post #1344090
Posted Monday, August 13, 2012 8:37 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 11:15 AM
Points: 3,964, Visits: 5,204
Have you installed the MySQL OLEDB provider on the machine where the SSIS package is to be run?


____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Post #1344179
Posted Monday, August 13, 2012 8:53 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, August 9, 2013 8:19 AM
Points: 179, Visits: 751
No I used the ODBC version. I just read that I need my source to also use ADO.Net.

http://dbperf.wordpress.com/2010/07/23/sql-server-integration-services-2008-ssis-and-mysql/

When I try to map the MYSQL table I have to create one everytime, even when I do create one. I can never remap it again. So I don't see how this package could ever run as an hourly task id this solution only used as a 1 off.
Post #1344195
Posted Monday, August 13, 2012 9:15 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 11:15 AM
Points: 3,964, Visits: 5,204
I would propose using the OLE DB provider version. It is reusable, i.e. the connection could then be made using an OLE DB destination, with the provider as the relevant MySQL Data provider. All destination tables et al are then visible and available for selection and mapping. The package can then be scheduled for regular execution.

____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Post #1344214
Posted Tuesday, August 14, 2012 2:22 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, August 9, 2013 8:19 AM
Points: 179, Visits: 751
Thanks I will try that, I do need all destination tables to be visable.

Again Thanks.
Post #1344565
Posted Tuesday, August 14, 2012 6:09 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, August 9, 2013 8:19 AM
Points: 179, Visits: 751
Is this available for SQL 2008 as I can't get the connection to work.

When I type in servername,username and password. the initial catalog is greyed out.

Using VS 2008.
Post #1344637
Posted Wednesday, August 15, 2012 2:07 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, August 9, 2013 8:19 AM
Points: 179, Visits: 751
Almost there by following

http://www.packtpub.com/article/mysql-data-transfer-using-sql-server-integration-services-ssis

I can get the data to MYSQL but in have to create a table when creating the SSIS package. It doesn't recognise any of the existing MYsql tables and will not populate them in a drop box.

I want to transfer data to an existing table is it possible?
Post #1345154
Posted Wednesday, August 15, 2012 4:29 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: 2 days ago @ 10:33 AM
Points: 1,956, Visits: 3,292
Is it an option to change your data access method to 'SQL command' rather than 'Table or View', and write the insert statement yourself?
Post #1345197
Posted Wednesday, August 15, 2012 6:04 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, August 9, 2013 8:19 AM
Points: 179, Visits: 751
Not for the destination table, has to be a table or view.
Post #1345225
Posted Wednesday, August 15, 2012 6:24 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 11:15 AM
Points: 3,964, Visits: 5,204
Are you using an OLE DB destination component?
One of the options therein is "SQL Command"


____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Post #1345231
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse