<?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: Accesare linked server folosind openquery</title><link>http://sqlserver.ro/forums/thread/9589.aspx</link><pubDate>Thu, 12 Sep 2013 11:56:07 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9589</guid><dc:creator>mitza</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9589.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=50&amp;PostID=9589</wfw:commentRss><description>Va multumesc. Problema a fost rezolvata.</description></item><item><title>Re: Accesare linked server folosind openquery</title><link>http://sqlserver.ro/forums/thread/9588.aspx</link><pubDate>Thu, 12 Sep 2013 08:59:28 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9588</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9588.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=50&amp;PostID=9588</wfw:commentRss><description>Din SSMS, Object Explorer - Server Objects - Linked Servers - folositi properties pentru a configura securitatea linked server-ului definit.&lt;br&gt;Aveti aici cateva optiuni http://technet.microsoft.com/en-us/library/ff772782.aspx&lt;br&gt;</description></item><item><title>Accesare linked server folosind openquery</title><link>http://sqlserver.ro/forums/thread/9578.aspx</link><pubDate>Sat, 17 Aug 2013 12:59:20 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9578</guid><dc:creator>mitza</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9578.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=50&amp;PostID=9578</wfw:commentRss><description>Hello World!&lt;br /&gt;&lt;br /&gt;Am urmatoarea problema..Am 2 servere SQL: "Server_1" si "Server_2". &lt;br /&gt;Pe "Server_2" am configurat un linked server catre "Server_1", numit "Link_1". Am creat o procedura de test, care foloseste legatura "Link_1";&lt;br /&gt;&lt;br /&gt;if(OBJECT_ID('ProcTest_1') is not null)&lt;br /&gt;	drop proc ProcTest_1&lt;br /&gt;go&lt;br /&gt;&lt;br /&gt;create proc ProcTest_1&lt;br /&gt;as&lt;br /&gt;begin&lt;br /&gt;	select * from openquery(Link_1, 'select top 10 * from TableTest')&lt;br /&gt;end&lt;br /&gt;go&lt;br /&gt;&lt;br /&gt;Daca o execut din SSMS, nu returneaza nici o eroare, in consecinta returneaza datele din tabel;&lt;br /&gt;Daca o execut in scopul unui utilizator, de exemplu "User_1", din SSMS sau dintr-o interfata web care se conexteaza la baza de date prin acest user:&lt;br /&gt;	setuser 'User_1'&lt;br /&gt;		exec ProcTest_1&lt;br /&gt;	setuser &lt;br /&gt;returneaza eroarea:&lt;br /&gt;	Msg 15274, Level 16, State 1, Line 2&lt;br /&gt;	Access to the remote server is denied because the current security context is not trusted.&lt;br /&gt;&lt;br /&gt;Intrebarea mea este urmatoarea:&lt;br /&gt;	Ce trebuie sa mai configurez pe linked server pentru a putea rula procedura si in scopul altor useri;&lt;br /&gt;	Mentionez ca optiunile "RPC" si "RPC out" sunt setate pe true, iar pe ambele servere am rulat "ALTER DATABASE ... SET TRUSTWORTHY ON" pe bazele de date folosite;&lt;br /&gt;&lt;br /&gt;Va multumesc!</description></item></channel></rss>