Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DAO dbUseODBC w/ SQL Server text fields?

Posted on 1998-03-12
2
Medium Priority
?
449 Views
Last Modified: 2008-02-01
I try to convert a VB program to use dbUseODBC workspaces. I get the following error when reading a field which is defined as text on MS SQL Server (which would be called memo in VB terms):

Run-time error '0':

S1109: [MS][SQL Server Driver]Invalid cursor position

The type of the field in question is given correctly as dbMemo by DAO. Querying some other field properties, eg Size, produces the same error. While doing some trial and error debugging, I somehow managed to get a message like 'the requested action is not supported with the current version of the cursor library' - so I tried all combinations of OpenRecordset parameters that made sense to me, namely the locking options - to no avail.

Anybody know what´s going on ? Tips?
0
Comment
Question by:kuk010998
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 200 total points
ID: 1090605
Are you using appendchunk/getchunk methods?  Large memo fields are handled differently from normal fields.  The size property does not apply, but the fieldsize property does, when using DAO in VB.  These methods and properties would also map over to your useage as well, I think.
0
 
LVL 1

Author Comment

by:kuk010998
ID: 1090606
You mean I have to replace code like X$=myRecordSet("MyMemoField") with getchunk calls? Care to elaborate (too lazy to go into that code today)?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question