Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hello;

In a program I need to create a table at runtime. I know how to define its fields by using the code below, but the result is Left to Right oriented (as it should be following its default pattern). What I need is to change the orientation to "Right to Left" at runtime. Could you please help me?

Thanks a lot

Sql_Command = "CREATE TABLE myTable" +
                                      " (" +
                                       " ID int IDENTITY(1,1) PRIMARY KEY," +
                                       " Name Text(10) ," +
                                       " Age number" +
                                       " )";
Posted
Comments
Sandeep Mewara 11-Sep-10 13:31pm    
Not sure of what you mean by 'Left to Right' or 'Right to Left'. Are you saying the columns in the result table are in ID,Name,Age order and you wanted the result to have columns as Age, Name, ID order?
Abhishek Sur 11-Sep-10 15:53pm    
I cannot understand your problem. Is it regarding the layout in VS Studio?
Abhinav S 12-Sep-10 3:11am    
Your question unfortunately is not clear enough. What does "right to left" mean?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900