473,386 Members | 1,752 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,386 software developers and data experts.

ADO appears corrupted?

I am having huge problems with my dataset. The change I made was that I was
reading all the information from a plain text file (include column names and
data etc.). Now, I have encrypted the file, then I decrypt it (it decrypts
just fine). I then put the strings obtained in an array and parse each line
(earlier, I was using readline and then parsing each line). Anyway, to cut
a long story short, it appears to create the DataSet, but nothing works - it
won't even recognize the column names. Even in my watch window, if I put in
an expression, I get an error as shown below:

ds.Tables("Profiles").Select("ProfileID='0'") Run-time exception thrown :
System.Data.EvaluateException - Cannot find column [ProfileID].

So you would think I don't have a column by that name. Well in the same
Watch Window, I get the following:

ds.Tables("Profiles").Columns(0).ColumnName "ProfileID" String

Which means that column exists! What is going on? And how can I fix it?

Please help! My software is stuck on this and I am trying to meet a
deadline!

Thanx in advance,
--
Anil Gupte
Jun 27 '08 #1
5 941
Siv
Anil,
Just a guess, but do you need the double quotes around the
"Select("ProfileID='0'") " ie will it work with

ds.Tables("Profiles").Select(ProfileID='0')

Siv
"Anil Gupte/iCinema.com" <an*******@icinema.comwrote in message
news:u1**************@TK2MSFTNGP03.phx.gbl...
>I am having huge problems with my dataset. The change I made was that I
was reading all the information from a plain text file (include column
names and data etc.). Now, I have encrypted the file, then I decrypt it
(it decrypts just fine). I then put the strings obtained in an array and
parse each line (earlier, I was using readline and then parsing each line).
Anyway, to cut a long story short, it appears to create the DataSet, but
nothing works - it won't even recognize the column names. Even in my watch
window, if I put in an expression, I get an error as shown below:

ds.Tables("Profiles").Select("ProfileID='0'") Run-time exception thrown :
System.Data.EvaluateException - Cannot find column [ProfileID].

So you would think I don't have a column by that name. Well in the same
Watch Window, I get the following:

ds.Tables("Profiles").Columns(0).ColumnName "ProfileID" String

Which means that column exists! What is going on? And how can I fix it?

Please help! My software is stuck on this and I am trying to meet a
deadline!

Thanx in advance,
--
Anil Gupte

Jun 27 '08 #2
Anil Gupte/iCinema.com wrote:
I am having huge problems with my dataset. The change I made was
that I was reading all the information from a plain text file
(include column names and data etc.). Now, I have encrypted the
file, then I decrypt it (it decrypts just fine). I then put the
strings obtained in an array and parse each line (earlier, I was
using readline and then parsing each line). Anyway, to cut a long
story short, it appears to create the DataSet, but nothing works - it
won't even recognize the column names. Even in my watch window, if I
put in an expression, I get an error as shown below:
ds.Tables("Profiles").Select("ProfileID='0'") Run-time exception
thrown : System.Data.EvaluateException - Cannot find column
[ProfileID].
So you would think I don't have a column by that name. Well in the
same Watch Window, I get the following:

ds.Tables("Profiles").Columns(0).ColumnName "ProfileID" String

Which means that column exists! What is going on? And how can I fix
it?
My first guess would be that the column name 'appears' to be "ProfileID", but in
fact has some extra non-printing character on it.
What does
?ds.Tables("Profiles").Columns(0).ColumnName = "ProfileID"
evaluate to? Is it the same as
?
?ds.Tables("Profiles").Columns(0).ColumnName.Trim = "ProfileID"

If you have gone through text, compression, decompression, reconstruct table, it
seems possible. Going back to that code, and using Trim on all the names before
assigning them, might clean it up.
Jun 27 '08 #3
No that will not work (Itriedd it just in case). In fact the correct way to
do it would be

dim strSelect as string = "ProfileID='" & defaultprofile & "'"

dim dr as datarow() = ds.Tables("Profiles").Select(strSelect)
--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
"Siv" <g@removethistextsivill.comwrote in message
news:9B**********************************@microsof t.com...
Anil,
Just a guess, but do you need the double quotes around the
"Select("ProfileID='0'") " ie will it work with

ds.Tables("Profiles").Select(ProfileID='0')

Siv
"Anil Gupte/iCinema.com" <an*******@icinema.comwrote in message
news:u1**************@TK2MSFTNGP03.phx.gbl...
>>I am having huge problems with my dataset. The change I made was that I
was reading all the information from a plain text file (include column
names and data etc.). Now, I have encrypted the file, then I decrypt it
(it decrypts just fine). I then put the strings obtained in an array and
parse each line (earlier, I was using readline and then parsing each
line). Anyway, to cut a long story short, it appears to create the
DataSet, but nothing works - it won't even recognize the column names.
Even in my watch window, if I put in an expression, I get an error as
shown below:

