Solved

Object already open error for SQL Compact 3.5

Posted on 2010-08-31
1
735 Views
Last Modified: 2012-05-10
I have an application written in Delphi 2010 using dbGo components that accesses a SQL Compact 3.5 database.

The app worked ok against SQL Server 2008 but now i have ported it to Compact 3.5 I am getting problems.

When I open some datasets using a simple "select * from <tablename>" I get an error message "Object is already open" but other tables can be opened OK.

This is repeatable after i reboot my PC, and when I move to a test app that just opens one dataset/table.

Any ideas?
0
Comment
Question by:soozh
1 Comment
 

Accepted Solution

by:
soozh earned 0 total points
ID: 33570919
this probem was related to the dbGo components that could not handle a nvarchar field more than 127 characters long...
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

791 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