<?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: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6391.aspx</link><pubDate>Thu, 11 Dec 2008 14:53:28 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6391</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6391.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6391</wfw:commentRss><description>&lt;P&gt;aceeasi eroare imi da si daca folosesc&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;FROM&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;OPENROWSET&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;
&lt;P&gt;'MICROSOFT.JET.OLEDB.4.0'&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;
&lt;P&gt;'dBase 5.0;DATABASE=D:\TMP'&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;
&lt;P&gt;'SELECT * FROM R0680507'&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;eroare:&lt;/P&gt;&lt;FONT size=1&gt;
&lt;P&gt;OLE DB provider "MICROSOFT.JET.OLEDB.4.0" for linked server "(null)" returned message "Unspecified error".&lt;/P&gt;
&lt;P&gt;Msg 7303, Level 16, State 1, Line 1&lt;/P&gt;
&lt;P&gt;Cannot initialize the data source object of OLE DB provider "MICROSOFT.JET.OLEDB.4.0" for linked server "(null)".&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000 size=2&gt;multumesc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000 size=2&gt;alex.&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6384.aspx</link><pubDate>Thu, 11 Dec 2008 13:12:35 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6384</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6384.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6384</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;Alex:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;
&lt;P&gt;are full control&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;
&lt;P&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/P&gt;
&lt;P&gt;Eu cand am facut asa ceva am folosit ca oledb provider providerul JET al ACCEului si mi-a mers incearca cu ala vezi ca sunt exmple pe net&lt;/P&gt;</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6381.aspx</link><pubDate>Thu, 11 Dec 2008 11:28:06 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6381</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6381.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6381</wfw:commentRss><description>&lt;P&gt;are full control&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6380.aspx</link><pubDate>Thu, 11 Dec 2008 10:30:54 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6380</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6380.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6380</wfw:commentRss><description>Posibil sa ai eroarea aia pentru ca ,contul subcare ruleaza serviciul sql server nu are permisiuni de read in folderul de unde citesti fisierele,verifica asta</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6379.aspx</link><pubDate>Thu, 11 Dec 2008 09:43:38 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6379</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6379.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6379</wfw:commentRss><description>&lt;P&gt;am facut astfel pana la urma:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;declare&lt;/FONT&gt;&lt;FONT size=2&gt; @var &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;varchar&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;50&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;set&lt;/FONT&gt;&lt;FONT size=2&gt; @var &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'dir /B C:\TMP'&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;if&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff00ff size=2&gt;object_id&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'tempdb..#tbl_dbf '&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;is&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;not&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;null&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;drop&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;table&lt;/FONT&gt;&lt;FONT size=2&gt; #tbl_dbf &lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;create&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;table&lt;/FONT&gt;&lt;FONT size=2&gt; #tbl_dbf &lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;NameDbf &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;varchar&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;50&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;insert&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;into&lt;/FONT&gt;&lt;FONT size=2&gt; #tbl_dbf&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;exec&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;xp_cmdshell&lt;/FONT&gt;&lt;FONT size=2&gt; @var&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;delete&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;from&lt;/FONT&gt;&lt;FONT size=2&gt; #tbl_dbf &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;where&lt;/FONT&gt;&lt;FONT size=2&gt; NameDbf &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;is&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;null&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;declare&lt;/FONT&gt;&lt;FONT size=2&gt; @dbf &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;as&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;varchar&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;50&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;declare&lt;/FONT&gt;&lt;FONT size=2&gt; c &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;cursor&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;for&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;select&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff00ff size=2&gt;replace&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;NameDbf&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'.DBF'&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;''&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;from&lt;/FONT&gt;&lt;FONT size=2&gt; #tbl_dbf&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;open&lt;/FONT&gt;&lt;FONT size=2&gt; c&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;fetch&lt;/FONT&gt;&lt;FONT size=2&gt; next &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;from&lt;/FONT&gt;&lt;FONT size=2&gt; c &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;into&lt;/FONT&gt;&lt;FONT size=2&gt; @dbf&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;while&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff00ff size=2&gt;@@fetch_status&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;0&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;begin&lt;/P&gt;
&lt;P&gt;exec&lt;/FONT&gt;&lt;FONT size=2&gt; Insert_DBF @dbf&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;fetch&lt;/FONT&gt;&lt;FONT size=2&gt; next &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;from&lt;/FONT&gt;&lt;FONT size=2&gt; c &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;into&lt;/FONT&gt;&lt;FONT size=2&gt; @dbf&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;end&lt;/P&gt;
&lt;P&gt;close&lt;/FONT&gt;&lt;FONT size=2&gt; c&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;deallocate&lt;/FONT&gt;&lt;FONT size=2&gt; c&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;iar procedura Insert_DBF este:&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;ALTER&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;PROCEDURE&lt;/FONT&gt;&lt;FONT size=2&gt; [dbo]&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;[Insert_DBF]&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;
&lt;P&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt; @Fisier &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;varchar&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;10&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;))&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;AS&lt;/P&gt;
&lt;P&gt;DECLARE&lt;/FONT&gt;&lt;FONT size=2&gt; @SqlToRun &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;NVARCHAR&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#ff00ff size=2&gt;MAX&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;SET&lt;/FONT&gt;&lt;FONT size=2&gt; @SqlToRun &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; N&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'INSERT INTO Table&lt;/P&gt;
&lt;P&gt;SELECT *&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FROM OPENROWSET(&lt;/P&gt;
&lt;P&gt;''MSDASQL'',&lt;/P&gt;
&lt;P&gt;''Driver={Microsoft dBase Driver (*.dbf)};DBQ=C:\TMP\'',&lt;/P&gt;
&lt;P&gt;''SELECT * FROM '&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;+&lt;/FONT&gt;&lt;FONT size=2&gt; @Fisier &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;+&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;''')'&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;exec&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;@SqlToRun&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;go&lt;/P&gt;
&lt;P&gt;si merge super ok mai trebuie doar sa descoper de ce primesc eroarea:&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;&amp;nbsp;&lt;/FONT&gt;Msg 7399, Level 16, State 1, Line 1&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff1493&gt;The OLE DB provider "MSDASQL" for linked server "(null)" reported an error. The provider did not give any information about the error.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Msg 7303, Level 16, State 1, Line 1&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff1493&gt;Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "(null)".&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;si am o banuiala ca este de la un dll si anume &lt;FONT color=#ff0000&gt;sqlunirl.dll &lt;/FONT&gt;&lt;FONT color=#000000&gt;pe care l-am inlocuit cu cel de pe o statie pe care tot acest proces merge f bine doar ca nu pot da restart la server decat la noapte ca sa testez daca merge&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;multumesc.&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6377.aspx</link><pubDate>Thu, 11 Dec 2008 08:34:48 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6377</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6377.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6377</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;Alex:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;
&lt;P&gt;si am mai gasit si linkul asta&lt;/P&gt;
&lt;P&gt;&lt;A href="http://education.sqlfarms.com/education/ShowPost.aspx?PostID=1771"&gt;http://education.sqlfarms.com/education/ShowPost.aspx?PostID=1771&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;prin care cu ajutorul lui xp_cmdshell si WHILE pot citi/importa toate dbf-urile dintr-un folder&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;
&lt;P&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/P&gt;
&lt;P&gt;Asta poti face si cu functia Openrowset.Iti poti face o stocata care sa ia ca parametru numele fisierului.Trebuie sa ai activat la novel de server enable openrowset si enalble opendataspurce asta se poate face si cu &lt;STRONG&gt;sql server surface area configuration&lt;/STRONG&gt;&lt;/P&gt;</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6374.aspx</link><pubDate>Thu, 11 Dec 2008 05:53:52 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6374</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6374.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6374</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;Alex:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;...&lt;p&gt;singura problema e ca nu stiu cum ii mai pot da un parametru care sa-mi defineasca sursa, sa o modifice?&lt;/p&gt;
&lt;p&gt;DTSRun /S "LAPTOPDIO\SQL2000" /U "sa" /P "password" /N "DBTest" /G "{50B66940-C281-47DF-8619-FF710E7DCDA1}" /W "0" &lt;/p&gt;
&lt;p&gt;multumesc.&lt;/p&gt;
&lt;p&gt;alex.&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;@alex: sunt variabile globale şi nu parametri.&lt;br&gt;&lt;br&gt;Variabilele globale din pachetul DTS le definesti cu ajutorul Package Properties şi alegi pagina Global Var (cred): gId INTEGER 0 şi gDen STRING (de exemplu).&lt;br&gt;&lt;br&gt;Apoi foloseşti un Execute SQL Task unde poti să defineşti o interogare SQL cu parametrii indicaţi prin ?&lt;br&gt;INSERT INTO tabela (Camp1, Camp2)&lt;br&gt;VALUES (?,?)&lt;br&gt;şi asocizei parametrii interogării SQL cu variabilele globale folosind opţiunea Parameters din Execute SQL Task.&lt;br&gt;&lt;br&gt;Obs: Primul camp este de tip INT/INTEGER (typeid 3) şi al doilea camp este de tip &lt;img src="http://sqlserver.ro/emoticons/emotion-45.gif" alt="No" /&gt;[VAR]CHAR/STRING (typeid 8).&lt;br&gt;&lt;br&gt;Execuţia pachetului se poate realiza astfel:&lt;br&gt;dtsrun /S serverSQL /E /N pachetDTS /A gId:3=123 /A gDen:8="ABC"&lt;br&gt;&lt;br&gt;-------------------------------------------------------------------------------&lt;br&gt;&lt;br&gt;În legătură cu eroarea:&lt;br&gt;"The OLE DB provider "MSDASQL" for linked server "(null)" reported an error."&lt;br&gt;încearcă să foloseşti alte DRIVERe ODBC pentru a te conecta la fişierele DBF: Microsoft Visual FoxPro driver de exemplu.&lt;br&gt;&lt;br&gt;Eventual ... reinstalează MDAC.&lt;br&gt;</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6370.aspx</link><pubDate>Wed, 10 Dec 2008 21:51:10 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6370</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6370.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6370</wfw:commentRss><description>&lt;P&gt;cu dts sau ssis in 2005 am incercat si merge f bine, singura problema este faptul ca primesc zilnic 5,6 sau 7 dbf-uri care trebuiesc importate si mereu trebuie sa modific dts/ssis ca sa schimb fisierul si sa-l import/rulez package-ul&lt;/P&gt;
&lt;P&gt;eu incerc sa gasesc o solutie sa nu mai fie nevoie sa fac lucrul asta. ce vreau eu sa fac este sa:&lt;/P&gt;
&lt;P&gt;1.creez o procedura care sa aiba ca parametru numele fisierului (care este facuta merge la mine local dar nu si pe server, acolo cand incerc sa execut primesc eroarea de la postul sau cum se cheama 6361, ceva de genul ca si cum nu as vedea folderul respectiv sau nu as avea acces la el, nu-mi vede fisierul)&lt;/P&gt;
&lt;P&gt;2.folosind :&lt;/P&gt;
&lt;P&gt;declare @var varchar(50) &lt;/P&gt;
&lt;P&gt;set @var = 'dir /B C:\TMP'&lt;/P&gt;
&lt;P&gt;exec sp_cmdshell @var&lt;/P&gt;
&lt;P&gt;sa incarc toate fisierele dbf din folderul respectiv&lt;/P&gt;
&lt;P&gt;3. si apoi sa pun intr-un WHILE sa-mi execute procedura de la pct. 1&lt;/P&gt;
&lt;P&gt;4. si apoi totul pus intr-un job care sa ruleze automat seara dupa ce cu siguranta au fost puse fisierele respective dbf-urile in folderul respectiv (si apoi ma mai gandesc si la ceva ca dupa import sa dispara fisierele importate din folderul respectiv, dar asta e cu totul alta problema si mai e mult pana acolo deci momentan iese din discutie)&lt;/P&gt;
&lt;P&gt;(la partea cu sa rulez dts-ul cu o variabila care sa fie sursa dintr-o linie de comanda cu dtsrun a picat ca nu am gasit nimic sa ma ajute pe net, ma refer la ce e scris la postul cu nr. 6336&amp;nbsp;)&lt;/P&gt;
&lt;P&gt;deci in momentul de fata problema mea este de ce primesc eroarea:&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Msg 7399, Level 16, State 1, Line 1&lt;/P&gt;
&lt;P&gt;The OLE DB provider "MSDASQL" for linked server "(null)" reported an error. The provider did not give any information about the error.&lt;/P&gt;
&lt;P&gt;Msg 7303, Level 16, State 1, Line 1&lt;/P&gt;
&lt;P&gt;Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "(null)".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cand pe masina de test sau a mea locala totul merge struna, ce-mi lipseste de pe masina live?&lt;/P&gt;
&lt;P&gt;multumesc.&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6369.aspx</link><pubDate>Wed, 10 Dec 2008 20:21:42 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6369</guid><dc:creator>alexandrul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6369.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6369</wfw:commentRss><description>O alta solutie ar mai fi scrierea unui programel in ce limbaj vrei care sa citeasca datele din dbf-uri si sa le verse in SQL Server (cel putin eu asta o sa fac pentru importul unor mdb-uri in lunile urmatoare)&lt;br&gt;</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6365.aspx</link><pubDate>Wed, 10 Dec 2008 17:23:30 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6365</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6365.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6365</wfw:commentRss><description>&lt;P&gt;Vezi daca te ajuta&amp;nbsp;&lt;A href="http://www.sqlservercentral.com/Forums/Topic603932-148-1.aspx#bm604012"&gt;http://www.sqlservercentral.com/Forums/Topic603932-148-1.aspx#bm604012&lt;/A&gt;&amp;nbsp;si &lt;A href="http://msdn.microsoft.com/en-us/library/aa337084.aspx"&gt;http://msdn.microsoft.com/en-us/library/aa337084.aspx&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6364.aspx</link><pubDate>Wed, 10 Dec 2008 16:54:05 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6364</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6364.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6364</wfw:commentRss><description>&lt;P&gt;am incercat si facand un system dns file catre folderul respectiv si apoi linked server OLE DB &amp;gt; ODBC&lt;/P&gt;
&lt;P&gt;si tot nu merge&lt;/P&gt;
&lt;P&gt;cand rulez:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;SELECT&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;*&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;FROM&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;OPENQUERY&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;LinkS&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'SELECT * FROM R0680507'&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#808080 size=2&gt;&lt;FONT color=#000000&gt;primesc eroarea&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#808080 size=2&gt;&lt;FONT size=1&gt;
&lt;P&gt;Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "LinkS".&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000 size=2&gt;chiar nu inteleg ce nu-i place&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000 size=2&gt;alex.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6362.aspx</link><pubDate>Wed, 10 Dec 2008 15:51:17 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6362</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6362.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6362</wfw:commentRss><description>&lt;P&gt;si am mai gasit si linkul asta&lt;/P&gt;
&lt;P&gt;&lt;A href="http://education.sqlfarms.com/education/ShowPost.aspx?PostID=1771"&gt;http://education.sqlfarms.com/education/ShowPost.aspx?PostID=1771&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;prin care cu ajutorul lui xp_cmdshell si WHILE pot citi/importa toate dbf-urile dintr-un folder&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6361.aspx</link><pubDate>Wed, 10 Dec 2008 15:26:21 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6361</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6361.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6361</wfw:commentRss><description>&lt;P&gt;pana la urma incerc sa fac apeland o procedura stocata:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;CREATE&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;PROCEDURE&lt;/FONT&gt;&lt;FONT size=2&gt; [dbo]&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;[Insert_DBF]&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;
&lt;P&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt; @Fisier &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;varchar&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;10&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;))&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;AS&lt;/P&gt;
&lt;P&gt;DECLARE&lt;/FONT&gt;&lt;FONT size=2&gt; @SqlToRun &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;NVARCHAR&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#ff00ff size=2&gt;MAX&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;SET&lt;/FONT&gt;&lt;FONT size=2&gt; @SqlToRun &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; N&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'INSERT INTO TableTest&lt;/P&gt;
&lt;P&gt;(contract&lt;/P&gt;
&lt;P&gt;,titular&lt;/P&gt;
&lt;P&gt;,data_incas&lt;/P&gt;
&lt;P&gt;,nr_rata&lt;/P&gt;
&lt;P&gt;,data_scad&lt;/P&gt;
&lt;P&gt;,total&lt;/P&gt;
&lt;P&gt;,anuitate&lt;/P&gt;
&lt;P&gt;,rata&lt;/P&gt;
&lt;P&gt;,dobinda&lt;/P&gt;
&lt;P&gt;,penaliz&lt;/P&gt;
&lt;P&gt;,bon&lt;/P&gt;
&lt;P&gt;,avans&lt;/P&gt;
&lt;P&gt;,rezerva&lt;/P&gt;
&lt;P&gt;,restanta&lt;/P&gt;
&lt;P&gt;,integral)&lt;/P&gt;
&lt;P&gt;SELECT &lt;/P&gt;
&lt;P&gt;convert(varchar(20),convert(numeric(26,0),contract))&lt;/P&gt;
&lt;P&gt;,titular&lt;/P&gt;
&lt;P&gt;,data_incas&lt;/P&gt;
&lt;P&gt;,nr_rata&lt;/P&gt;
&lt;P&gt;,data_scad&lt;/P&gt;
&lt;P&gt;,total&lt;/P&gt;
&lt;P&gt;,anuitate&lt;/P&gt;
&lt;P&gt;,rata&lt;/P&gt;
&lt;P&gt;,dobinda&lt;/P&gt;
&lt;P&gt;,penaliz&lt;/P&gt;
&lt;P&gt;,bon&lt;/P&gt;
&lt;P&gt;,avans&lt;/P&gt;
&lt;P&gt;,rezerva&lt;/P&gt;
&lt;P&gt;,restanta&lt;/P&gt;
&lt;P&gt;,integral &lt;/P&gt;
&lt;P&gt;FROM OPENROWSET(&lt;/P&gt;
&lt;P&gt;''MSDASQL'',&lt;/P&gt;
&lt;P&gt;''Driver={Microsoft dBase Driver (*.dbf)};DBQ=C:\TMP\'',&lt;/P&gt;
&lt;P&gt;''SELECT * FROM '&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;+&lt;/FONT&gt;&lt;FONT size=2&gt; @Fisier &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;+&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;''')'&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;exec&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;@SqlToRun&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;go&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;si o execut astfel:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;exec Insert_DBF_to_CREDISSON_PMT 'R0680507'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;la mine local merge f bine fara nici o problema dar cand rulez pe live&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;primesc eroarea:&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;FONT size=1&gt;
&lt;P&gt;Msg 7399, Level 16, State 1, Line 1&lt;/P&gt;
&lt;P&gt;The OLE DB provider "MSDASQL" for linked server "(null)" reported an error. The provider did not give any information about the error.&lt;/P&gt;
&lt;P&gt;Msg 7303, Level 16, State 1, Line 1&lt;/P&gt;
&lt;P&gt;Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "(null)".&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;chiar nu-mi dau seama de la ce poate fi,vreun sfat?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;multumesc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;alex.&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6354.aspx</link><pubDate>Tue, 09 Dec 2008 13:53:34 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6354</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6354.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6354</wfw:commentRss><description>&lt;P&gt;Sincer nu prea folosesc SSIS.Am folosit demult.Daca ai instalat BI Studio ar trebuie sa ai instalat si toolul asta dtsui.Mai exact da click dublu pe pacjhetul dtsx si ar trebui sa se lanseze auto&lt;/P&gt;</description></item><item><title>Re: executa dts dar schimba automat sursa - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6342.aspx</link><pubDate>Tue, 09 Dec 2008 10:02:53 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6342</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6342.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=6342</wfw:commentRss><description>&lt;P&gt;poti te rog sa-mi explici mai mult despre acest dtsui....cum m-ar ajuta?&lt;/P&gt;
&lt;P&gt;multumesc.&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item></channel></rss>