Solved

DAO dbUseODBC w/ SQL Server text fields?

Posted on 1998-03-12
2
418 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
2 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 100 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now