I have a stored procedure that creates a temp table (see code below).
1. How can I drop the table if it exists?
2. Also I have define a field called "job_date" and I get an error if I specify 'date' as type (so I changes it to 'int')?
create table #jobtemptable
(
job_date int,
job_number char(15),
job_phase char(15),
asphalt_delivered int,
job_received int
)
GO
1. How can I drop the table if it exists?
2. Also I have define a field called "job_date" and I get an error if I specify 'date' as type (so I changes it to 'int')?
create table #jobtemptable
(
job_date int,
job_number char(15),
job_phase char(15),
asphalt_delivered int,
job_received int
)
GO