try this?
CREATE TABLE [dbo].[test](
[id] [int] IDENTITY(1,1) NOT NULL,
[receipt] [char](10) NULL,
CONSTRAINT [PK_test] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[testtemp](
[idmx] [int] NULL,
[receipt] [char](10) ...