all groups > sql server programming > february 2006 >
You're in the

sql server programming

group:

changing ordinal position of a field


Re: changing ordinal position of a field Rick Sawtell
2/23/2006 12:00:00 AM
sql server programming:
[quoted text, click to view]

I'm not sure what that matters to you. The database stores the data in
whatever order makes the best sense to it. That said, the easy way would
be to do something like:

SELECT col1, col2, col3 -- Use the order that you want the data
displayed in
INTO SomeTempTable
FROM OldTable

DROP OldTabe

SELECT *
INTO NewTable
FROM SomeTempTable

DROP SomeTempTable


Rick Sawtell
MCT, MCSD, MCDBA


changing ordinal position of a field rameshsaive NO[at]SPAM gmail.com
2/23/2006 4:55:43 AM
Does anyone have the idea of how to change the ordinal position of a
field using DDL statements in access 97? I know i'm posting it in
incorrect group, as this is the only active group i've visited till
now.

thanks in advance
Re: changing ordinal position of a field rameshsaive NO[at]SPAM gmail.com
2/23/2006 5:39:26 AM
Thanks Rick for your info.

There is no problem with the order of the fields in the database. But
it causing me a hell of a problems in my 100+ reports developed in
crystal reports 8.5.

I've a table named "employee", has a field named "postdesc". Initially
the size of the field "postdesc" is limited to 100 but now it has
increased to 200. Unfortunately, i've dropped the column & recreated
it using DDL Statements.
But this has changed the ordinal position of the field (it has added
the field at the end of the table). Now the reports which depends on
this field is not working properly. i know this is a problem with
crystal reports, but it is very cumbursome to change 100+ reports.

Please help me on this.
AddThis Social Bookmark Button