<?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: link-servers on views</title><link>http://sqlserver.ro/forums/thread/8983.aspx</link><pubDate>Sat, 29 Oct 2011 08:20:14 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8983</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8983.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=8983</wfw:commentRss><description>Te rog reformuleaza intr-un topic separat, cu mai multe amanunte despre ceea ce "prinzi" - poate niste screenshot-uri (?)</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/8982.aspx</link><pubDate>Wed, 26 Oct 2011 17:37:02 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8982</guid><dc:creator>Bogdi</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8982.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=8982</wfw:commentRss><description>am si eu o intrebare legata de select prin link server. De ce daca rulez selectul "select * from linked_server.master.dbo.syslogins", in profiler pe server prind rollback transaction? Se intampla asta la orice select care il fac, si primesc rezultatele selectului.&lt;br&gt;&lt;br&gt;</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/6703.aspx</link><pubDate>Thu, 05 Feb 2009 07:48:30 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6703</guid><dc:creator>neo</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6703.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6703</wfw:commentRss><description>Multumesc.</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/6702.aspx</link><pubDate>Thu, 05 Feb 2009 07:28:45 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6702</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6702.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6702</wfw:commentRss><description>Poate ca suna surprinzator, dar eu recomand InfoCenter-urile din MSDN:&lt;br&gt;- developer: &lt;a href="http://msdn.microsoft.com/en-us/library/ms151182%28SQL.90%29.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms151182(SQL.90).aspx&lt;/a&gt;&lt;br&gt;- admin: &lt;a href="http://msdn.microsoft.com/en-us/library/ms151314%28SQL.90%29.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms151314(SQL.90).aspx&lt;/a&gt;&lt;br&gt;- arhitect: &lt;a href="http://msdn.microsoft.com/en-us/library/ms151827%28SQL.90%29.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms151827(SQL.90).aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;Sint corecte, complecte si lizibile.&lt;br&gt;</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/6684.aspx</link><pubDate>Tue, 03 Feb 2009 19:28:05 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6684</guid><dc:creator>neo</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6684.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6684</wfw:commentRss><description>&lt;P&gt;Am inteles.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;remus cu o documentatie pentru replicari sub sql 2005 poti sa ma ajuti?&lt;/P&gt;
&lt;P&gt;Multumesc.&lt;/P&gt;</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/6678.aspx</link><pubDate>Tue, 03 Feb 2009 12:49:06 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6678</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6678.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6678</wfw:commentRss><description>Tabele remote intr-un join local risti sa creeze niste planuri suboptime, cum ar fi:&lt;br&gt;1) aduce local tabele remote (copie in tempdb, eventual filtrata pe conditii ce se pot aplica) apoi face join-ul&lt;br&gt;2) face un merge hash in memorie din transferul tabelelor remote (eventaul filtrate daca se poate)&lt;br&gt;3) aduce o tabele local (filtrata eventual) si face nested loop *remote* pentru fiecare record&lt;br&gt;&lt;br&gt;Toate aceaste variante sint extrem de ineficiente, mai ales daca tabele sint mari. Nici una nu se compara cu executarea join-ului remote si apoi aducerea locala doar a rezultatului.&lt;br&gt;&lt;br&gt;Exista unele situatii, rare, cind SQL poate sa faca 'push' la join remote, dar esti la mila providerului din linked server si a planului ales de optimizator. Cel mai simplu este sa faci un OPENQUERY la un select care face el join-ul, sau sa creezi pe remote server un view si sa selectezi din view-ul remote (preferabil, daca potzi sa modifici serverul remote).&lt;br&gt;</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/6677.aspx</link><pubDate>Tue, 03 Feb 2009 11:50:16 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6677</guid><dc:creator>neo</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6677.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6677</wfw:commentRss><description>&lt;P&gt;Multumesc remus.&lt;/P&gt;
&lt;P&gt;Asta vroiam sa aud: o opinie vis-a-vis de view-ul in cauza.&lt;/P&gt;
&lt;P&gt;Deci sa inteleg ca 2 tabele remote joinate local intr-un view si prefixate de link server chiar nu sunt o varianta....(sau deloc).&lt;/P&gt;
&lt;P&gt;Multumesc ptr idee.&lt;/P&gt;</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/6676.aspx</link><pubDate>Tue, 03 Feb 2009 11:45:40 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6676</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6676.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6676</wfw:commentRss><description>Sper ca este redundant sa explic ca un view local din doua tabele remote cu join intre ele este oarecum opusul la orice este corect, optim si functional. Fa join-ul remote si adu local rezultatul join-ului, fie prin openquery('...') fie printr-un link local la un view remote (declarat pe masina 'db' care face join-ul remote).&lt;br&gt;</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/6674.aspx</link><pubDate>Tue, 03 Feb 2009 11:38:37 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6674</guid><dc:creator>neo</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6674.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6674</wfw:commentRss><description>&lt;P&gt;Va trebui sa stau sa ii dau de cap, dupa ce analizez si o rezolvov am sa postez si rezultatul.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Multumesc.&lt;/P&gt;</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/6673.aspx</link><pubDate>Tue, 03 Feb 2009 08:59:18 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6673</guid><dc:creator>katalyn</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6673.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6673</wfw:commentRss><description>Problema poate proveni de la faptul ca prefixezi numele coloanelor cu [server].[baza_de_date].[schema]&lt;br&gt;Poti face asa:&lt;br&gt;SELECT a.Coloana1, B.Coloana1 &lt;br&gt;FROM server.BazaDeDate.Schema.Tabela1 A &lt;br&gt;INNER JOIN server.BazaDeDate.Schema.Tabela2 B ON A.COLOANA_ID= B.COLOANA_ID</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/6669.aspx</link><pubDate>Mon, 02 Feb 2009 19:30:03 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6669</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6669.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6669</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;neo:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Eroarea este : "Msg 4104, Level 16, State 1, Line 2" The multi-part identifier "dbo...." could not be bound.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;&lt;/p&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;FROM&lt;/span&gt; db..tabel1 &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;inner&lt;/span&gt; &lt;span style="color:Silver;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;join&lt;/span&gt; db..tabel2&lt;/span&gt;&lt;br&gt;&lt;br&gt;Verifică dacă toate câmpurile din interogarea SQL SELECT există sau/şi denumirea lor este scrisă corect.&lt;br&gt;</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/6667.aspx</link><pubDate>Mon, 02 Feb 2009 19:06:29 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6667</guid><dc:creator>neo</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6667.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6667</wfw:commentRss><description>am incercat in interogarea respectiva inainte de a posta si cu aliasuri</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/6666.aspx</link><pubDate>Mon, 02 Feb 2009 18:59:16 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6666</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6666.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6666</wfw:commentRss><description>Incearca sa folosesti alias-uri pentru tabelele din query.</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/6665.aspx</link><pubDate>Mon, 02 Feb 2009 18:38:06 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6665</guid><dc:creator>neo</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6665.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6665</wfw:commentRss><description>&lt;P&gt;Select-ul din view este: &lt;/P&gt;
&lt;P&gt;select db.dbo.tabel1.coloana, db.dbo.tabel1.coloana, db.dbo.tabel2.coloana&lt;/P&gt;
&lt;P&gt;from db.dbo.tabel1 inner join db.dbo.tabel2&lt;/P&gt;
&lt;P&gt;on db.dbo.tabel1.id=db.dbo.tabel2.id and db.dbo.tabel1.id2=db.dbo.tabel2.id2&lt;/P&gt;
&lt;P&gt;where conditii&lt;/P&gt;
&lt;P&gt;Eroarea este : "Msg 4104, Level 16, State 1, Line 2" The multi-part identifier "dbo...." could not be bound.&lt;/P&gt;
&lt;P&gt;secventa de mai sus o rulez pe o masina iar db-ul se afla pe alta masina: deci inainte de db mai trebui pus un link-server (un select chir pe l;ink server e ok dar la ceva de genu cum e mai sus: nu vrea)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: link-servers on views</title><link>http://sqlserver.ro/forums/thread/6664.aspx</link><pubDate>Mon, 02 Feb 2009 18:03:44 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6664</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6664.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6664</wfw:commentRss><description>Poate că sunt prea curios din fire, dar se poate să ne spui şi nouă ce interogare apelezi şi care este mesajul de eroare generat de SQL Server ? Mulţumesc ! &lt;img src="http://sqlserver.ro/emoticons/emotion-7.gif" alt="Tongue Tied" /&gt;&lt;br&gt;</description></item></channel></rss>