Creating a reporting DB (MySQL to MSSQL)
-
Thursday, January 07, 2010 3:38 PM
Hello,
Im fairly new to SQL Server and could use some suggestions. Im creating a new reporting database for one of our vendor supplied applications. The application sits on MySQL and I am in the process of creating a MSSQL database for reporting purposes. Ive worked through the data conversion issues and am now working on the process for updating the database. The databases reside on two seperate servers (Linux to Windows).
Ive created a linked server and written some test SQL statements to move the data using the EXCEPT command. Which is very handy but Im not sure it will work for this situation. The EXCEPT command returns rows that do not exist in the new reporting table, but also returns existing records that have been modified since the last load. The latter causes my insert statements to fail due to table constraints. And the other obvious concern is how the SQL statements would affect system performance running across platforms.
So at the moment Im thinking that truncating the data and reloading may be the better solution. But I would assume this will become an issue as well when the database increases in size.
Anyway, if anyone has any suggestions I would be glad to hear them, thanks ahead of time.- Moved by Tom PhillipsModerator Thursday, January 07, 2010 3:57 PM Possibly better answer from TSQL forum (From:SQL Server Database Engine)
- Edited by sumnerdu Thursday, January 07, 2010 4:23 PM Title Change
All Replies
-
Thursday, January 07, 2010 4:33 PMModerator
It is best to use SSIS for moving data among computers and databases. SSIS package can do insert or update (like MERGE in SQL Server 2008).
Links:
SSIS 2008 Crib sheet
White Paper: Introduction to SQL Server 2008 Integration Services
MSDN Video: Introduction to SQL Server Integration Services 2008 (SSIS) (Level 200)Video: SSIS 2008 - SQL Server Import and Export Wizard
Kalman Toth, SQL Server & BI Training, SSAS, SSIS, SSRS; http://www.SQLUSA.com- Marked As Answer by sumnerdu Thursday, January 07, 2010 4:45 PM
-
Thursday, January 07, 2010 4:38 PMThank you for your response.
We are currently running SQL 2005 but will probably be moving to 2008 in the near future. Is this feature available in 2005 Standard edition? -
Thursday, January 07, 2010 4:42 PMModeratorYes. SSIS is part of SQL Server 2005 software.
Also SSIS import/export wizard is available.
"Look & Feel" wise SSIS 2005 and SSIS 2008 pretty similar.
Kalman Toth, SQL Server & BI Training, SSAS, SSIS, SSRS; http://www.SQLUSA.com

