﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Database Deployment Toolkit » Database Deployment Toolkit (How do I?)  » What should RowGuid be set to?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 02 May 2026 08:27:14 GMT</lastBuildDate><ttl>20</ttl><item><title>What should RowGuid be set to?</title><link>http://forum.strataframe.net/FindPost6630.aspx</link><description>Hi,&lt;BR&gt;I'm recreating test set of tables from an existing database into DDT. We use GUIDs throughout as the PK for each table and I notice the tables created by the DDT all have their RowGuid property set to No whereas the current tables are all set to Yes. The defualt value for the PKs are are to (newid()).&lt;/P&gt;&lt;P&gt;In all original tables we set&amp;nbsp;RowGuid to Yes because that, is indeed, what the column is however I not sure what would have happened had we said No.&lt;/P&gt;&lt;P&gt;My question is: should I change all the settings in DDT so that all out GUID PK's have a RowGuid value of Yes?&lt;/P&gt;&lt;P&gt;TIA - Peter</description><pubDate>Fri, 09 Feb 2007 16:10:51 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item><item><title>RE: What should RowGuid be set to?</title><link>http://forum.strataframe.net/FindPost6684.aspx</link><description>Replication requires that all tables being replicated have a RowGuid somewhere on the table, so yeah, I would go ahead and turn it on on your PK columns... there's no reason to have another 16 bytes per record taken up by another GUID when you already have one :)</description><pubDate>Fri, 09 Feb 2007 16:10:51 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: What should RowGuid be set to?</title><link>http://forum.strataframe.net/FindPost6682.aspx</link><description>Hi Ben,&lt;/P&gt;&lt;P&gt;Thanks for that. Actually this is interesting because the reason we use GUIDs is that the app does support replication. So, in this case, should we be changing the RowGUID value to Yes?&lt;/P&gt;&lt;P&gt;Cheers, Peter</description><pubDate>Fri, 09 Feb 2007 16:04:50 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item><item><title>RE: What should RowGuid be set to?</title><link>http://forum.strataframe.net/FindPost6673.aspx</link><description>Yes, the setting of RowGuid=No is correct for a GUID pk.&amp;nbsp; The RowGuid is used by SQL Server replication to uniquely identify rows across replicated databases (i.e. you have have two records with the same PK on different servers and when you replicate one database into the other, SQL Server will handle it).&amp;nbsp; So, the RowGuid property of a column is independent from the primary key.&amp;nbsp; Generally, when you use replication and a GUID pk, you can make them the same column.</description><pubDate>Fri, 09 Feb 2007 15:37:09 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: What should RowGuid be set to?</title><link>http://forum.strataframe.net/FindPost6654.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I probably made my question sound more complex than it should. Let me rephrase it:&lt;/P&gt;&lt;P&gt;When I set the primary key&amp;nbsp;for a&amp;nbsp;table definition&amp;nbsp;in DDT to GUID when the table is created in SQL Server 2005 the value for the RowGUID property is set to No. I don't really understand what this property actually does and I would like confirmation that a RowGUID of No is correct.&lt;/P&gt;&lt;P&gt;Cheers, Peter</description><pubDate>Thu, 08 Feb 2007 16:04:17 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item><item><title>RE: What should RowGuid be set to?</title><link>http://forum.strataframe.net/FindPost6637.aspx</link><description>Peter,&lt;/P&gt;&lt;P&gt;I am sorry but I am confused by your post.&amp;nbsp; The DDT has full support to allow you to create GUID PKs.&amp;nbsp; I do not understand what you are trying to do here.&amp;nbsp; What do you mean by the following statement?&lt;/P&gt;&lt;P&gt;[quote]We use GUIDs throughout as the PK for each table and I notice the tables created by the DDT all have their RowGuid property set to No whereas the current tables are all set to Yes.[/quote]</description><pubDate>Thu, 08 Feb 2007 09:09:35 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>