StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Database Deployment Toolkit
»
Database Deployment Toolkit (How do I?)
»
Controlling column order
Controlling column order
Post Reply
Like
1
Controlling column order
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Keith Chisarik
Keith Chisarik
posted 15 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 939,
Visits: 40K
How does one control the column order when maintaining fields in the DDT? Ideally the column order that ends up in SQL should match the order displayed in the DDT. It does not, additionally I have an occurrance where the column order is different when deployed to two different SQL servers even after the tables on both servers have been dropped. This is wreaking havoc with some import functions I have.
Keith Chisarik
Sigma Data Systems
Reply
Like
1
Keith Chisarik
Keith Chisarik
posted 15 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 939,
Visits: 40K
sorry but...bump
Keith Chisarik
Sigma Data Systems
Reply
Like
1
Edhy Rijo
E
Edhy Rijo
posted 15 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Hi Keith,
I think it is a problem with MS-SQL. Using other tools to design the tables, I have noticed that in order to keep the columns in the same order as I design them, it will have to rename the table, create a new one with the current field order, then copy the data from the renamed table, and then delete the renamed table.
If you want I can send you a copy of the script that is being generated for this "Copy" functionality.
Edhy Rijo
Reply
Like
1
Edhy Rijo
E
Edhy Rijo
posted 15 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Anyway, here is sample of the generated script in which it will rename, create new structure with fields in order then copy data back to new table, and delete renamed table.
Edhy Rijo
Attachments
Modify SQL scipt.txt
(
153 views,
1.00 KB
)
Reply
Like
1
Keith Chisarik
Keith Chisarik
posted 15 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 939,
Visits: 40K
I want the tool to do this for me, ideally. Ill try your idea if Trent doent come up with something. I think the DDT should do this, perhaps it does I just dont know of a secret setting or trick (I hope).
Keith Chisarik
Sigma Data Systems
Reply
Like
1
Edhy Rijo
E
Edhy Rijo
posted 15 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Keith Chisarik (10/06/2009)
I want the tool to do this for me, ideally.
Me too.
Edhy Rijo
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search