ds.Tables("Profiles").Select("ProfileID='0'") Run-time exception thrown :
System.Data.EvaluateException - Cannot find column [ProfileID].

So you would think I don't have a column by that name. Well in the same
Watch Window, I get the following:

ds.Tables("Profiles").Columns(0).ColumnName "ProfileID" String

Which means that column exists! What is going on? And how can I fix it?

Please help! My software is stuck on this and I am trying to meet a
deadline!

Thanx in advance,
--
Anil Gupte


Jun 27 '08 #4
I meant to send this to the group:
I thought that I had checked that, but surprisingly I get

ds.Tables("Profiles").Columns(0).ColumnName = "ProfileID"

and

ds.Tables("Profiles").Columns(0).ColumnName.Length = 10

!!! It should be 9!

However, I cut and paste the first line into Notepad and Word, but cannot
see any extraneous characters. Any idea how to solve this puzzle? How does
one see a "null character"?

Thanx,
Anil Gupte

But anyway, that was the right track. I usedd Trim and it worked! I am
still wondering where these characters got introduced and what they are
(they are not spaces or tabs or even the vbNull character).

Thanx,
--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
"Anil Gupte/iCinema.com" <an*******@icinema.comwrote in message
news:u1**************@TK2MSFTNGP03.phx.gbl...
>I am having huge problems with my dataset. The change I made was that I
was reading all the information from a plain text file (include column
names and data etc.). Now, I have encrypted the file, then I decrypt it
(it decrypts just fine). I then put the strings obtained in an array and
parse each line (earlier, I was using readline and then parsing each line).
Anyway, to cut a long story short, it appears to create the DataSet, but
nothing works - it won't even recognize the column names. Even in my watch
window, if I put in an expression, I get an error as shown below:

ds.Tables("Profiles").Select("ProfileID='0'") Run-time exception thrown :
System.Data.EvaluateException - Cannot find column [ProfileID].

So you would think I don't have a column by that name. Well in the same
Watch Window, I get the following:

ds.Tables("Profiles").Columns(0).ColumnName "ProfileID" String

Which means that column exists! What is going on? And how can I fix it?

Please help! My software is stuck on this and I am trying to meet a
deadline!

Thanx in advance,
--
Anil Gupte


Jun 27 '08 #5
"Anil Gupte/iCinema.com" <an*******@icinema.comschrieb
I meant to send this to the group:
I thought that I had checked that, but surprisingly I get

ds.Tables("Profiles").Columns(0).ColumnName = "ProfileID"

and

ds.Tables("Profiles").Columns(0).ColumnName.Length = 10

!!! It should be 9!

However, I cut and paste the first line into Notepad and Word, but
cannot see any extraneous characters. Any idea how to solve this
puzzle? How does one see a "null character"?
for each c in ds.Tables("Profiles").Columns(0).ColumnName
debug.print(ascw(c).tostring("X2"))
next

Output?
Armin
Jun 27 '08 #6

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

Similar topics

1
by: WKC | last post by:
Recently, one of our database's mdf and ldf was corrupted. We were able to bring back the database with the capability of importing and querying the data. However, the data is not the full list. ...
0
by: Anup Jishnu | last post by:
Hi, I have installed ASP.Net application on a system. When accessing the Application from within the LAN, it works fine. However, when I access the application from the Internet, some pages...
3
by: Bob Hynes | last post by:
Hi All, Does anyone know of a place where a corrupted mdb(front-end) can be sent and have that place be able to tell me what got corrupted within the db? Here's the issue; All pc's are WindowsNT...
28
by: Lee Rouse | last post by:
Hello all, This is going to be a rather lengthy "question". I have an Access 2k database, separated front end/back end. Front end copies are on about 30 workstations and used frequently during...
3
by: Colleyville Alan | last post by:
I posted the other day that the Incremental Search box that I had been using was no longer working properly. When I checked the code against an older version that was working properly, the changes...
3
by: Leinad Kong | last post by:
I'm using Access 2002, as front-end and back-end as well: 1) I faced database corrupted problems, when more than 1 user edit concurrently. I'm using All-records Locking, and open-exclusively as...
0
by: Jerry O | last post by:
Hi, I have a forms authenticated application that appears to have a problem when redirecting users whose session has timed out. The web form is posted via a ‘get' When they click a submit...
5
by: CarlWSummers | last post by:
I'm doing something wrong. I'm parsing a string into rational numbers (int/int) by looking for spaces in the string, assinging a substring of the original string to a temporary variable, and...
9
by: advance scout | last post by:
HELP! My database is suddenly corrupted. My computer was acting funny (very sluggish) and was shut down. Access had been already been closed down but computer was acting very slow , so perhaps it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...

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.