﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / T-SQL (SS2K8)  / How to generate UniqueIdentifiers and insert in a column / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 26 May 2013 01:33:17 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: How to generate UniqueIdentifiers and insert in a column</title><link>http://www.sqlservercentral.com/Forums/Topic1416209-392-1.aspx</link><description>[quote][b]Mac1986 (2/5/2013)[/b][hr]Hi All,        I have a table in which one of the column is UniqueIdentifier. I have NULLS from records 1 through 91 and then after I have records populated in the table. I need to fill up the NULLS with UniqueIdentifier. Can you please help me.My only concern is if I update the table now, after few months when new UniqueIdentifier gets generated as part of our ETL, which is once a day, should not cause duplicates.Please help.[/quote][code="sql"]update dbo.MyTable set    UniqueIdentifierCol = newid()where    UniqueIdentifierCol is null;[/code]Chances of a dup are quite low, but not impossible.</description><pubDate>Tue, 05 Feb 2013 21:00:11 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>How to generate UniqueIdentifiers and insert in a column</title><link>http://www.sqlservercentral.com/Forums/Topic1416209-392-1.aspx</link><description>Hi All,        I have a table in which one of the column is UniqueIdentifier. I have NULLS from records 1 through 91 and then after I have records populated in the table. I need to fill up the NULLS with UniqueIdentifier. Can you please help me.My only concern is if I update the table now, after few months when new UniqueIdentifier gets generated as part of our ETL, which is once a day, should not cause duplicates.Please help.</description><pubDate>Tue, 05 Feb 2013 20:37:40 GMT</pubDate><dc:creator>Mac1986</dc:creator></item></channel></rss>