﻿<?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 / SQL Server Newbies  / Rowversion Duplication / 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>Thu, 23 May 2013 03:11:14 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Rowversion Duplication</title><link>http://www.sqlservercentral.com/Forums/Topic1407023-1292-1.aspx</link><description>[quote][b]shilpaprele (1/16/2013)[/b][hr]there may be many developers working on the DB. And if sombody uses the select into then we will have dupliction.[/quote] and this cant be get restricted or stopped , so you should make them  understand that why and what needs to follow ?</description><pubDate>Wed, 16 Jan 2013 02:14:15 GMT</pubDate><dc:creator>Bhuvnesh</dc:creator></item><item><title>RE: Rowversion Duplication</title><link>http://www.sqlservercentral.com/Forums/Topic1407023-1292-1.aspx</link><description>Thanks all for your replies. I agree that we should exclude row version column but there my be many developers working on the DB. And if sombody uses the select into then we will have dupliction.</description><pubDate>Wed, 16 Jan 2013 01:08:23 GMT</pubDate><dc:creator>Krishna1</dc:creator></item><item><title>RE: Rowversion Duplication</title><link>http://www.sqlservercentral.com/Forums/Topic1407023-1292-1.aspx</link><description>SELECT INTO creates the target table, and the only exception along the lines that you are after is with the IDENTITY column.You could leave the Rowversion column out, as already suggested but we don't know the size of the tables concerned so altering the schema may be a large overhead.Why not create the target table first and then use INSERT INTO? That will allow what you require.[code="sql"]CREATE TABLE Test1(	Col1 rowversion,	col2	VARCHAR(20)	);CREATE TABLE Test2(	Col1 rowversion,	col2	VARCHAR(20)	);INSERT INTO Test1(col2)VALUES( 'test1'),( 'test2')INSERT INTO test2(col2) SELECT Col2 FROM Test1SELECT * FROM test1;SELECT * FROM test2;[/code]</description><pubDate>Tue, 15 Jan 2013 04:48:59 GMT</pubDate><dc:creator>BrainDonor</dc:creator></item><item><title>RE: Rowversion Duplication</title><link>http://www.sqlservercentral.com/Forums/Topic1407023-1292-1.aspx</link><description>[quote][b]shilpaprele (1/14/2013)[/b][hr]Is there any way that we can use "SELECT INTO" and still avaoid rowversion dupllication?[/quote] YEs you can try like [code="sql"]select "all coumns except rowversion column " into newtable from oldtable [/code]then [code="sql"]alter table newtable add rowverison column [/code]The above is just code hint not the actual sql code</description><pubDate>Tue, 15 Jan 2013 04:36:32 GMT</pubDate><dc:creator>Bhuvnesh</dc:creator></item><item><title>RE: Rowversion Duplication</title><link>http://www.sqlservercentral.com/Forums/Topic1407023-1292-1.aspx</link><description>It's only duplicated if the rowversion column is included in the column list of the select into statement.Don't do that, and your values will stay unique.Cheers</description><pubDate>Tue, 15 Jan 2013 04:20:43 GMT</pubDate><dc:creator>Gazareth</dc:creator></item><item><title>Rowversion Duplication</title><link>http://www.sqlservercentral.com/Forums/Topic1407023-1292-1.aspx</link><description>Hi AllMost off our tables have rowversion columns. We whant this row version to be unique through out the DB. But as per msdn site it syas that rowverison can get deuplicated if "SELECT INTO " command is used?Is there any way that we can use "SELECT INTO" and still avaoid rowversion dupllication?RegardsShilpa</description><pubDate>Mon, 14 Jan 2013 22:07:03 GMT</pubDate><dc:creator>Krishna1</dc:creator></item></channel></rss>