2
I have a change to make in the table Inclusão de colunas the doubt is have as I set the order when I am making the change in sql server 2008 ?
ALTER TABLE dbo.Arquivos 
ADD IdTipoDocumento int NULL, -- order 3
    NomeInterno nvarchar(200) NULL, -- order 4
    DirArquivo nvarchar(200) NULL,-- order 5
    DescrArquivo nvarchar(max) NULL, -- order 6
    LarguraArquivo int NULL, -- order 12
    AlturaArquivo int NULL, --  order 13
    FlagAtivo bit NULL, -- order 14
    IdUsuarioUpload int NULL, -- order 15
    DtInclusao datetime NULL -- order 16
						
I have no idea if you have how to do this, but one way would be to create a temporary table and recreate your table in the correct order, and do the insert of table records dbo.files in the temporary, something like this.
– David
I know how it works... but to give a job, I thought I’d have something easier...
– Marco Souza