?
Solved

DAO dbUseODBC w/ SQL Server text fields?

Posted on 1998-03-12
2
Medium Priority
?
444 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
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 video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

765 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