<?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>SQL Server 2008</title><link>http://sqlserver.ro/forums/50/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: Partitionarea tabelelor de sistem MS-SQL</title><link>http://sqlserver.ro/forums/thread/9478.aspx</link><pubDate>Fri, 16 Nov 2012 13:04:53 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9478</guid><dc:creator>mitza</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9478.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=50&amp;PostID=9478</wfw:commentRss><description>Va multumesc.</description></item><item><title>Re: Partitionarea tabelelor de sistem MS-SQL</title><link>http://sqlserver.ro/forums/thread/9477.aspx</link><pubDate>Fri, 16 Nov 2012 10:21:50 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9477</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9477.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=50&amp;PostID=9477</wfw:commentRss><description>Strict legat de intrebare: nu se pot indexa obiectele sistem.&lt;br&gt;</description></item><item><title>Re: Partitionarea tabelelor de sistem MS-SQL</title><link>http://sqlserver.ro/forums/thread/9476.aspx</link><pubDate>Fri, 16 Nov 2012 08:10:29 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9476</guid><dc:creator>mitza</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9476.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=50&amp;PostID=9476</wfw:commentRss><description>Sper sa fie mai optima metoda aceasta. In nici un caz nu vreu sa modific nimic, ci doar sa verific: cand vreau sa adaug un nou index, il caut in tabelul de sistem "sys.indexes" daca exista, prin milioane de linii(indexi) si intrebarea initiala era daca se pot crea indexi sau statistici pe tabelele/view-urile de sistem in SQL Server. Multumesc pentru raspuns.</description></item><item><title>Re: Partitionarea tabelelor de sistem MS-SQL</title><link>http://sqlserver.ro/forums/thread/9475.aspx</link><pubDate>Thu, 15 Nov 2012 14:55:08 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9475</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9475.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=50&amp;PostID=9475</wfw:commentRss><description>Aducerea tabelelor in interfata inseamna interogarea lor?&lt;br&gt;Daca da atunci ati putea incerca sa folositi un SELECT daca le vreti doar afisate. Pentru editare va fi mai greu asa este insa oricum nu este recomandat sa modificati un tabel din SSMS.&lt;br&gt;&lt;br&gt;Am o varianta pentru verificarea existentei unui index:&lt;br&gt;&lt;table style="background-color:#f2f2f2;border:solid 1px #e5e5e5;" 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="font-family:courier new;font-size:11px;color:gray;margin:0px;padding:2px;border-right:solid 1px #e7e7e7;"&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;padding-left:8px;"&gt;&lt;span style="color:Black;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;IF&lt;/span&gt; &lt;span style="color:Fuchsia;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;ISNULL&lt;/span&gt;(&lt;span style="color:Fuchsia;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;INDEXPROPERTY&lt;/span&gt;(&lt;span style="color:Fuchsia;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;OBJECT_ID&lt;/span&gt;(N&lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;'[HumanResources].[Department]'&lt;/span&gt;),N&lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;'AK_Department_Name'&lt;/span&gt;,&lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;'IndexID'&lt;/span&gt;),-1)=-1&lt;br&gt;&lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;PRINT&lt;/span&gt; &lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;'No Index'&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;</description></item><item><title>Re: Partitionarea tabelelor de sistem MS-SQL</title><link>http://sqlserver.ro/forums/thread/9474.aspx</link><pubDate>Thu, 15 Nov 2012 12:50:55 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9474</guid><dc:creator>mitza</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9474.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=50&amp;PostID=9474</wfw:commentRss><description>IF NOT EXISTS(SELECT 1 FROM sys.indexes WHERE object_id = OBJECT_ID(N'nume_tabel') AND name = N'nume_index')&lt;br /&gt;--daca nu exista index-ul, se creaza;&lt;br /&gt;Acelasi lucru si in cazul tabelelor, verificarea in tabelele de sistem. In plus, aducerea tabelelor in interfata SQL Management Studio folosind filtrarea lor =&gt; interogarea tabelelor de sistem =&gt; performanta scazuta, in cazul in care cautarea se face pe sute de mii/milioane de tabele;</description></item><item><title>Re: Partitionarea tabelelor de sistem MS-SQL</title><link>http://sqlserver.ro/forums/thread/9472.aspx</link><pubDate>Thu, 15 Nov 2012 12:24:42 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9472</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9472.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=50&amp;PostID=9472</wfw:commentRss><description>Cum anume faceti verificarea? Urmatorul script poate fi o alternativa:&lt;br&gt;&lt;table style="background-color:#f2f2f2;border:solid 1px #e5e5e5;" 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="font-family:courier new;font-size:11px;color:gray;margin:0px;padding:2px;border-right:solid 1px #e7e7e7;"&gt;1&lt;br&gt;2&lt;br&gt;3&lt;br&gt;4&lt;br&gt;5&lt;br&gt; &lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style="margin:0px;padding:2px;padding-left:8px;"&gt;&lt;span style="color:Black;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;USE&lt;/span&gt; AdventureWorks2008R2;&lt;br&gt;GO&lt;br&gt;&lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;IF&lt;/span&gt; &lt;span style="color:Fuchsia;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;OBJECT_ID&lt;/span&gt; (N&lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;'dbo.AWBuildVersion'&lt;/span&gt;, N&lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;'U'&lt;/span&gt;) &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;IS&lt;/span&gt; &lt;span style="color:Silver;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;NOT&lt;/span&gt; &lt;span style="color:Silver;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;NULL&lt;/span&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;DROP&lt;/span&gt; &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;TABLE&lt;/span&gt; dbo.AWBuildVersion;&lt;br&gt;GO&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;Ce informatie aveti nevoie din sys.indexes?&lt;br&gt;</description></item><item><title>Re: Partitionarea tabelelor de sistem MS-SQL</title><link>http://sqlserver.ro/forums/thread/9470.aspx</link><pubDate>Thu, 15 Nov 2012 11:46:21 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9470</guid><dc:creator>mitza</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9470.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=50&amp;PostID=9470</wfw:commentRss><description>Am o baza de date cu foarte multe tabele(sute de mii - spre milioane cu foarte multe date fiecare), iar in momentul in care creez un nou tabel, verific daca mai exista in "sys.tables". Avand sute de mii/milioane de linii in "sys.tables", verificarea numelui tabelului, merge foarte greu. Am aceeasi problema si la indexi, in tabelul de sistem pentru indexi "sys.indexes". Orice cautare in aceste tabele, inclusiv afisarea anumitor tabele in interfata(folosind filtrul), merge foarte greu. Daca nu se pot partitiona, se pot crea indexi sau statistici pe aceste tabele, deoarece in interfata apar optiunile "Indexes" si "Statistics". Exista alta posibilitate de optimizare. Va multumesc.</description></item><item><title>Re: Partitionarea tabelelor de sistem MS-SQL</title><link>http://sqlserver.ro/forums/thread/9469.aspx</link><pubDate>Thu, 15 Nov 2012 10:55:11 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9469</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9469.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=50&amp;PostID=9469</wfw:commentRss><description>Obiectele sistem nu pot fi partitionate si in general parcurgerea lor nu determina probleme de performanta cu exceptia situatilor speciale ca de exemplu instructiunilor de tip DDL (CREATE, ALTER, DELETE) in tranzactii.&lt;br&gt;&lt;br&gt;Este posibil sa detaliati un pic cazul dumneavoastra?&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Partitionarea tabelelor de sistem MS-SQL</title><link>http://sqlserver.ro/forums/thread/9465.aspx</link><pubDate>Fri, 09 Nov 2012 08:38:49 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9465</guid><dc:creator>mitza</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9465.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=50&amp;PostID=9465</wfw:commentRss><description>Hello World!&lt;br /&gt;Se pot partiona tabelele de sistem din Microsoft SQL Server, care de fapt sunt view-uri de sistem(sys.tables, sys.columns, ...), sau se pot crea indexi sau statistici pe acestea, in vederea cresterii vitezei de accesare a lor, in conditiile unei aplicatii cu foarte multe tabele, implicit coloane si indexi si la care timpul de cautare in aceste tabele este foarte mare?&lt;br /&gt;Va multumesc.</description></item></channel></rss>