473,473 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

temporary work files showing up in getoldDbSchemaTable call

Any help would be appreciated:

I have a routine on an asp.net web page, This code below point to a text
box called lbtable.

public void GetTables( )
{
//string [] TblDName = new string[255];
//string [] TblDType = new string[255];

try
{
this.Conn2 = new System.Data.OleDb.OleDbConnection();
this.Conn2.ConnectionString = curdbstring;
this.Conn2.Open();
tblNames = this.Conn2.GetOleDbSchemaTable(OleDbSchemaGuid.Tab les,
new object[] {null, null, null, "TABLE"});
this.lbtable.DataSource = null;
this.lbtable.Items.Clear();
this.lbtable.DataSource= tblNames;
this.lbtable.DataTextField = "TABLE_NAME";
this.lbtable.DataBind();

}
catch (OleDbException ex)
{
Trace.Write(ex.Message);
}
finally
{
this.Conn2.Close();
}
return;
}

and most of the time it works correctly. However sometimes it show all the
correct tables and some tables up to 4 that start with ~TMPCLP. I
checked the access database and the files do not show up when viewing the
database in access(Access XP). When I refresh the screen, the bad files
still show, however I can not delete these files. If I shut everything down
and reboot, the bad files disappear and may not reappear for a few days.

Thanks in advance for your help

Sincerely
Brian O'Haire
Nov 15 '05 #1
2 1520
Hi,

I guess it shows you temporary tables.
As a workaround you might use a DataView on result table and filter for
tables that don't start with ~.
Substring(table_name, 1, 1) <> "~" or something like that (I didn't test it
though).

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Brian O'Haire" <ge************@cdpswat.com> wrote in message
news:OJ**************@TK2MSFTNGP11.phx.gbl...
Any help would be appreciated:

I have a routine on an asp.net web page, This code below point to a text
box called lbtable.

public void GetTables( )
{
//string [] TblDName = new string[255];
//string [] TblDType = new string[255];

try
{
this.Conn2 = new System.Data.OleDb.OleDbConnection();
this.Conn2.ConnectionString = curdbstring;
this.Conn2.Open();
tblNames = this.Conn2.GetOleDbSchemaTable(OleDbSchemaGuid.Tab les,
new object[] {null, null, null, "TABLE"});
this.lbtable.DataSource = null;
this.lbtable.Items.Clear();
this.lbtable.DataSource= tblNames;
this.lbtable.DataTextField = "TABLE_NAME";
this.lbtable.DataBind();

}
catch (OleDbException ex)
{
Trace.Write(ex.Message);
}
finally
{
this.Conn2.Close();
}
return;
}

and most of the time it works correctly. However sometimes it show all the correct tables and some tables up to 4 that start with ~TMPCLP. I
checked the access database and the files do not show up when viewing the
database in access(Access XP). When I refresh the screen, the bad files
still show, however I can not delete these files. If I shut everything down and reboot, the bad files disappear and may not reappear for a few days.

Thanks in advance for your help

Sincerely
Brian O'Haire

Nov 15 '05 #2
Miha

Thanks for the suggestion. I agree that I am picking up the temporary files
however the part that concerned me was that I would check the database with
Access and they did not exist and then refresh the text box from the
database and get the same temporary files. Even though there was no reason
to have temporary files opened. I am the only user of the database. When I
repeated the same procedure sometimes they would show and sometimes they
would not.

Sincerely

Brian O'Haire MCSE MCDBA
and student trying to learn C# and asp.net
"Miha Markic" <miha at rthand com> wrote in message
news:u2**************@TK2MSFTNGP11.phx.gbl...
Hi,

I guess it shows you temporary tables.
As a workaround you might use a DataView on result table and filter for
tables that don't start with ~.
Substring(table_name, 1, 1) <> "~" or something like that (I didn't test it though).

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Brian O'Haire" <ge************@cdpswat.com> wrote in message
news:OJ**************@TK2MSFTNGP11.phx.gbl...
Any help would be appreciated:

I have a routine on an asp.net web page, This code below point to a text box called lbtable.

public void GetTables( )
{
//string [] TblDName = new string[255];
//string [] TblDType = new string[255];

try
{
this.Conn2 = new System.Data.OleDb.OleDbConnection();
this.Conn2.ConnectionString = curdbstring;
this.Conn2.Open();
tblNames = this.Conn2.GetOleDbSchemaTable(OleDbSchemaGuid.Tab les,
new object[] {null, null, null, "TABLE"});
this.lbtable.DataSource = null;
this.lbtable.Items.Clear();
this.lbtable.DataSource= tblNames;
this.lbtable.DataTextField = "TABLE_NAME";
this.lbtable.DataBind();

}
catch (OleDbException ex)
{
Trace.Write(ex.Message);
}
finally
{
this.Conn2.Close();
}
return;
}

and most of the time it works correctly. However sometimes it show all

the
correct tables and some tables up to 4 that start with ~TMPCLP. I
checked the access database and the files do not show up when viewing the database in access(Access XP). When I refresh the screen, the bad files
still show, however I can not delete these files. If I shut everything

down
and reboot, the bad files disappear and may not reappear for a few days.

Thanks in advance for your help

Sincerely
Brian O'Haire


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Frank Millman | last post by:
Hi all I need to generate potentially large reports from a database, and I want to offer the option of print preview before actually printing (using wxPython). I figure that the best way to...
3
by: Rajiv Das | last post by:
VS 2003, XP SP2 ------------------------------------------------------------ DirectoryInfo temporary = new DirectoryInfo( Environment.GetFolderPath(Environment.SpecialFolder.InternetCache));...
5
by: Verane | last post by:
Hi, I have read the thread named "Could not copy temporary files to the output directory" on this newsgroup. And I have the same symptoms on my machine. But I didn't find any solution suitable for...
1
by: bment | last post by:
Will "pop-ups" show up on my temporary internet files? I got to these files through My Computer and the back up drive C and went to temporary internet files. What are stored on those? Is it only...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.