<?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: Restore automat la DB-uri multiple</title><link>http://sqlserver.ro/forums/thread/5817.aspx</link><pubDate>Tue, 14 Oct 2008 09:12:26 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5817</guid><dc:creator>shiva</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5817.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5817</wfw:commentRss><description>Da, de un proces automat, dar nu scheduled. Doar sa putem sa-l rulam de "manuta" si sa se ocupe el de toate detaliile de restore si user rights, care sunt consumatoare de timp.&lt;br&gt;</description></item><item><title>Re: Restore automat la DB-uri multiple</title><link>http://sqlserver.ro/forums/thread/5788.aspx</link><pubDate>Mon, 13 Oct 2008 08:11:46 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5788</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5788.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5788</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;crestinul:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://sqlserver.ro/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Diana:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;P&gt;Din pacate nu am lucrat cu SMO in ultimul timp, iar exemplele din MSDN sunt sublime, dar cam lipsesc...&lt;/P&gt;
&lt;P&gt;Poti incerca sa setezi proprietatea "login" a userului fara sa stergi userul - &lt;A href="http://technet.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.user.login.aspx"&gt;http://technet.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.user.login.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Pentru ce iti trebuie SQLAgent?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/P&gt;
&lt;P&gt;daca am inteles eu bine tu ai nevoie deun proces automat care sa faca toate chestiile alea.&lt;/P&gt;
&lt;P&gt;Cel mai simplu mi se pare sa faci un job sql server si folsind TSQL poti face toate taskurile alea.&lt;/P&gt;
&lt;P&gt;Resataurarea se face cu comanda tsql restore&lt;/P&gt;
&lt;P&gt;Ai grija sa dai acces userului sub care ruleaza sql agent la folderul sau shareul daca e in retea unde sunt fisierele backup&lt;/P&gt;
&lt;P&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/P&gt;
&lt;P&gt;Mai exista si alte metode de "scheduling", de exemplu "Scheduled Tasks" din Control Panel sau Service Broker.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Restore automat la DB-uri multiple</title><link>http://sqlserver.ro/forums/thread/5777.aspx</link><pubDate>Sat, 11 Oct 2008 07:17:11 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5777</guid><dc:creator>shiva</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5777.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5777</wfw:commentRss><description>Am facut cu SMO, si am stat 3 zile investigand eroarea "Could not connect to server"&lt;img src="http://sqlserver.ro/emoticons/emotion-12.gif" alt="Angry" /&gt;. Pentru a elimina problema asta, trebuie folosita clasa ServerConnection.&lt;br&gt;Asa da:&lt;br&gt;&lt;table cellpadding="0" cellspacing="0"&gt;&lt;tr style="vertical-align:top;line-height:normal;"&gt;&lt;td style="width:40px;text-align:right;"&gt;&lt;pre style="margin:0px;padding:2px;font-family:courier new;font-size:11px;color:gray;"&gt;1&lt;br&gt;2&lt;br&gt; &lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style="margin:0px;padding:2px 2px 2px 8px;"&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;ServerConnection sqlConnection &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;new&lt;/span&gt; ServerConnection(connection_string);&lt;br&gt;Server sqlServer &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;new&lt;/span&gt; Server( sqlConnection);&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;Asa nu:&lt;br&gt;&lt;table cellpadding="0" cellspacing="0"&gt;&lt;tr style="vertical-align:top;line-height:normal;"&gt;&lt;td style="width:40px;text-align:right;"&gt;&lt;pre style="margin:0px;padding:2px;font-family:courier new;font-size:11px;color:gray;"&gt;1&lt;br&gt; &lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style="margin:0px;padding:2px 2px 2px 8px;"&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;Server sqlServer &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;new&lt;/span&gt; Server(connection_string);&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;, desi, in subtirica documentatie a SMO din MSDN, se zice ca nu e obligatoriu folosirea clasei ServerConnection. N-o fi obligatoriu, insa e foarte necesar :)&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Re: Restore automat la DB-uri multiple</title><link>http://sqlserver.ro/forums/thread/5771.aspx</link><pubDate>Fri, 10 Oct 2008 10:09:22 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5771</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5771.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5771</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;Diana:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;
&lt;P&gt;Din pacate nu am lucrat cu SMO in ultimul timp, iar exemplele din MSDN sunt sublime, dar cam lipsesc...&lt;/P&gt;
&lt;P&gt;Poti incerca sa setezi proprietatea "login" a userului fara sa stergi userul - &lt;A href="http://technet.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.user.login.aspx"&gt;http://technet.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.user.login.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Pentru ce iti trebuie SQLAgent?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/P&gt;
&lt;P&gt;daca am inteles eu bine tu ai nevoie deun proces automat care sa faca toate chestiile alea.&lt;/P&gt;
&lt;P&gt;Cel mai simplu mi se pare sa faci un job sql server si folsind TSQL poti face toate taskurile alea.&lt;/P&gt;
&lt;P&gt;Resataurarea se face cu comanda tsql restore&lt;/P&gt;
&lt;P&gt;Ai grija sa dai acces userului sub care ruleaza sql agent la folderul sau shareul daca e in retea unde sunt fisierele backup&lt;/P&gt;</description></item><item><title>Re: Restore automat la DB-uri multiple</title><link>http://sqlserver.ro/forums/thread/5770.aspx</link><pubDate>Thu, 09 Oct 2008 13:01:08 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5770</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5770.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5770</wfw:commentRss><description>&lt;P&gt;Din pacate nu am lucrat cu SMO in ultimul timp, iar exemplele din MSDN sunt sublime, dar cam lipsesc...&lt;/P&gt;
&lt;P&gt;Poti incerca sa setezi proprietatea "login" a userului fara sa stergi userul - &lt;A href="http://technet.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.user.login.aspx"&gt;http://technet.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.user.login.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Pentru ce iti trebuie SQLAgent?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Restore automat la DB-uri multiple</title><link>http://sqlserver.ro/forums/thread/5769.aspx</link><pubDate>Wed, 08 Oct 2008 08:39:03 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5769</guid><dc:creator>shiva</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5769.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5769</wfw:commentRss><description>Cu SMO e mai simplu, dar am niste nelamuriri:&lt;br&gt;- in documentatie e specificat ca Database.Users suporta proprietatea Item, adica ar trebui sa pot accesa db.Users("nume_user"). Dar nu merge. Trebuie sa parcurg toata colectia ca sa ajung la userul dorit.&lt;br&gt;- acceasi problema si cu Database.Logins&lt;br&gt;- problema 3: daca restaurez un db, userul db-ului nu mai e mapat la login si solutia aplicata pana acuma a fost stergerea db userului si remapare. Se poate face mai simplu in SMO? Daca da, cum?&lt;br&gt;&lt;br&gt;L.E:&lt;br&gt;Primesc eroarea Failed to connect to server bla-bla, Source: Microsoft.SqlServer.ConnectionInfo, StackTrace:&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Common.ConnectionManager.Connect()&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Common.ConnectionManager.PoolConnect()&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Common.ConnectionManager.get_ServerVersion()&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.ExecutionManager.get_ServerVersion()&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.SqlSmoObject.GetDbComparer(Boolean inServer)&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.SqlSmoObject.InitializeStringComparer()&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.AbstractCollectionBase.get_StringComparer()&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.SimpleObjectCollectionBase.InitInnerCollection()&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.SmoCollectionBase.get_InternalStorage()&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.SmoCollectionBase.GetObjectByKey(ObjectKeyBase key)&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.DatabaseCollection.get_Item(String name)&lt;br&gt;&lt;br&gt;Din ce am gasit pe net, trebuie schimbat windows account-ul sub care ruleaza SQLAgent. Nu se poate face si altfel?&lt;br&gt;</description></item><item><title>Re: Restore automat la DB-uri multiple</title><link>http://sqlserver.ro/forums/thread/5767.aspx</link><pubDate>Tue, 07 Oct 2008 11:15:26 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5767</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5767.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5767</wfw:commentRss><description>&lt;P&gt;Vezi daca te&amp;nbsp;inspira aceste exemple de cod .NET cu SMO:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.codeproject.com/KB/cs/SQL_Server_2005_Database.aspx?msg=2750907#xx2750907xx"&gt;http://www.codeproject.com/KB/cs/SQL_Server_2005_Database.aspx?msg=2750907#xx2750907xx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/sqlexpress/archive/2007/03/20/backup-and-restore-with-user-instances.aspx"&gt;http://blogs.msdn.com/sqlexpress/archive/2007/03/20/backup-and-restore-with-user-instances.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Iata si un exemplu cu PowerShell - aici chiar ca e mult de invatat...&lt;img src="http://sqlserver.ro/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.databasejournal.com/features/mssql/article.php/3681061"&gt;http://www.databasejournal.com/features/mssql/article.php/3681061&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Restore automat la DB-uri multiple</title><link>http://sqlserver.ro/forums/thread/5766.aspx</link><pubDate>Tue, 07 Oct 2008 10:03:40 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5766</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5766.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5766</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;shiva:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Integration Services service nu e instalat pe serverul in cauza deci adio management din SQL Management Studio.&lt;br&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;Whatever ... atunci nu merge solutia mea( care era tocmai de developer: adaugai un Script control si scriai codul in el, ca aici&lt;br&gt;http://www.codebeach.com/tutorials/sql-server-integration-services-your-first-script-component.asp)&lt;br&gt;&lt;br&gt;</description></item><item><title>Re: Restore automat la DB-uri multiple</title><link>http://sqlserver.ro/forums/thread/5765.aspx</link><pubDate>Tue, 07 Oct 2008 07:59:53 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5765</guid><dc:creator>shiva</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5765.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5765</wfw:commentRss><description>Astea-s limbi straine pentru mine. Sunt a simple developer, care trebuie sa faca treaba unui DBA. &lt;img src="http://sqlserver.ro/emoticons/emotion-4.gif" alt="Stick out tongue" /&gt;&lt;br&gt;E, intradevar, vorba despre SQL Server 2005.&lt;br&gt;&lt;br&gt;So, SSIS e ceva mai mult decat DTS-urile cu care am lucrat acum 3 ani. Integration Services service nu e instalat pe serverul in cauza deci adio management din SQL Management Studio.&lt;br&gt;Exista SQL Server Business Intelligence Development Studio pentru SQL Server 2005 Express? Din cate stiu, e necesar instalarea toolkitului, dar mie tot imi lipseste IDE-ul. Btw, am VS 2008 instalat, si nu VS 2005.&lt;br&gt;&lt;br&gt;Pfff, e mult de studiat aici... Sunt o gramada maaare de ControlFlowItems si alte chestii &lt;img src="http://sqlserver.ro/emoticons/emotion-3.gif" alt="Surprise" /&gt;. Ai cumva linkuri spre ceva tutoriale mai compacte decat cele din SQL Books Online?&lt;br&gt;MS.&lt;br&gt;&lt;br&gt;</description></item><item><title>Re: Restore automat la DB-uri multiple</title><link>http://sqlserver.ro/forums/thread/5764.aspx</link><pubDate>Tue, 07 Oct 2008 07:31:49 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5764</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5764.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5764</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;shiva:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Trebuie sa fac un Restore Plan, pentru mai multe DB-uri, astfel incat, DB-urile sa fie up and running in cel mai scurt timp.&lt;br&gt;DB-urile sunt pe un alt server, unde li se face backup automat in fiecare noapte prin urmare, nu am acces, pe serverul meu, la backupfile, backupmediafamily, backupmediaset, backupset, pentru a aplica exemplul de-&lt;a href="http://www.mssqltips.com/tip.asp?tip=1243"&gt;aici&lt;/a&gt;. &lt;br&gt;DB-urile sunt: una master, care contine o tabela cu restul db-urilor si DB-urile client. Dupa restore, ar trebui sa se verifice existenta unui login, sa se mapeze loginul la un user specific al fiecarei DB client si sa se dea drepturi de executie pe proceduri stocate pt. fiecare user, pe DB-ul sau.&lt;br&gt;&lt;br&gt;Mi-ar place sa realizez asta printr-un maintenance plan, dar nu prea am idei cum.&lt;br&gt;Mersi.&lt;br&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;Daca e pentru SQL 2005 , ti-as recomanda un &lt;a href="http://msdn.microsoft.com/en-us/library/ms141026.aspx"&gt;SSIS&lt;/a&gt; - cu un scriptulete in VB.NET &lt;br&gt;</description></item><item><title>Restore automat la DB-uri multiple</title><link>http://sqlserver.ro/forums/thread/5763.aspx</link><pubDate>Tue, 07 Oct 2008 07:26:59 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5763</guid><dc:creator>shiva</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5763.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5763</wfw:commentRss><description>Trebuie sa fac un Restore Plan, pentru mai multe DB-uri, astfel incat, DB-urile sa fie up and running in cel mai scurt timp.&lt;br&gt;DB-urile sunt pe un alt server, unde li se face backup automat in fiecare noapte prin urmare, nu am acces, pe serverul meu, la backupfile, backupmediafamily, backupmediaset, backupset, pentru a aplica exemplul de-&lt;a href="http://www.mssqltips.com/tip.asp?tip=1243"&gt;aici&lt;/a&gt;. &lt;br&gt;DB-urile sunt: una master, care contine o tabela cu restul db-urilor si DB-urile client. Dupa restore, ar trebui sa se verifice existenta unui login, sa se mapeze loginul la un user specific al fiecarei DB client si sa se dea drepturi de executie pe proceduri stocate pt. fiecare user, pe DB-ul sau.&lt;br&gt;&lt;br&gt;Mi-ar place sa realizez asta printr-un maintenance plan, dar nu prea am idei cum.&lt;br&gt;Mersi.&lt;br&gt;</description></item></channel></rss>