using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
DataTable dt = new DataTable();
for (int i = 0; i < 100000000; i++)
{
dt.Columns.Add(i.ToString());
if (i % 10000 == 0)
Console.WriteLine(i.ToString());
}
}
}
}
--
--Have fun, Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com
"Franck" wrote:
> I need to know what is the limit of column you can put in a datatable
> which is inside a dataset.
> i search on MSDN but i was only able to find the maximum amount of
> rows which is 16millions something. Column must have a limit also i
> guess. what it is. because i have dynamic column builder and i wonder
> if it would eventually crash.
>
> thanks
>