<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlserver.ro/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>T-SQL</title><link>http://sqlserver.ro/forums/15/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7530.aspx</link><pubDate>Fri, 28 Aug 2009 07:17:32 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7530</guid><dc:creator>cardasim</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7530.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7530</wfw:commentRss><description>Multumesc, Igor. Autorul articolului e cel care mi-a raspuns la intrebare aici: http://social.msdn.microsoft.com/Forums/en-US/sqldisasterrecovery/thread/21ebad42-d765-43de-9bd6-4d45a218b6c6</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7519.aspx</link><pubDate>Tue, 18 Aug 2009 08:48:41 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7519</guid><dc:creator>igor</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7519.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7519</wfw:commentRss><description>Salut,&lt;br&gt;&lt;br&gt;Un articol foarte informativ despre acest subiect il gasesti &lt;a href="http://sqlblog.com/blogs/tibor_karaszi/archive/2009/06/25/table-restore-and-filegroups.aspx"&gt;acici&lt;/a&gt;&lt;br&gt;</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7501.aspx</link><pubDate>Fri, 14 Aug 2009 07:51:57 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7501</guid><dc:creator>cardasim</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7501.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7501</wfw:commentRss><description>Am postat pe MS Connect. ID 482717, "Restore filegroup to a certain point back in time".&lt;br&gt;&lt;br&gt;Am primit intre timp si doua raspunsuri de la MS, fac copy&amp;amp;paste aici:&lt;br&gt;&lt;br&gt;1. De la echipa Sql Server&lt;br&gt;"&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Comic Sans MS';color:navy;"&gt;That functionality is not possible in SQL Server.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;

&lt;p class="MsoNormal"&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Comic Sans MS';color:navy;"&gt;In order to have a database that is consistent, all portions of it
must be at the same transactional point in time.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Comic Sans MS';color:navy;"&gt;The internal consistency of the database is maintained using Log
Sequence Numbers, and there is no way to have multiple LSNs active in a single
database.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;





&lt;p class="MsoNormal"&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Comic Sans MS';color:navy;"&gt;It seems that both scenarios could be readily facilitated by
creating a simple script to truncate the tables which contain customer specific
data, and put the database into a state which is ready to deploy at another
customer.&amp;nbsp; Or better yet, develop a set of pre-configured databases which
have never had any customer data in them.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Comic Sans MS';color:navy;"&gt;In Scenario B, there is a real risk in taking a backup from one
customer and putting the data on another customer’s machine.&amp;nbsp; Even when
rows are deleted, the data is not zeroed out on the pages, so there is a chance
that the second customer could obtain information from the first.&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;span style="font-size:10pt;font-family:'Comic Sans MS';color:navy;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Comic Sans MS';color:navy;"&gt;SQL Storage Engine PM&amp;nbsp;team &lt;/span&gt;: &lt;/i&gt;&lt;i&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman','serif';color:navy;"&gt;&amp;nbsp;&lt;a href="http://blogs.msdn.com/sqlserverstorageengine/default.aspx" target="_blank"&gt;SQL
Server Storage Engine Team blog&lt;/a&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;"&lt;/p&gt;&lt;p class="MsoNormal"&gt;2. De la support prin programul METRO&lt;br&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;"&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;Unfortunately in the 2
scenarios you described it’s not applicable by restoring filegroup backups. I’d
like to explain a little as below:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;

