‎06-05-2019 06:22 PM - edited ‎06-05-2019 06:25 PM
Hello,
We seem to have a problem when we import a database with the MEGA Data Extractor tool.
The DataType is always SQL_CHAR, even if it is never the case:
Example:
<?xml version="1.0" encoding="ISO-8859-1"?> <XMDB NameId="Xmdb" Version="2.0"> <DATABASE NameId="Database" DatabaseName="IBORRAWDATA"> <QUALIFIER NameId="QUALIFIER.SQLPrmSpecific032Qualifier" QualifierValue=""> </QUALIFIER> <TABLE NameId="TABLE.BPIPE" DBBName="BPIPE" Order="9999" Comment=""> <TBLCOL NameId="TBLCOL.BPIPE.CYCLE095ID" Order="1" DBBName="CYCLE_ID" Comment="" Decimale="NULL" Length="NULL" NotNull="M" DefaultValue=""> <COLDATATYPE NameId="COLDATATYPE.BPIPE.CYCLE095ID" DataType="SQL_CHAR" TypeTech="SQL_SQL Server 2008bigint"/> </TBLCOL> <TBLCOL NameId="TBLCOL.BPIPE.SECURITY" Order="2" DBBName="SECURITY" Comment="" Decimale="NULL" Length="50" NotNull="M" DefaultValue=""> <COLDATATYPE NameId="COLDATATYPE.BPIPE.SECURITY" DataType="SQL_CHAR" TypeTech="SQL_SQL Server 2008varchar"/> </TBLCOL> <TBLCOL NameId="TBLCOL.BPIPE.ERROR095MESSAGE" Order="3" DBBName="ERROR_MESSAGE" Comment="" Decimale="NULL" Length="400" NotNull="N" DefaultValue=""> <COLDATATYPE NameId="COLDATATYPE.BPIPE.ERROR095MESSAGE" DataType="SQL_CHAR" TypeTech="SQL_SQL Server 2008varchar"/> </TBLCOL> <TBLCOL NameId="TBLCOL.BPIPE.LEI095NAME" Order="4" DBBName="LEI_NAME" Comment="" Decimale="NULL" Length="255" NotNull="N" DefaultValue=""> <COLDATATYPE NameId="COLDATATYPE.BPIPE.LEI095NAME" DataType="SQL_CHAR" TypeTech="SQL_SQL Server 2008varchar"/> </TBLCOL> <TBLCOL NameId="TBLCOL.BPIPE.LEI095ULTIMATE095PARENT095COMPANY" Order="5" DBBName="LEI_ULTIMATE_PARENT_COMPANY" Comment="" Decimale="NULL" Length="20" NotNull="N" DefaultValue=""> <COLDATATYPE NameId="COLDATATYPE.BPIPE.LEI095ULTIMATE095PARENT095COMPANY" DataType="SQL_CHAR" TypeTech="SQL_SQL Server 2008varchar"/> </TBLCOL> <TBLCOL NameId="TBLCOL.BPIPE.DELTA095MID" Order="6" DBBName="DELTA_MID" Comment="" Decimale="6" Length="6" NotNull="N" DefaultValue=""> <COLDATATYPE NameId="COLDATATYPE.BPIPE.DELTA095MID" DataType="SQL_CHAR" TypeTech="SQL_SQL Server 2008decimal"/>
We tried different ODBC drivers, with always the wrong result:
- ODBC Driver 11 for SQL Server
- ODBC Driver 13 for SQL Server
- SQL Server
- SQL Server Native Client 10.0
- SQL Server Native Client 11.0
The server is SQL Microsoft Server 2016 (so should work with ODBC Driver 13), but Mega seems to recognize a SQL Microsoft Server 2008.
Is it possible to let the ODBC driver do everything for exemple ? Might it work ?
We tried to manually change some DataType before after the Data Extractor tool but before importing to Mega, and it mostly works, but it would be impossbile to do so in our project of importing hundreds of tables.
Thank you
Solved! Go to Solution.
‎14-05-2019 05:59 PM
Case opened.
Thank you
‎09-05-2019 08:46 AM
This a good reason to open a case so that we get a diagnostic
Please do open a case.
‎07-05-2019 10:50 PM - edited ‎07-05-2019 10:51 PM
Hello Jerome,
Thanks for your reply.
We actually believe there is a bug in the MEGA Data Extractor present in V2R1U3: we tried the Debug ODBC Reverse (found in https://community.mega.com/t5/custom/page/page-id/mega-kb-solution?sid=50157000000k6RjAAI) and with the exact same parameters, it gives the correct values that we need to extract. Funny, however, there is absolutely no debug log at all.
Best,
Raphaël.
‎07-05-2019 04:18 PM
This is not a known issue.
Please open a case so that we can perform further investigations.
‎07-05-2019 03:51 PM
Hi Jerome,
Yes, we use the 32-bit driver:
In SQL Server Management Studio, a simple exec sp+columns give the right info:
Thank you.
‎07-05-2019 09:08 AM
Did you use 32 bit version of the Windows Data source manager (and 32 bit ODBC driver)?
Using the MEGA Data extractor requires to create data source.
With all versions of HOPEX (at least up to HOPEX V2R1), it is required to use the 32 bit version of the Windows Data source manager. This is not so easy to find on 64 bit machines.
Run odbcad32.exe from C:\Windows\SysWOW64
Ex: run "C:\Windows\SysWOW64\odbcad32.exe"