Hi Guys,I am trying to DROP a table and recreate the table in a stored procedure and then I am trying to INSERT records into the newly created table in the same stored procedure.I know I don't have to DROP the table, but I am trying to just get it to work. The process runs without error, but when I refresh the tables, the table I created isn't there. The T-SQL is as follows:set ANSI_NULLS ONset QUOTED_IDENTIFIER ONGOALTER PROCEDURE [dbo].[ImportFilesPremier] ASDROP TABLE dbo.[PremierTest]CREATE TABLE [PremierTest] ( [AYQ] nvarchar(6) null , [CYQ] nvarchar(6) null , [Description] nvarchar(50) null, [PIP] [decimal] (17,2) , [BI] [decimal](17,2) Not null, [PD] [decimal](17,2) Not null, [COLL] [decimal](17,2) not null, [COMP] [decimal](17,2) not null, [DCRAT] [nvarchar](2) null , [Agent][nvarchar](3) null ,) ON [PRIMARY]begin transactioninsert into [PremierTest]select *from dbo.[new agt type tri 0804]WHERE dir_ceded_ind = 'C' commit transaction
Any information on how I can tweak my code so it works properly would be greatly appreciated. Thank you. 