Solved

Port Access database to MSSQL database

Posted on 2002-05-09
2
204 Views
Last Modified: 2010-04-04
When I port Access database to MSSQLServer database, a strange error accur:"Invalid cursor state".  I never use cursor, How can I prevent this error?
0
Comment
Question by:cookey
[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 2

Accepted Solution

by:
mikepj earned 50 total points
ID: 7002809
Are you using ODBC?  I use a BDE replacement component set for ODBC to MSSQL.  First, a cursor is how you get your data.  In the BDE you may not realize that cursors are ALWAYS being used when you access any dataset.

What happens there is that when I open the dataset, the cursor is not on any record.  I need to say something like:

while mydataset.FetchRecord do
    ...

I can't right away get data out without asking for FetchRecord first otherwise I'll get an error similar to what you have described.

I know of an article where you can learn more about this if you're interested.

MP
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7108917
Finalized by Moondancer - EE Moderator
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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