<?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: Copy data from different SQL Server using TSQL</title><link>http://sqlserver.ro/forums/thread/6466.aspx</link><pubDate>Mon, 22 Dec 2008 10:53:22 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6466</guid><dc:creator>cardasim</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6466.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6466</wfw:commentRss><description>Multumesc, Diana. Eu vreau doar sa car niste date dintr-o parte in alta si vreau sa o fac printr-un script TSQL, asa ca e chiar ceea ce imi trebuie.&lt;br&gt;</description></item><item><title>Re: Copy data from different SQL Server using TSQL</title><link>http://sqlserver.ro/forums/thread/6463.aspx</link><pubDate>Fri, 19 Dec 2008 11:56:56 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6463</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6463.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6463</wfw:commentRss><description>&lt;P&gt;Vezi si BOL ---&amp;gt; &lt;SPAN id=nsrTitle&gt;Ad Hoc Distributed Queries Option &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"OPENROWSET and OPENDATASOURCE should be used only to reference OLE DB data sources that are accessed infrequently. For any data sources that will be accessed more than several times, define a linked server."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Exista acolo si o "security note"...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Copy data from different SQL Server using TSQL</title><link>http://sqlserver.ro/forums/thread/6462.aspx</link><pubDate>Fri, 19 Dec 2008 11:28:19 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6462</guid><dc:creator>cardasim</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6462.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6462</wfw:commentRss><description>Pentru scenariul meu "linked servers" sau OPENDATASOURCE sunt perfecte!&lt;br&gt;Multumesc frumos! &lt;img src="http://sqlserver.ro/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;br&gt;</description></item><item><title>Re: Copy data from different SQL Server using TSQL</title><link>http://sqlserver.ro/forums/thread/6455.aspx</link><pubDate>Wed, 17 Dec 2008 18:33:53 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6455</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6455.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6455</wfw:commentRss><description>plus&lt;br&gt;&lt;ul&gt;&lt;li&gt;OPENDATASOURCE&lt;/li&gt;&lt;li&gt;OPENROWSET&lt;/li&gt;&lt;li&gt;OPENQUERY&lt;/li&gt;&lt;/ul&gt;Exemplu BOL:&lt;br&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;SELECT&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;FROM&lt;/span&gt;      &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;OPENDATASOURCE&lt;/span&gt;&lt;br&gt;         (&lt;br&gt;         &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;'SQLOLEDB'&lt;/span&gt;,&lt;br&gt;         &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;'Data Source=ServerName;User ID=MyUID;Password=MyPass'&lt;/span&gt;&lt;br&gt;         ).Northwind.dbo.Categories&lt;/span&gt;&lt;br&gt;</description></item><item><title>Re: Copy data from different SQL Server using TSQL</title><link>http://sqlserver.ro/forums/thread/6454.aspx</link><pubDate>Wed, 17 Dec 2008 14:29:47 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6454</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6454.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6454</wfw:commentRss><description>Mai adaug: bcp, "linked servers", SSIS (pentru job-uri mai complexe).</description></item><item><title>Re: Copy data from different SQL Server using TSQL</title><link>http://sqlserver.ro/forums/thread/6453.aspx</link><pubDate>Wed, 17 Dec 2008 14:28:14 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6453</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6453.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6453</wfw:commentRss><description>Iar o altă modalitate este să foloseşti un linked server:&lt;br /&gt;&lt;br /&gt;EXEC sp_addlinkedserver 'ServerName','SQL Server'&lt;br /&gt;EXEC sp_addlinkedsrvlogin 'ServerName',@useself='FALSE',@rmtuser='UserName',@rmtpassword='Password'&lt;br /&gt;&lt;br /&gt;INSERT INTO LocalTable&lt;br /&gt;SELECT * FROM ServerName.DatabaseName.dbo.TableName&lt;br /&gt;&lt;br /&gt;Pentru mai multe informaţii privind modalităţi de autentificare, vezi: &lt;a href="http://msdn.microsoft.com/en-us/library/ms189811.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms189811.aspx&lt;/a&gt;, precum şi dialogul pentru adăugarea unui linked server &amp;#238;n Management Studio.&lt;br /&gt;&lt;br /&gt;Pentru alte modalităţi de a accesa date din alte surse, vezi: &lt;a href="http://msdn.microsoft.com/en-us/library/ms188313.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms188313.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Răzvan</description></item><item><title>Re: Copy data from different SQL Server using TSQL</title><link>http://sqlserver.ro/forums/thread/6452.aspx</link><pubDate>Wed, 17 Dec 2008 14:03:43 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6452</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6452.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6452</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;cardasim:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Pot copia date din baze diferite de data, de pe servere diferite folosind un script TSQL? Cum sta treaba cu autentificarea pe cele doua servere?&lt;br&gt;Daca nu se poate prin TSQL, ce alte posibilitati am? &lt;br&gt;Multumesc&lt;br&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;Poti sa exporti ,din SSMS de 2008 , scriptul continind datele ( si schema ...) de pe o tabela&lt;br&gt;Poti face backup / restore&lt;br&gt;Poti face un programel (chiar si powershell ...)pentru asta...&lt;br&gt;Posibilitatile sunt multiple&lt;br&gt;Nu inteleg intrebarea referitoare la autentificare ... Daca vrei orice pe o BD, TREBUIE sa ai o autentificare ... altfel, cum te-ai putea conecta?&lt;br&gt;</description></item><item><title>Copy data from different SQL Server using TSQL</title><link>http://sqlserver.ro/forums/thread/6451.aspx</link><pubDate>Wed, 17 Dec 2008 13:51:45 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6451</guid><dc:creator>cardasim</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6451.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6451</wfw:commentRss><description>Pot copia date din baze diferite de data, de pe servere diferite folosind un script TSQL? Cum sta treaba cu autentificarea pe cele doua servere?&lt;br&gt;Daca nu se poate prin TSQL, ce alte posibilitati am? &lt;br&gt;Multumesc&lt;br&gt;</description></item></channel></rss>