Home All Groups Group Topic Archive Search About

changing ordinal position in access table

Author
25 Oct 2006 7:43 PM
adiel_g
I want to re-arrange some of the fields in an access table.  I know
this could be done from the previous microsoft database objects.  I am
not sure if ADO.NET can do this.  Can you change the ordinal position
of fields in a table from ADO.NET?

Thanks Before Hand,
Adiel

Author
25 Oct 2006 10:30 PM
Jeff Dillon
Why? Select field1, field2 from Table1 then Select field2, field1 from
Table1

Jeff
<adie***@hotmail.com> wrote in message
Show quote
news:1161805404.083730.309740@b28g2000cwb.googlegroups.com...
>I want to re-arrange some of the fields in an access table.  I know
> this could be done from the previous microsoft database objects.  I am
> not sure if ADO.NET can do this.  Can you change the ordinal position
> of fields in a table from ADO.NET?
>
> Thanks Before Hand,
> Adiel
>
Author
26 Oct 2006 9:43 AM
Miha Markic [MVP C#]
Yep, Jeff is correct. Why would you want to re-arrange fields?
Just use a select statement(s) that address fields by name instead of index
(which is a bad way to address them).

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

<adie***@hotmail.com> wrote in message
Show quote
news:1161805404.083730.309740@b28g2000cwb.googlegroups.com...
>I want to re-arrange some of the fields in an access table.  I know
> this could be done from the previous microsoft database objects.  I am
> not sure if ADO.NET can do this.  Can you change the ordinal position
> of fields in a table from ADO.NET?
>
> Thanks Before Hand,
> Adiel
>
Author
26 Oct 2006 7:27 PM
Paul Clement
On 25 Oct 2006 12:43:24 -0700, adie***@hotmail.com wrote:

¤ I want to re-arrange some of the fields in an access table.  I know
¤ this could be done from the previous microsoft database objects.  I am
¤ not sure if ADO.NET can do this.  Can you change the ordinal position
¤ of fields in a table from ADO.NET?

No, not without dropping and re-adding the column.


Paul
~~~~
Microsoft MVP (Visual Basic)

AddThis Social Bookmark Button