&lt;/p&gt;&lt;p class="MsoNormal" style="line-height:12pt;"&gt;&lt;b&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;Scenario A&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:12pt;"&gt;&lt;b&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;SQL Server will not let you into a database where different data
is from different points in time.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:12pt;"&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;You must use file and filegroup backup and restore operations in
conjunction with transaction log backups. After you restore the files, you must
restore the transaction log backups that were created since the file backups
were created to bring the database to a consistent state. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:12pt;"&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;File/filegroup backups can be used to restore the &lt;b&gt;database&lt;/b&gt;
to an earlier point in time. To do this, you must restore a complete set of
file backups, and then restore transaction log backups in sequence to reach a
target point that is after the end of the most recent restored file backup.&lt;/span&gt;&lt;span style="font-size:8.5pt;font-family:'Verdana','sans-serif';color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:12pt;"&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;In fact the main reason for performing selective restores of
files or filegroups is to make it possible to spot-recover damage to a database
that is too big to restore wholesale. For more details about restoring
filegroup backups please reference &lt;a href="http://msdn.microsoft.com/en-us/library/ms190710.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms190710.aspx&lt;/a&gt;.
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:12pt;"&gt;&lt;b&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;Scenario B&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:12pt;"&gt;&lt;b&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;File and filegroup backups must be restored to the matching
database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:12pt;"&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;File and filegroup backups can only be restored to the database
to which they belong. You cannot create a new, blank database with the same
structure and filenames and then attempt to restore the single file or
filegroup backup; you must restore it into the existing database or perform a
full database restore in another location.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:12pt;"&gt;&lt;b&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;Suggested solution&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:12pt;"&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;For scenario A &amp;nbsp;you can restore the PRIMARY filegroup into
a new temp database-to the desired earlier point in time, and then copy the
relevant data from this temp database into the production database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';"&gt;Or you could simply put the Configuration data in a separate
database, then replace the objects in the main database with synonyms, or
replicate the configuration data into the main database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;"&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7474.aspx</link><pubDate>Fri, 07 Aug 2009 11:41:17 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7474</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7474.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7474</wfw:commentRss><description>Parere mea e ca te complici.Poti face din aplicatia urmarirea modifcarii obiecteleor.Linq si Entity Framework de exemplu au capabilitatea de object tracking daca folosesti aceste tehnologii ca dataacces layer.</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7473.aspx</link><pubDate>Fri, 07 Aug 2009 09:33:04 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7473</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7473.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7473</wfw:commentRss><description>Da-mi de veste, vreau sa votez "pentru"...:)</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7472.aspx</link><pubDate>Fri, 07 Aug 2009 09:26:31 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7472</guid><dc:creator>cardasim</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7472.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7472</wfw:commentRss><description>@Crestinul Tocmai asta e: eu nu am nevoie de recovery ci de o modalitate de a "reutiliza" un filegroup plin cu date. Cine stie poate in versiunile viitoare ... raportez pe Microsoft Connect si vedem ce se intampla. Pentru moment case closed &lt;img src="http://sqlserver.ro/emoticons/emotion-1.gif" alt="Smile" /&gt;</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7471.aspx</link><pubDate>Fri, 07 Aug 2009 09:21:02 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7471</guid><dc:creator>cardasim</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7471.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7471</wfw:commentRss><description>@Diana: bine zis, am acelasi sentiment periodic... &lt;img src="http://sqlserver.ro/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;br&gt;</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7470.aspx</link><pubDate>Fri, 07 Aug 2009 06:02:49 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7470</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7470.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7470</wfw:commentRss><description>&lt;P&gt;Cred ca solutia cea mai simpla e sa faci restore point in time daca ai recovery model pe full.&lt;/P&gt;
&lt;P&gt;Restaurezi intreaga baza de date dar macar iti realizei obiectivul&lt;/P&gt;</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7466.aspx</link><pubDate>Wed, 05 Aug 2009 12:41:08 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7466</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7466.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7466</wfw:commentRss><description>Multumesc, Florin.&lt;br /&gt;Cat traim invatam si tot nu ajunge...:)</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7465.aspx</link><pubDate>Wed, 05 Aug 2009 11:06:19 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7465</guid><dc:creator>cardasim</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7465.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7465</wfw:commentRss><description>Nu, din pacate snapshot-ul e doar la nivelul intregii baze de date, nu la nivel de filegroup.&lt;br&gt;De asta s-au mai plans si altii, de exemplu aici: http://www.eggheadcafe.com/forumarchives/SQLServerserver/Feb2006/post26066897.asp&lt;br&gt;</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7461.aspx</link><pubDate>Tue, 04 Aug 2009 13:23:00 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7461</guid><dc:creator>sageata2002</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7461.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7461</wfw:commentRss><description>&lt;P&gt;inteleg ca database snapshots nu ajuta in cazul tau, nu?&lt;/P&gt;
&lt;P&gt;toate cele bune,&lt;BR&gt;calin&lt;/P&gt;</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7453.aspx</link><pubDate>Mon, 03 Aug 2009 19:11:15 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7453</guid><dc:creator>cardasim</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7453.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7453</wfw:commentRss><description>Diana, multumesc pentru sugestie, insa din pacate nu am reusit.&lt;br&gt;&lt;br&gt;Intre timp am mai primit niste informatii, ce vreau eu nu se poate.&lt;br&gt;Detalii aici:&lt;br&gt;http://social.msdn.microsoft.com/Forums/en-US/sqldisasterrecovery/thread/21ebad42-d765-43de-9bd6-4d45a218b6c6&lt;br&gt;&lt;br&gt;Concluzia: pentru ce vreau eu am doua solutii&lt;br&gt;1. cod care sa faca export - import&lt;br&gt;2. baze de date separate pentru CONFIG si ROUTINE (operational)&lt;br&gt;Sunt nevoit sa aleg solutia 1. Dar ar fi fost cool sa pot reolva problema cu filegroups. Poate in versiunile urmatoare &lt;img src="http://sqlserver.ro/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;br&gt;</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7451.aspx</link><pubDate>Mon, 03 Aug 2009 07:39:24 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7451</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7451.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7451</wfw:commentRss><description>Incearca sa lucrezi cu filegroup-ul "Config" pus pe "read-only". Cand ai nevoie sa schimbi ceva in "Config", il pui din nou pe "readwrite". Vezi &lt;br /&gt;http://www.informit.com/guides/content.aspx?g=sqlserver&amp;amp;seqNum=268&lt;br /&gt;si&lt;br /&gt;http://msdn.microsoft.com/en-us/library/ms188631(SQL.90).aspx</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7450.aspx</link><pubDate>Sun, 02 Aug 2009 18:39:04 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7450</guid><dc:creator>cardasim</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7450.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7450</wfw:commentRss><description>Da, dar din pacate piecemeal nu cred ca ajuta la ce vreau eu, si anume restore la un filegroup la un moment ANTERIOR in timp fata de celelalte filegroup-uri.&lt;br&gt;</description></item><item><title>Re: Restore one filegroup (out of 2) at some point in the past</title><link>http://sqlserver.ro/forums/thread/7449.aspx</link><pubDate>Sun, 02 Aug 2009 08:08:40 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7449</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7449.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7449</wfw:commentRss><description>sql 2005 are posibilitatea de peace meal restore care face asa ceva restaureaza numai anumite fisiere.</description></item></channel></rss>