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

Datatable issue

Hi all,

How do I programmatically determine if a datatable already exists in a
dataset?

Regards
John.
Jul 21 '05 #1
4 1030
DataSet.Tables.Contains ("<table name>")

"John" <a@b.com> wrote in message
news:OC**************@TK2MSFTNGP15.phx.gbl...
Hi all,

How do I programmatically determine if a datatable already exists in a
dataset?

Regards
John.

Jul 21 '05 #2
Shiva,

Just an addition, When is that name filled of course in the tablename
By instance with
da.Fill(ds, thistablename)

When the table has no name you cannot find it.

Cor
Jul 21 '05 #3
I agree Cor. I assume the developer would have given a name to the DT.

Thanks.

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:OY**************@TK2MSFTNGP10.phx.gbl...
Shiva,

Just an addition, When is that name filled of course in the tablename
By instance with
da.Fill(ds, thistablename)

When the table has no name you cannot find it.

Cor

Jul 21 '05 #4
Thanks a lot...

"Shiva" <sh******@online.excite.com> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
DataSet.Tables.Contains ("<table name>")

"John" <a@b.com> wrote in message
news:OC**************@TK2MSFTNGP15.phx.gbl...
Hi all,

How do I programmatically determine if a datatable already exists in a
dataset?

Regards
John.

Jul 21 '05 #5

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

Similar topics

1
by: Matthew Wieder | last post by:
I'm finding that the AddRange call in the following code takes several seconds to execute (approx. 4 seconds). DataColumn adcCols = new DataColumn; for (int i=0; i<adcCols.Length; i++) {...
7
by: GaryB | last post by:
I have an untyped datatable that has financial numbers and controls that were populated by code (not a simple fill from a DA). Now I want to insert subtotals into it. I wrote a sub to do so that...
7
by: Raymond Lewallen | last post by:
Which would be the proper way or the reason for using any of the following or combinations of the following? These are the 3 ways I've figured I can do what I want to do, I just don't know which...
4
by: hharry | last post by:
hello all, i have 2 datatables and am trying to transfer rows from datatable a to datatable b i use the datatable.importrow method. the importrow method fails (but does not throw an...
5
by: Frank Hauptlorenz | last post by:
Hello, I recognized some days ago, that returning a DataTable blocks my WCF-Service. Is this a known bug? If I add this table to a new DataSet() and return this, it works. Thank you, Frank
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
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...

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.