<?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>Intrebari generale</title><link>http://sqlserver.ro/forums/16/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: Mutare fisiere ale bazei de date</title><link>http://sqlserver.ro/forums/thread/7812.aspx</link><pubDate>Mon, 09 Nov 2009 19:19:41 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7812</guid><dc:creator>claudiu3001</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7812.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7812</wfw:commentRss><description>Multumesc de raspunsuri, dar am gasit o metoda. Online restore pentru filegroup-uri read only. Trebuie backup la filegroup si am facut restore cu optiunea move to. Acum o ora am testat si mi-a mers. Ms mult inca odata:)&lt;br&gt;</description></item><item><title>Re: Mutare fisiere ale bazei de date</title><link>http://sqlserver.ro/forums/thread/7803.aspx</link><pubDate>Fri, 06 Nov 2009 21:51:49 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7803</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7803.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7803</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://sqlserver.ro/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;claudiu3001:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;div align="justify"&gt;Fisierul contine o partitie a unei tabele partitionate. Se presupune ca fisierul contine date vechi, filegroup-ul fiind read only.&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;Daca e un filegroup separat si read-only poti face la modul urmator:&lt;br /&gt;1) copieaza fiesierul in noua locatie&lt;br /&gt;2) ruleaza ALTER DATABASE dbname MODIFY FILE (name=numelogic, filename='nouacale'). Asta va schimba informatia unde este NDF-ul pe disc, dar doar in catalog, baza de date va ramine online si neschimbata.&lt;br /&gt;3) ALTER DATABASE dbname MODIFY FILE (name=numelogic, OFFLINE);. Asta va pune filegroup-ul offline, dar restul bazei de date va ramine online.&lt;br /&gt;4) RESTORE DATABASE dbname FILEGROUP='numefilegroup' WITH RECOVERY; Asta i-tzi va pune filegroup-ul innapoi online.&lt;br /&gt;5) sterge vechiul fisier.&lt;br /&gt;&lt;br /&gt;Baza de date nu va fi offline, dar la pasul 4 va avea nevoie de access exclusiv pentru un foarte scurt moemnt, in care toti ceilalti user trebuie deconectati de la baza de date. Intre pasul 3 si 4 partitia care e pe acel filegroup offline nu va putea fi accesata. Asta e o metoda relativ simpla cu timp mic de downtime. &lt;br /&gt;&lt;br /&gt;Daca vrei absolut 0 downtime e mai complicat:&lt;br /&gt;&lt;br /&gt;1) creaza un nou filegroup pe noul disc.&lt;br /&gt;2) creaza in noul filegroup o tabela absolut identica ca structura cu tabela veche (inclusiv indecsi, si check constraints)&lt;br /&gt;3) copiaza datele din partitia veche a tabelei in tabela de pe noul filegroup&lt;br /&gt;4) Fa ALTER TABLE ... SWITCH PARTITION ca sa faci 'switch' intre partitia veche si tabela din noul filegroup, care devine astfel parte a tabelei original.&lt;br /&gt;5) Fa drop la filegroup-ul vechi.&lt;br /&gt;&lt;br /&gt;Methoda asta e mai complicata si depinde de cum ai facut alinierea indecsilor. Daca ai incurcat indecsii, nu o sa poti face pasul 4) de switch, contacteza un specialist ca sa te ajute.</description></item><item><title>Re: Mutare fisiere ale bazei de date</title><link>http://sqlserver.ro/forums/thread/7802.aspx</link><pubDate>Fri, 06 Nov 2009 16:38:07 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7802</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7802.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7802</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://sqlserver.ro/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;werty80:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Incerca cu detach.&lt;br&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;Şi baza de date să fie online ?&lt;br&gt;&lt;br&gt;În momentul acesta singurele soluţii (teoretice) cred că ar fi un cluster activ/pasiv&amp;nbsp; sau database mirroring configurat pentru high availability. Totuşi, bănuiesc că nu e cazul. &lt;br&gt;</description></item><item><title>Re: Mutare fisiere ale bazei de date</title><link>http://sqlserver.ro/forums/thread/7801.aspx</link><pubDate>Fri, 06 Nov 2009 15:22:05 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7801</guid><dc:creator>werty80</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7801.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7801</wfw:commentRss><description>Incerca cu detach.&lt;br&gt;</description></item><item><title>Re: Mutare fisiere ale bazei de date</title><link>http://sqlserver.ro/forums/thread/7799.aspx</link><pubDate>Thu, 05 Nov 2009 21:47:33 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7799</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7799.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7799</wfw:commentRss><description>După c&amp;#226;te ştiu, nu se poate muta un fişier al unei baze de date &amp;#238;n altă locaţie, fără a face baza de date offline &amp;#238;n acest timp. Vezi:&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms345483.aspx"&gt;Moving User Databases&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Răzvan</description></item><item><title>Re: Mutare fisiere ale bazei de date</title><link>http://sqlserver.ro/forums/thread/7797.aspx</link><pubDate>Thu, 05 Nov 2009 17:41:12 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7797</guid><dc:creator>claudiu3001</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7797.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7797</wfw:commentRss><description>pe mine ma intereseaza cum sa mut un fisier al filegroup-ului pe alt disk. parititia in cazul asta se refera la partitia tabelei(1,2,3,...). Nu cred ca ma ajuta ce ai zis tu, eu caut altceva: o modalitate diferita de cele 2 prezentate de mine de a muta un fisier(D:\path1 to G:\Path2) fara a afecta activitatea asupra bazei de date.&lt;br&gt;</description></item><item><title>Re: Mutare fisiere ale bazei de date</title><link>http://sqlserver.ro/forums/thread/7796.aspx</link><pubDate>Thu, 05 Nov 2009 17:18:14 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7796</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7796.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7796</wfw:commentRss><description>&lt;a href="http://support.microsoft.com/kb/307889"&gt;How to create and use NTFS mounted drives in Windows XP and in Windows Server 2003&lt;/a&gt; &lt;font size="5"&gt;?&lt;/font&gt;&lt;br&gt;</description></item><item><title>Mutare fisiere ale bazei de date</title><link>http://sqlserver.ro/forums/thread/7794.aspx</link><pubDate>Thu, 05 Nov 2009 13:31:39 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7794</guid><dc:creator>claudiu3001</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7794.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7794</wfw:commentRss><description>&lt;div align="justify"&gt;Salut.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mai am si eu o intrebare. As dori sa mut un fisier al tabelei (al unui filegroup) pe alt disk/partitie. Fisierul contine o partitie a unei tabele partitionate. Se presupune ca fisierul contine date vechi, filegroup-ul fiind read only. As vrea sa stiu daca pot muta fisierul fara a-i modifica numele path-ului (si sa dau pun bd pe offline pana mut fisierul) sau fara a face restore la respectivul filegroup cu optionea "move to". Pe mine m-ar interesa ca baza de date sa fie tot timpul online. &lt;br&gt;Ms anticipat, Claudiu.&lt;br&gt;P.S.: Am creat si un index nonclustered&amp;nbsp; partitionat dupa schema de partitionare a indexului clustered (filegroup-uri diferite). E vreo diferenta&amp;nbsp; de performanta intre un index nonclustered partitionat dupa coloana cluster sau un index nonclustered nepartitionat? Are sens sa fac asa ceva?:)&lt;br&gt;&lt;/div&gt;&lt;br&gt;</description></item></channel></rss>