Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Temp Table 1

Status
Not open for further replies.

nevets72

Programmer
Feb 6, 2002
22
US
Hi....just wondering if anyone knows the syntax for creating a temporary table in SQL 6.5.....I tried the following:

INSERT INTO #Temp_Table (Employee_Last_Name, Employee_First_Name, Actuals_Percent_Allocated,
Project_Description, Actuals_Date, Manager_Last_Name, Manager_First_Name,
Job_Code_Description) SELECT * FROM Rpt_ActPrjEm

I thought I needed to use a pound sign, but I get an 'Invalid object name #Temp_Table'. I also tried the above without the pound sign and that didn't work.....do I need to declare the temporary table name somehow before running the query? Anyone have any idea how I can do this? Thanks!
 
excellent.......thanks, the:

SELECT * INTO #Temp_Table FROM Rpt_ActPrjEm

worked!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top