You are here: Re: Insert Uniqueidentifier after the fact « MsSQL Server « IT news, forums, messages
Re: Insert Uniqueidentifier after the fact

Posted by pltaylor3 on 09/01/06 13:11

Thats perfect. Thanks for the help.
Dan Guzman wrote:
> > What sql script could I run to actually place a value for
> > the newly created column for each record?
>
> You can use NEWID() to backfill existing data:
>
> UPDATE dbo.MyTable
> SET MyColumn = NEWID()
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
>
> <pltaylor3@gmail.com> wrote in message
> news:1157114291.688642.258140@b28g2000cwb.googlegroups.com...
> >I have an existing table that i would like to add a uniquidentifier to
> > each record of the table. I have already create a column for the
> > uniqueid. What sql script could I run to actually place a value for
> > the newly created column for each record?
> > thanks for your help ahead of time
> >

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация