I have created a table into the database. However, I forget to set my "invoiceID" column to auto-increment, and I wish to edit the column name to "inv_ID"
CREATE TABLE [dbo].[Order] (
EXEC sp_rename '[inv_Id]', '[invoiceID]', 'COLUMN', INT NOT NULL,;
[inv_date] DATE NOT NULL,
[cust_Id] INT NOT NULL,
PRIMARY KEY CLUSTERED ([inv_Id] ASC)
);
Error Message:
An error occurred while the batch was being executed.