Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Problem with openquery from SQL Server 2012 Connecting to Progress thru odbc Linked Server


Problem with openquery from SQL Server 2012 Connecting to Progress thru odbc Linked Server

Author
Message
jorichard31
jorichard31
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 5
Hi Team,

I have the below query:
Select tmp.* from openquery( [LinkedServerName], 'select * from viewname1' ) as tmp.

When I executed this query, I am getting below error. Could you please help?
Msg 7354, Level 16, State 1, Line 1
The OLE DB provider "MSDASQL" for linked server "LinkedServerName" supplied invalid metadata for column "columnname". The precision exceeded the allowable maximum.

Column Details at Source (Progress): (As I don't have any form of access to Progress DB, I am not able to provide you its version)
Field Name Field Label DataType Format Extent Initial
DailyBalance Daily balance decimal zz,zzz,zzz,zz9.99- 12 0

In SQL Server:
Field Name DataType Format
DailyBalance Numeric (26,2) - Based on existing program guidance from team management, I doubled the size in SQL Server compare to Progress.

Basically, I am pulling all records from ODBC View thru Linked Server and storing into a local table type variable. Then insert into a permanent table. All theses are in procedure.

Before I executed the procedure, I wanted to check thru manual execution. But keep getting the above error. I increased the format to numeric (30,2), (30,4) but no luck.

Your prompt help is greatly appreciated

Thanks
Gladias
jorichard31
jorichard31
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 5
Hi All,
I found a fix at http://knowledgebase.progress.com/articles/Article/000046672 and it worked when I used CAST(DailyBalance AS NUMERIC(38,6)). However, when I executed the procedure with the sam emodifications, I am still getting the same error. Thus, the problem still exists. I am still researching it...
Thanks
Gladias
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