<?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</title><link>http://sqlserver.ro/forums/14/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: Cum sa atasez o baza de date fara fisierul de log</title><link>http://sqlserver.ro/forums/thread/1559.aspx</link><pubDate>Thu, 18 Jan 2007 16:49:46 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1559</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1559.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1559</wfw:commentRss><description>Fii foarte atent, asigura-te ca ai facut checkpoint inainte de distribuire etc. Pasesti pe gheatza foarte subtire. Ai considerat sa distribui in back-up sau un script care creeaza baza de date?</description></item><item><title>Re: Cum sa atasez o baza de date fara fisierul de log</title><link>http://sqlserver.ro/forums/thread/1557.aspx</link><pubDate>Thu, 18 Jan 2007 15:23:09 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1557</guid><dc:creator>radu.stanciu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1557.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1557</wfw:commentRss><description>Aplicatia pe care o distribui vine cu o baza de date continand doar structura tabelelor sau daca are date, sunt informatii de configurare care sunt in principiu fixe de la un release la altul. Deci varianta pe care o am este sa distribui un log gol pe care prefer sa nu-l distribui deloc.&lt;br&gt;</description></item><item><title>Re: Cum sa atasez o baza de date fara fisierul de log</title><link>http://sqlserver.ro/forums/thread/1550.aspx</link><pubDate>Wed, 17 Jan 2007 23:36:28 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1550</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1550.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1550</wfw:commentRss><description>&lt;P&gt;Vad ca intrebarea mea a ramas ignorata. O baza de date SQL consta atit din MDF, cit si din LDF. O procedura de distributzie care alege sa distribuie numai MDF-ul risca sa aiba suprize neplacute daca cumva log-ul contine schimbari care nu au fost aplicate in MDF.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Cum sa atasez o baza de date fara fisierul de log</title><link>http://sqlserver.ro/forums/thread/1537.aspx</link><pubDate>Tue, 16 Jan 2007 20:47:55 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1537</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1537.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1537</wfw:commentRss><description>&lt;p&gt;Vezi si BOL ---&amp;gt; Preparing to install SQL Server 2005 ---&amp;gt;
Setting up Windows Service Accounts(---&amp;gt; atentie la folosirea Local
System Account...)&lt;/p&gt;&lt;p&gt;Aici poti gasi si "access control list" pentru
contul pe care "ruleaza" SQL Server (---&amp;gt; Reviewing Access Control
Lists Created for SQL Server Service Accounts).&lt;/p&gt;&lt;p&gt;Poti
incerca de exemplu sa atasezi baza in&amp;nbsp; \Program Files\Microsoft
SQL Server\MSSQL.1\MSSQL\Data (ca in exemplul de folosire al &lt;strong&gt;sp_attach_single_file_db&lt;/strong&gt;) - acolo contul SQL Server are "full control"... &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Cum sa atasez o baza de date fara fisierul de log</title><link>http://sqlserver.ro/forums/thread/1536.aspx</link><pubDate>Tue, 16 Jan 2007 19:14:35 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1536</guid><dc:creator>radu.stanciu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1536.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1536</wfw:commentRss><description>&lt;p&gt;Da, foarte tare. Solutia este sa schimbi builtin login din Network Service in Local System in proprietatile serviciului. Nu stiu exact care sunt implicatiile modificarii, dar o voi face programatic la momentul atasarii dupa care o schimb din nou la loc.&lt;/p&gt;&lt;p&gt;Foarte ciudata problema oricum, ce nu i-o placea lui la o baza de date pusa in Program Files, el stie...&amp;nbsp;&lt;/p&gt;&lt;p&gt;Mersi mult pentru ajutor.&lt;/p&gt;&lt;p&gt;Radu&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Cum sa atasez o baza de date fara fisierul de log</title><link>http://sqlserver.ro/forums/thread/1535.aspx</link><pubDate>Tue, 16 Jan 2007 17:49:29 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1535</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1535.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1535</wfw:commentRss><description>&lt;p&gt;Vezi daca te ajuta&lt;/p&gt;&lt;p&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=120536&amp;amp;SiteID=1&lt;/p&gt;&lt;p&gt;&lt;br&gt;
&lt;/p&gt;</description></item><item><title>Re: Cum sa atasez o baza de date fara fisierul de log</title><link>http://sqlserver.ro/forums/thread/1534.aspx</link><pubDate>Tue, 16 Jan 2007 17:33:47 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1534</guid><dc:creator>radu.stanciu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1534.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1534</wfw:commentRss><description>Ok, informatii noi. Se pare ca nu este problema cu spatiile in path, ci cu orice subdirector in \Program Files sau \Windows. In orice alta parte ar fi (poate n-am gasit eu toate directoarele "ciudate") merge. Am incercat pe 3 calculatoare chestia asta si toate se comporta exact la fel. Am SQL Server 2005 Express SP1.&lt;br&gt;</description></item><item><title>Re: Cum sa atasez o baza de date fara fisierul de log</title><link>http://sqlserver.ro/forums/thread/1533.aspx</link><pubDate>Tue, 16 Jan 2007 16:18:47 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1533</guid><dc:creator>radu.stanciu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1533.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1533</wfw:commentRss><description>&lt;p&gt;Am incercat si cu sp_attach_single_file_db si eroarea pe care o primesc e aceeasi, nu gaseste logul:&lt;/p&gt;&lt;p&gt;File activation failure. The physical file name "D:\DEVELO~1\SEPLUS~4\trunk\bin\data\seplus_log.ldf" may be incorrect.&lt;br&gt;Msg 5123, Level 16, State 1, Line 1&lt;br&gt;CREATE FILE encountered operating system error 5(error not found) while attempting to open or create the physical file 'C:\Program Files\SellerEngine Software\SellerEngine Plus FBA\data\seplus_log.LDF'.&lt;br&gt;Msg 1813, Level 16, State 2, Line 1&lt;br&gt;Could not open new database 'AdventureWorks'. CREATE DATABASE is aborted.&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;br&gt;De mentionat aici ar fi ca el incearca sa isi gaseasca logul acolo unde il stia ca exista (in trunk, de unde am copiat-o initial). Totul bine pana aici, nu o gaseste, dupa care incearca sa creeze LDF-ul in Program Files, la care da eroare. Pe directorul ala are toate drepturile de scriere, deci problema e ca dupa ce ii da eroarea Not Found (cand incearca sa o deschida), nu o recreeaza.&lt;/p&gt;&lt;p&gt;Ciudatenia cea mai mare in problema asta este ca daca incerc sa atasez fisierul intr-un path care nu contine spatii, totul merge perfect. In momentul in care il pun intr-un path cu spatii, da eroarea de mai sus. Nu ma intrebati cum am ajuns la concluzia asta ca am stat o zi intreaga cu el in fata incercand toate posibilitatile la care m-am gandit :) I-am pus deci path-ul 8.3 la AttachDBFileName dar face exact la fel. Si ca sa fie totul si mai ciudat, uneori merge si intr-un path cu spatii, dar foarte inconsistent. De exemplu acum pe un calculator merge si pe al meu nu, cu acelasi exe si cu aceeasi baza de date.&lt;/p&gt;&lt;p&gt;Parametrul de Database e intr-adevar sugerat sa fie inclus cand te conectezi cu AttachDBFileName, dar de fapt daca nu i-l dai numele bazei de date este exact pathul mdf-ului trimis la AttachDBFileName.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Vreo idee?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Cum sa atasez o baza de date fara fisierul de log</title><link>http://sqlserver.ro/forums/thread/1532.aspx</link><pubDate>Tue, 16 Jan 2007 10:20:15 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1532</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1532.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1532</wfw:commentRss><description>&lt;p&gt;Vad ca in connection string nu este prezent numele bazei de date...&lt;/p&gt;&lt;p&gt;In BOL ---&amp;gt; Sql Server Programming reference ---&amp;gt; Building applications with SQL Native Client ---&amp;gt; &lt;span id="nsrTitle"&gt;Using Connection String Keywords with SQL Native Client se specifica:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;"AttachDbFileName: &lt;br&gt;
&lt;/p&gt;
&lt;p&gt;The name of the primary file (include the full path name) of an attachable 
database. To use &lt;b&gt;AttachDBFileName&lt;/b&gt;, you must also specify the database 
name with the provider string Database keyword. If the database was previously 
attached, SQL Server does not reattach it (it uses the attached database as the 
default for the connection)." &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Cum sa atasez o baza de date fara fisierul de log</title><link>http://sqlserver.ro/forums/thread/1531.aspx</link><pubDate>Tue, 16 Jan 2007 08:52:53 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1531</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1531.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1531</wfw:commentRss><description>&lt;P&gt;Puteti folosi procedura stocata &lt;STRONG&gt;sp_attach_single_file_db&lt;/STRONG&gt; ca in exemplul&amp;nbsp;preluat din Books Online:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;USE master;&lt;BR&gt;GO&lt;BR&gt;EXEC sp_detach_db @dbname = 'AdventureWorks';&lt;BR&gt;EXEC &lt;STRONG&gt;sp_attach_single_file_db&lt;/STRONG&gt; @dbname = 'AdventureWorks', &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@physname = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf';&lt;/P&gt;</description></item><item><title>Re: Cum sa atasez o baza de date fara fisierul de log</title><link>http://sqlserver.ro/forums/thread/1530.aspx</link><pubDate>Tue, 16 Jan 2007 06:46:12 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1530</guid><dc:creator>ggciubuc</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1530.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1530</wfw:commentRss><description>O discutie despre atasarea unei bd &lt;A href="http://sqlserver.ro/forums/thread/281.aspx"&gt;http://sqlserver.ro/forums/thread/281.aspx&lt;/A&gt;</description></item><item><title>Re: Cum sa atasez o baza de date fara fisierul de log</title><link>http://sqlserver.ro/forums/thread/1529.aspx</link><pubDate>Mon, 15 Jan 2007 22:09:33 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1529</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1529.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1529</wfw:commentRss><description>&lt;P&gt;Iar motivul pentru care nu potzi copia si LDF-ul este... ?&lt;/P&gt;</description></item><item><title>Cum sa atasez o baza de date fara fisierul de log</title><link>http://sqlserver.ro/forums/thread/1528.aspx</link><pubDate>Mon, 15 Jan 2007 20:33:31 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1528</guid><dc:creator>radu.stanciu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1528.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=14&amp;PostID=1528</wfw:commentRss><description>&lt;p&gt;Salut,&lt;/p&gt;&lt;p&gt;Am nevoie sa instalez pe calculatoarele userilor o baza de date SQL Server 2005 (mai exact e versiunea Express SP1) si nu reusesc sa o atasez fara sa trimit si fisierul de log.&lt;/p&gt;&lt;p&gt;Attach-ul vreau sa il fac direct din aplicatie si pentru asta folosesc urmatorul connection string:&lt;/p&gt;&lt;p&gt;Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security Info=False;Data Source=.\SQLEXPRESS;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Use Encryption for Data=False;Tag with column collation when possible=False;MARS Connection=False;DataTypeCompatibility=0;Trust Server Certificate=False;AttachDBFileName=C:\test\data1.mdf&lt;/p&gt;&lt;p&gt;Conexinuea incearca sa se deschida si eroarea pe care mi-o intoarce este: File activation failure. The physical file name "C:\test\data1_log.ldf" may be incorrect.&lt;/p&gt;&lt;p&gt;Acelasi lucru se intampla si daca din management studio ii dau:&lt;/p&gt;&lt;p&gt;CREATE DATABASE pubs ON PRIMARY &lt;br&gt;&amp;nbsp;&amp;nbsp; (FILENAME = &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'C:\test\data1.mdf')&lt;br&gt;&amp;nbsp;&amp;nbsp; FOR ATTACH&lt;br&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In mod ciudat, daca incerc acelasi lucru in folderul in care e versiunea de development, atasarea merge si fara fisierul log care pur si simplu e recreat, fara nici o eroare. Cand incerc sa fac acelasi lucru intr-un folder de deployment, apare eroarea de mai sus. Nu reusesc sa-mi dau seama care sunt diferentele si de ce intr-o parte merge si in alta nu.&lt;/p&gt;&lt;p&gt;Radu&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>