I noticed some strange behavior with column ordering on a view. When I run the below script using SQLCMD Mode in SSMS, the columns show in the correct order. If I run the same command using the SQLCMD command line utility, the view's columns get put in ABC order.
CREATE VIEW [dbo].[SomeView] WITH SCHEMABINDING AS
SELECT ACol, QCol, BCol, DCol FROM dbo.SomeTable
I saw in MSDN that the command line utility runs the SQL using ODBC vs the SQLCMD mode uses SQLClient framework but I'm not able to find any information on the differences. Anyone else experience this behavior?