Re: Modifying temporary tables errors
From: Paul Lush (paul.PS_AM.lush_at_bbc.spam.me.co.uk)
Date: 02/26/04
- Next message: Paul Lush: "Re: Modifying temporary tables errors"
- Previous message: GS: "Re: CASE Statement Question"
- In reply to: Chandra A: "Re: Modifying temporary tables errors"
- Next in thread: Dan Blake: "RE: Modifying temporary tables errors"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 26 Feb 2004 11:57:08 -0000
Nope, those are copy/pasted from the QA window. Im going to try to inner
join two huge queries instead.
Thanks for the help guys!
"Chandra A" <csapatnaik@hotmail.com> wrote in message
news:OUjG6tF$DHA.2524@tk2msftngp13.phx.gbl...
> Update works fine on temporary tables.
> you might have tried the update in another instance of the Query Analyser
>
> best regards
> Chandra A
>
>
> "Paul Lush" <paul.PS_AM.lush@bbc.spam.me.co.uk> wrote in message
> news:c1kj9a$spp$1@nntp0.reith.bbc.co.uk...
> > MSSQL 2000 SP3 and Im trying to add a column to a temporary table as the
> > real table is huge
> >
> > SELECT DataT.* INTO #ptable FROM DataT
> >
> > ALTER TABLE #ptable ADD NEWCOLUMN int
> >
> > UPDATE #ptable SET #ptable.NEWCOLUMN = 1
> >
> > The update reports back
> >
> > Server: Msg 207, Level 16, State 1, Line 3 Invalid column name
> 'NEWCOLUMN'.
> >
> > but if you select * from #ptable, it shows the NEWCOLUMN
> >
> > Any ideas how to do this instead of creating a new table, inserting
values
> > in a huge (I mean HUGE - 120 columns) INSERT INTO
> >
> > Many thanks
> >
> > Paul
> >
> > paul.lush.hates.spam@spam.sucks.bbc.co.uk
> >
> > remove the obvious :-)
> >
> >
> >
>
>
- Next message: Paul Lush: "Re: Modifying temporary tables errors"
- Previous message: GS: "Re: CASE Statement Question"
- In reply to: Chandra A: "Re: Modifying temporary tables errors"
- Next in thread: Dan Blake: "RE: Modifying temporary tables errors"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|