Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linked Servers to a UniVerse db

Status
Not open for further replies.

miklosb

Programmer
Dec 9, 2003
1
CA
I have my SQL server connecting through an OLE DB Adapter for ODBC to a UniVerse database running on a unix box. The linked server connection is made, however I cannot access the data other than viewing what is in the tables from SQL Enterprise Manager.

My question is;
How--through an SQL statement--can I access this data? The Connection name appropriately is simply 'DSN' .. and a table within it resides named 'CM'

This is what I have tried in Query Analyzer, with the following error:


---------------------
SELECT *
from OPENQUERY(dsn,'SELECT CUST from CM')

Server: Msg 7347, Level 16, State 1, Line 1
OLE DB provider 'MSDASQL' returned an unexpected data length for the fixed-length column '[MSDASQL].CUST'. The expected data length is 10, while the returned data length is 6.
----------------------

Is there a way to set the returning length?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top