SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Pulling data from Progress 10.2B into SQL2012


Pulling data from Progress 10.2B into SQL2012

Author
Message
aaron.reese
aaron.reese
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1041 Visits: 902
Hey guys,

I have a 'situation' which I am hoping someone can help me with.

I need to get data from a Progress OPENEDGE 10.2B server and into SQL2012.

I have the drivers installed on the server (32 bit version whilst I am developing in SSDT) and I have set the solution->Configuration Properties->Debugging->Run64BitRuntime = False and so-far, so-good; I am able to connect to the server and export tables and run simple SELECT [columns] from [TABLE] type extracts.

The problem I am running into is that there are text fields in Progress where the length of the text exceeds the SQL-width property that has been set in the Progress DBTOOLS configuration. When this happens it seems to crash the ODBC driver as I get an error and I am looking for a way round this without having to raise a Change Request with appliation support to update all the fields which are giving me an error.

I have changed the output from DT_NTEXT to DT_WSTR (4000) and this has not solved the issue. If I modify the query to limit the length of the output (i.e. instead of Select [Column].... I am doing SELECT left([column],20) or if I try to investigate the length of the text the driver still crashes because these transforms happen after the ODBC has extracted the information (or column metadata) from the source table.

Does anyone know how to 'fool' the query to restrict the data before it is passed downstream to the ODBC driver that does not require any programming or configuration on the Progress server.

TIA

Obiron
Bill-89778
Bill-89778
SSC-Enthusiastic
SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)

Group: General Forum Members
Points: 155 Visits: 2506
Hi Aaron,
I understand your dilemma. I also import from a version 9 database nightly into SQL. 10 is supposed to be coming soon here...

I'm afraid I can't offer much in the way of a workaround. This is always an issue when we do a dump/load of Progress. Rather than make Progress db changes, we trim the fields that cause the issue. In our case, there are just a couple of tables with some older data. Seems the manufacturing package does a better job of limiting that now.

When we first began the import process some years ago, we used txt files from Progress rather than direct query to the db. Adds a step, but possibly would allow you to better control what you input to SQL.

Bill



aaron.reese
aaron.reese
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1041 Visits: 902
Hi Bill,

Further playing around and the SUBSTR() function seems to work for me. Now just to deal with "?" in null date fields. Which eejit decided that nulls should be question marks. SQL just coughs up furballs all over the place, numerics, booleans, dates - grrrr
Michael L John
Michael L John
SSCrazy
SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)

Group: General Forum Members
Points: 2936 Visits: 7792
If this is a one time export, have you tried going from Progress to Excel/Text/Access/etc. and then going into SQL?

Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
Bill-89778
Bill-89778
SSC-Enthusiastic
SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)

Group: General Forum Members
Points: 155 Visits: 2506
Thanks Aaron. I'm planning on moving from an old DTS package to SSIS once we convert to 10. I will remember that.

Will a Data Conversion component catch those '?' characters? Thinking of the old ActiveX portion of the DTS package...

Bill



aaron.reese
aaron.reese
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1041 Visits: 902
Another Gotcha with Progress.

If one of the column names is a reserved word then you need to surround it in "Double Quotes" rather than [square brackets] as you would in T-SQL
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search