Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Alter Table column not available

Author  Topic 

zavier
Yak Posting Veteran

50 Posts

Posted - 2001-08-24 : 15:37:01
If anyone can provide a message I would be very appreciative.

Here is my problem. I create a temp table(#TEMP_TAB) in a stored a procedure and(I tried using a normal table as well, same problem) then I bulk insert a file into it and then use the "ALTER TABLE ADD COLUMN_A BIT" to add a column to the table. I then try to call a "SELECT COLUMN_A FROM #TEMP_TAB" and I get a "Invalid column name 'COLUMN_A'."

If I call "SELECT * FROM #TEMP_TAB" the COLUMN_A field is included in the display correctly.

Please help!


Zavier


Edited by - zavier on 08/24/2001 15:47:33
   

- Advertisement -