473,395 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problem related with open and close database

2
Hello Everybody,

i have application with ms-access database in vc++(MFC).while initializing
database with different tables and corresponding fileds,one run time error
message would throw that table name is not found even though it works
properly in debug mode.as well as when i add one line
Sleep(1000);
in place where table name and field name is initialized.
it goes in debug and release mode.
i want to know the reason why this problem is arrived? as sleep is very
temporiary solution for any big application .
Any help would be appriciated.

Thanks and regards
Vibha
Jun 20 '06 #1
2 1186
sashi
1,754 Expert 1GB
Hi Vibha,

what is your OS?? if your using anything OS below Win2K just make sure the c:\temp path exist.. coz i had the same problem when executing an exe created using vb.. i accidentally deleted the c:\temp folder and it gives an error "Network Drive Not Reachable".. funny rite..

in the meantime i'll try to find solution for your problem.. give it a try..
Jun 20 '06 #2
vibha
2
Hi sashi
I am using Windows XP OS.As per OS concern it doesnt have any problem.I checked in C:\temp path also it does exist.
When application is going on why time is expired from mainframe class .
it throw one database_open_error which shows table name is not found.
please go through this code also.

void CArchiveData::InitTableFiledsInfo(CABIADOXConnecti on& Conn, const string& strTable)
{
CTableFieldsInfo TableFieldsInfo;
TableFieldsInfo.SetTableName(strTable);
// Sleep(1000);
TableFieldsInfo.SetFields(GetFieldsForTableFromDB( Conn, strTable));
GetTableFieldsInfo().push_back(TableFieldsInfo);
}

if you have any idea then please guie me.
Thanks and Regards
Vibha

Hi Vibha,

what is your OS?? if your using anything OS below Win2K just make sure the c:\temp path exist.. coz i had the same problem when executing an exe created using vb.. i accidentally deleted the c:\temp folder and it gives an error "Network Drive Not Reachable".. funny rite..

in the meantime i'll try to find solution for your problem.. give it a try..
Jun 21 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Max | last post by:
Hello. This is the first time I've posted to a newsgroup, and I do this because I'm in desperate need of help. I'm working a user management system, and when I activate a user that has registered...
0
by: hiisikukko | last post by:
I have created project management software with Java and MySql and i works fine. This applet gets and writes information directly to MySql database. Problem is that those sqlClauses below(update...
13
by: ldan | last post by:
Hi everybody, I would not consider myself an expert in javascript - but so far whatever I know, helped me reaching my goals. Recently I started to experience a lot of javascript errors related...
2
by: Douglas Buchanan | last post by:
This is a mystery! Why does the boolean value of a record change without my input. What follows describes the situation and the behavior. Table1: Field1: Text Field2: Yes/No Form1 has two...
1
by: Joe Bloggs | last post by:
I am trying display the contents of a table in a web page, select certain rows from that table and then display the fields that I have selected (now table columns) as text in a Label object....
7
by: Nathan Sokalski | last post by:
I am having a problem saving an image with the same name it originally had. I have two similar versions of my code, one in which I close the FileStream used to open the original image before saving,...
4
by: sparks | last post by:
It works fine but when I quit the database. About one in 10 times you quit and the database closes but I end up with an empty Access sitting on the screen and the only way to close it is with task...
0
by: Bishoy George | last post by:
Hi, I have a asp.net 2.0 web application. I want to implement the asynchronous model through http handler in web.config ...
11
by: mrowe | last post by:
I am using Access 2003. (I am also using ADO in the vast majority of my code. I recently read a post that indicated that ADO is not all that is was initially cracked up to be. In the back of my...
5
by: Usman Jamil | last post by:
Hi I've a class that creates a connection to a database, gets and loop on a dataset given a query and then close the connection. When I use netstat viewer to see if there is any connection open...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.