﻿<?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)  / SQL Question / 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, 19 May 2013 22:14:32 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SQL Question</title><link>http://www.sqlservercentral.com/Forums/Topic1374923-392-1.aspx</link><description>I would have to know the version of SQL to know how to answer this.For 2008+, you have CDC.For SQL prior to that, they probably wouldn't like my answer, but I would make the schema identical to the original table, adding a column(s) to the original schema if needed to support the logging.This allows me to use all existing code and procs on the logging table, and/or to UNION ALL the two tables in such code/procs.</description><pubDate>Mon, 22 Oct 2012 14:27:17 GMT</pubDate><dc:creator>ScottPletcher</dc:creator></item><item><title>RE: SQL Question</title><link>http://www.sqlservercentral.com/Forums/Topic1374923-392-1.aspx</link><description>I'm not sure this is a schema question. There are technologies within SQL Server that will allow you to track changes, such as Change Data Capture. I'd suggest those before I'd suggest some other schema.</description><pubDate>Fri, 19 Oct 2012 11:10:13 GMT</pubDate><dc:creator>Grant Fritchey</dc:creator></item><item><title>RE: SQL Question</title><link>http://www.sqlservercentral.com/Forums/Topic1374923-392-1.aspx</link><description>[quote][b]rocky_498 (10/19/2012)[/b][hr]Some body ask this question during interview. I didn't the answer i would like to know if someone give me the answer of this simple or tuff question.Q) What would be your schema layout to track Update and delete from Table A..Please let me know if my question is not clear. I will try to provide more information. Thanks in advance.[/quote]The first thing for me would be a question. Are they wanting to track all updates and deletes from this table? If that is the answer then I would tell them that CDC is a great option for this.</description><pubDate>Fri, 19 Oct 2012 11:06:56 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>SQL Question</title><link>http://www.sqlservercentral.com/Forums/Topic1374923-392-1.aspx</link><description>Some body ask this question during interview. I didn't the answer i would like to know if someone give me the answer of this simple or tuff question.Q) What would be your schema layout to track Update and delete from Table A..Please let me know if my question is not clear. I will try to provide more information. Thanks in advance.</description><pubDate>Fri, 19 Oct 2012 10:31:18 GMT</pubDate><dc:creator>rocky_498</dc:creator></item></channel></rss>