Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default reading longvarchar(484), data always empty in Excel

I have a problem with reading data from Oracle. When reading a
longvarchar, I get nothing - it does not read any data out.
The code 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 M$ 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading data arrays from multiple data files in excel Hankjam[_2_] Excel Discussion (Misc queries) 0 February 7th 08 08:29 PM
Reading data from excel P.Nishanthan Excel Programming 0 May 3rd 07 09:20 AM
Reading data from an Excel cell den1s Excel Programming 2 April 10th 06 07:37 PM
reading data in to Access From Excel nuti Excel Programming 1 January 4th 06 01:50 PM
Reading excel data into another aplication Sean Bartleet Excel Programming 2 October 19th 05 02:15 PM


All times are GMT +1. The time now is 03:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"