Re: Newbe question

From: Vishal Parkar (vgparkar_at_hotmail.com)
Date: 04/30/03


Date: Wed, 30 Apr 2003 09:19:16 -0700


This is more smart than what i've posted :)

--Vishal

>-----Original Message-----
>Please post your DDL in the future. Would the following
work?
>
>update MyTable
>set
> Col3 = Col2
>, Col2 = NULL
>
>--
>Tom
>
>----------------------------------------------------------
-----
>Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
>SQL Server MVP
>Columnist, SQL Server Professional
>Toronto, ON Canada tom@cips.ca
>www.pinnaclepublishing.com/sql
>
>
>"Wayne Gore" <wayne.gore@spray.se> wrote in message
news:eOFebaxDDHA.2596@TK2MSFTNGP11.phx.gbl...
>Hi
>
>I have a table with 3 columns.
>The first column is an ID column with identity on (seed
1).
>The second column contains data that I want to move to
the third column.
>The data that is moved should be in the same row as
before.
>When the data has been moved then the second column
should not contain any
>data at all (but still exist).
>
>Any ideas?
>
>Regards
>Rickard
>
>
>



Relevant Pages

  • Re: How to prevent a lock escalation to a table level ?
    ... > Columnist, SQL Server Professional ... >> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA ...
    (microsoft.public.sqlserver.server)
  • Re: Incorrect syntax near =
    ... Thomas A. Moreau, BSc, PhD, MCSE, MCDBA ... Columnist, SQL Server Professional ... DcmntTyp contains a user entered value from a text box. ...
    (microsoft.public.vb.database.ado)
  • Re: Persisting ADO as XML - almost convinced im crazy!
    ... "Tom Moreau" wrote in message ... > Columnist, SQL Server Professional ... >> SQL Server MVP ...
    (microsoft.public.vb.database.ado)
  • Re: DB ist auf SQL2005 langsamer
    ... Thomas Finkbeiner schrieb ... ... Deine Interpretation meiner Antwort ist mir so gar nicht in den Sinn ... obwohl Du bereits in Hardware ... Applikation wie der SQL Server von dem flachen Speichermodell ...
    (microsoft.public.de.sqlserver)
  • Re: Convert help needed desperately
    ... Columnist, SQL Server Professional ... "Tom Moreau" wrote in message ... > Cannot insert a non-null value into a timestamp column. ...
    (microsoft.public.sqlserver.programming)