dbTalk Databases Forums  

reading longvarchar(484), data always empty in Excel Options

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss reading longvarchar(484), data always empty in Excel Options in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sonnich Jensen
 
Posts: n/a

Default reading longvarchar(484), data always empty in Excel Options - 10-23-2007 , 11:39 PM






I have a problem with reading data from Oracle in Excel. When reading
a
longvarchar, I get nothing - it does not read any data out.
The code (VBA in Excel) below is in use, and when reading a normal
varchar2 field it
works. The current is a longvarchar(484), and it is always empty,
causing EOF to be true - always - trying to to read data before reads
nothing...
The SQL works well in PHP, DB Explorer and such.... but Microsoft does not
like it,

Help, please...

Set oWS = CreateWorkspace("server", "me", "qwerty", dbUseODBC)
oWS.DefaultCursorDriver = dbUseODBCCursor
oWS.LoginTimeout = 280

Set Connection = oWS.OpenConnection("server", dbDriverNoPrompt,
True, _
"ODBC;DSN=datastuff;UID=me;PWD=qwerty")
Connection.QueryTimeout = 480

sSQL = "select something from whatever"
Set oRec = oConn.OpenRecordset(sSQL, dbOpenDynaset)

If oRec.EOF Then '<- always false, even that SQL returns data
sResult = ""


Reply With Quote
  #2  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: reading longvarchar(484), data always empty in Excel Options - 10-24-2007 , 11:41 AM






On Oct 23, 11:39 pm, Sonnich Jensen <sonnich.jen... (AT) jotautomation (DOT) com>
wrote:
Quote:
I have a problem with reading data from Oracle in Excel. When reading
a
longvarchar, I get nothing - it does not read any data out.
The code (VBA in Excel) below is in use, and when reading a normal
varchar2 field it
works. The current is a longvarchar(484), and it is always empty,
causing EOF to be true - always - trying to to read data before reads
nothing...
The SQL works well in PHP, DB Explorer and such.... but Microsoft does not
like it,

Help, please...

Set oWS = CreateWorkspace("server", "me", "qwerty", dbUseODBC)
oWS.DefaultCursorDriver = dbUseODBCCursor
oWS.LoginTimeout = 280

Set Connection = oWS.OpenConnection("server", dbDriverNoPrompt,
True, _
"ODBC;DSN=datastuff;UID=me;PWD=qwerty")
Connection.QueryTimeout = 480

sSQL = "select something from whatever"
Set oRec = oConn.OpenRecordset(sSQL, dbOpenDynaset)

If oRec.EOF Then '<- always false, even that SQL returns data
sResult = ""
What, exactly, is a 'longvarchar(484)'? That isn't a valid datatype
in Oracle.


David Fitzjarrell



Reply With Quote
  #3  
Old   
jodleren
 
Posts: n/a

Default Re: reading longvarchar(484), data always empty in Excel Options - 10-25-2007 , 01:27 AM



On Oct 24, 7:41 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:
Quote:
On Oct 23, 11:39 pm, Sonnich Jensen <sonnich.jen... (AT) jotautomation (DOT) com
wrote:





I have a problem with reading data from Oracle in Excel. When reading
a
longvarchar, I get nothing - it does not read any data out.
The code (VBA in Excel) below is in use, and when reading a normal
varchar2 field it
works. The current is a longvarchar(484), and it is always empty,
causing EOF to be true - always - trying to to read data before reads
nothing...
The SQL works well in PHP, DB Explorer and such.... but Microsoft does not
like it,

Help, please...

Set oWS = CreateWorkspace("server", "me", "qwerty", dbUseODBC)
oWS.DefaultCursorDriver = dbUseODBCCursor
oWS.LoginTimeout = 280

Set Connection = oWS.OpenConnection("server", dbDriverNoPrompt,
True, _
"ODBC;DSN=datastuff;UID=me;PWD=qwerty")
Connection.QueryTimeout = 480

sSQL = "select something from whatever"
Set oRec = oConn.OpenRecordset(sSQL, dbOpenDynaset)

If oRec.EOF Then '<- always false, even that SQL returns data
sResult = ""

What, exactly, is a 'longvarchar(484)'? That isn't a valid datatype
in Oracle.
Well, that is what DB explorer shows me... anyway, some kind of long
varchar, which shows as a "MEMO". I dont have that well access to the
DB to tell you much more.
When reading those long strings I get those problems.

WBR
Sonnich



Reply With Quote
  #4  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: reading longvarchar(484), data always empty in Excel Options - 10-25-2007 , 12:43 PM



On Oct 25, 1:27 am, jodleren <sonn... (AT) hot (DOT) ee> wrote:
Quote:
On Oct 24, 7:41 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:





On Oct 23, 11:39 pm, Sonnich Jensen <sonnich.jen... (AT) jotautomation (DOT) com
wrote:

I have a problem with reading data from Oracle in Excel. When reading
a
longvarchar, I get nothing - it does not read any data out.
The code (VBA in Excel) below is in use, and when reading a normal
varchar2 field it
works. The current is a longvarchar(484), and it is always empty,
causing EOF to be true - always - trying to to read data before reads
nothing...
The SQL works well in PHP, DB Explorer and such.... but Microsoft does not
like it,

Help, please...

Set oWS = CreateWorkspace("server", "me", "qwerty", dbUseODBC)
oWS.DefaultCursorDriver = dbUseODBCCursor
oWS.LoginTimeout = 280

Set Connection = oWS.OpenConnection("server", dbDriverNoPrompt,
True, _
"ODBC;DSN=datastuff;UID=me;PWD=qwerty")
Connection.QueryTimeout = 480

sSQL = "select something from whatever"
Set oRec = oConn.OpenRecordset(sSQL, dbOpenDynaset)

