I am trying to use command string "ALTER TABLE PIN_Table ORDER BY PIN ASC" PIN_Table and column PIN exist. I am getting "Syntax error near ORDER" I don't see my problem.
I do see your problem. There is such syntax in SQL Server. Hm, you mention SQLite, but you have tagged the post SQL Server
- those are two quite different product. (If you work with SQLite, you should probably find an SQLite forum somewhere; as SQLite is not a Microsoft product, this is not really the place.
Anyway, I doubt that the syntax you are trying works in SQLite either, because it does not really make any sense. A table in a relational database is by definition an unordered object, you cannot order it. You can add an index to it which imposes a physical ordering, but that's some different from the table definition.