Home All Groups Group Topic Archive Search About

can I alias an ADO.Net table (tablename)?

Author
7 Mar 2007 8:51 PM
Rich
Greetings,

Is it possible to alias an ADO.Net table?  I have this one table that has a
pretty long name dsDataEntry.Tblsomebigtablename. 

I tried Dim dt As DataTable = ds...Tbl...
Welll, that created table dt, but it did not populate the table.  I guess I
would have to loop through the original table. 

So is there a way to assign a shorter name to the table I need to work with?

Thanks,
Rich

Author
7 Mar 2007 9:00 PM
Rich
Nevermind. 

Dim dt as datatable = ds...tb..Copy

Now I have an exact copy of the table which is really what I need.


Show quote
"Rich" wrote:

> Greetings,
>
> Is it possible to alias an ADO.Net table?  I have this one table that has a
> pretty long name dsDataEntry.Tblsomebigtablename. 
>
> I tried Dim dt As DataTable = ds...Tbl...
> Welll, that created table dt, but it did not populate the table.  I guess I
> would have to loop through the original table. 
>
> So is there a way to assign a shorter name to the table I need to work with?
>
> Thanks,
> Rich

AddThis Social Bookmark Button