If oRec.EOF Then '<- always false, even that SQL returns data
sResult = ""

What, exactly, is a 'longvarchar(484)'? That isn't a valid datatype
in Oracle.

Well, that is what DB explorer shows me... anyway, some kind of long
varchar, which shows as a "MEMO". I dont have that well access to the
DB to tell you much more.
When reading those long strings I get those problems.

WBR
Sonnich- Hide quoted text -

- Show quoted text -
And LONG columns don't play well with some interfaces. Which version
of Excel are you using? I can easily retrieve LONG data through an
ODBC connection (using Micro$ofts own driver for Oracle). It may be
VBA causing your 'problems' with LONG columns, but I'm not that
familiar with VBA to make such an 'educated guess'.


David Fitzjarrell



Reply With Quote
  #5  
Old   
jodleren
 
Posts: n/a

Default Re: reading longvarchar(484), data always empty in Excel Options - 10-25-2007 , 11:26 PM



On Oct 25, 8:43 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:
Quote:
On Oct 25, 1:27 am, jodleren <sonn... (AT) hot (DOT) ee> wrote:
On Oct 24, 7:41 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:
On Oct 23, 11:39 pm, Sonnich Jensen <sonnich.jen... (AT) jotautomation (DOT) com
wrote:

I have a problem with reading data from Oracle in Excel. When reading
a
longvarchar, I get nothing - it does not read any data out.
The code (VBA in Excel) below is in use, and when reading a normal
varchar2 field it
works. The current is a longvarchar(484), and it is always empty,
causing EOF to be true - always - trying to to read data before reads
nothing...
The SQL works well in PHP, DB Explorer and such.... but Microsoft does not
like it,

Help, please...

Set oWS = CreateWorkspace("server", "me", "qwerty", dbUseODBC)
oWS.DefaultCursorDriver = dbUseODBCCursor
oWS.LoginTimeout = 280

Set Connection = oWS.OpenConnection("server", dbDriverNoPrompt,
True, _
"ODBC;DSN=datastuff;UID=me;PWD=qwerty")
Connection.QueryTimeout = 480

sSQL = "select something from whatever"
Set oRec = oConn.OpenRecordset(sSQL, dbOpenDynaset)

If oRec.EOF Then '<- always false, even that SQL returns data
sResult = ""

What, exactly, is a 'longvarchar(484)'? That isn't a valid datatype
in Oracle.

Well, that is what DB explorer shows me... anyway, some kind of long
varchar, which shows as a "MEMO". I dont have that well access to the
DB to tell you much more.
When reading those long strings I get those problems.

And LONG columns don't play well with some interfaces. Which version
of Excel are you using? I can easily retrieve LONG data through an
ODBC connection (using Micro$ofts own driver for Oracle). It may be
VBA causing your 'problems' with LONG columns, but I'm not that
familiar with VBA to make such an 'educated guess'.
Excel 2003.
As of VBA, I wrote to the m$.excel newsgroup too, but got absolutely
no response.

I used the oracle driver, changed that to Microsoft, and the result is the
same.

In general I have not got much response on this, seems like noone
knows.

WBR
Sonnich



Reply With Quote
  #6  
Old   
DA Morgan
 
Posts: n/a

Default Re: reading longvarchar(484), data always empty in Excel Options - 10-26-2007 , 10:53 AM



jodleren wrote:
Quote:
On Oct 25, 8:43 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:
On Oct 25, 1:27 am, jodleren <sonn... (AT) hot (DOT) ee> wrote:
On Oct 24, 7:41 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:
On Oct 23, 11:39 pm, Sonnich Jensen <sonnich.jen... (AT) jotautomation (DOT) com
wrote:
I have a problem with reading data from Oracle in Excel. When reading
a
longvarchar, I get nothing - it does not read any data out.
The code (VBA in Excel) below is in use, and when reading a normal
varchar2 field it
works. The current is a longvarchar(484), and it is always empty,
causing EOF to be true - always - trying to to read data before reads
nothing...
The SQL works well in PHP, DB Explorer and such.... but Microsoft does not
like it,
Help, please...
Set oWS = CreateWorkspace("server", "me", "qwerty", dbUseODBC)
oWS.DefaultCursorDriver = dbUseODBCCursor
oWS.LoginTimeout = 280
Set Connection = oWS.OpenConnection("server", dbDriverNoPrompt,
True, _
"ODBC;DSN=datastuff;UID=me;PWD=qwerty")
Connection.QueryTimeout = 480
sSQL = "select something from whatever"
Set oRec = oConn.OpenRecordset(sSQL, dbOpenDynaset)
If oRec.EOF Then '<- always false, even that SQL returns data
sResult = ""
What, exactly, is a 'longvarchar(484)'? That isn't a valid datatype
in Oracle.
Well, that is what DB explorer shows me... anyway, some kind of long
varchar, which shows as a "MEMO". I dont have that well access to the
DB to tell you much more.
When reading those long strings I get those problems.
And LONG columns don't play well with some interfaces. Which version
of Excel are you using? I can easily retrieve LONG data through an
ODBC connection (using Micro$ofts own driver for Oracle). It may be
VBA causing your 'problems' with LONG columns, but I'm not that
familiar with VBA to make such an 'educated guess'.

Excel 2003.
As of VBA, I wrote to the m$.excel newsgroup too, but got absolutely
no response.

I used the oracle driver, changed that to Microsoft, and the result is the
same.

In general I have not got much response on this, seems like noone
knows.

WBR
Sonnich
We might know, and probably do know, if you were able to adequately
describe what is going on.

As has been pointed out to you there is no data type with the name
you mention and you seem to be unable, or unwilling, to do a describe
on the table and supply DDL so you leave us just guessing.

If you work in an Oracle shop why not just ask a DBA for help?
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.