<?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: modificare DTS Package</title><link>http://sqlserver.ro/forums/thread/1707.aspx</link><pubDate>Mon, 05 Feb 2007 19:18:37 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1707</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1707.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1707</wfw:commentRss><description>da...as putea face si asa.....procedura o am....dupa insertul ala din DTS (Execute SQL Task) sa o si execut</description></item><item><title>Re: modificare DTS Package</title><link>http://sqlserver.ro/forums/thread/1706.aspx</link><pubDate>Mon, 05 Feb 2007 19:08:04 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1706</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1706.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1706</wfw:commentRss><description>...nu prea inteleg de ce iti trebuie un trigger care calculeaza
diferenta la fiecare insert...nu te-ar ajuta o procedura care sa ruleze
dupa insert si care sa "intoarca" diferenta intr-un parametru "output"?&lt;br&gt;</description></item><item><title>Re: modificare DTS Package</title><link>http://sqlserver.ro/forums/thread/1705.aspx</link><pubDate>Mon, 05 Feb 2007 18:45:16 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1705</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1705.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1705</wfw:commentRss><description>&lt;P&gt;diana.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;pana la urma am facut un trigger pe insert care-mi calculeaza diferenta COUNT() - COUNT (DISTINCT... ) si-mi salveaza intr-un fisier .txt...nu prea imi place dar asta e....altfel nu stiu&lt;/P&gt;
&lt;P&gt;varianta pe care mi-o expui tu mai sus....poate as face-o doar daca "m-ai lua de mana" sa-mi arati....dar presupunand ca nici tu nu ai f. mult timp la dispozitie o sa incerc sa ma documentez ce si cum.....revin cu intrebari daca progresez in vreun fel......mersi mult&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: modificare DTS Package</title><link>http://sqlserver.ro/forums/thread/1698.aspx</link><pubDate>Mon, 05 Feb 2007 17:24:50 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1698</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1698.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1698</wfw:commentRss><description>&lt;p&gt;Din pacate eu nu mai am SQL 2000 instalat pe nicaieri, deci nu pot testa ceea ce iti propun acum...&lt;/p&gt;&lt;p&gt;Deci:
SQL 2000 BOL ---&amp;gt; Data Transformation Services ---&amp;gt; Adding
Functionality to a DTS Package ---&amp;gt; Using Global Variables with DTS
Packages&lt;/p&gt;&lt;p&gt;Incearca sa obtii diferenta dintre COUNT (DISTINCT... )
si COUNT() de exemplu ca pe un parametru "output" al unei proceduri
stocate si apoi incearca sa asignezi rezultatul unei "variabile
globale" - asta ar fi asemanator cu procedeul din SSIS...&lt;/p&gt;&lt;p&gt;Da-mi de veste daca chiar merge - m-ai facut curioasa...&lt;img src="http://sqlserver.ro/emoticons/emotion-1.gif" alt="Smile" /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: modificare DTS Package</title><link>http://sqlserver.ro/forums/thread/1661.aspx</link><pubDate>Mon, 05 Feb 2007 10:11:43 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1661</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1661.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1661</wfw:commentRss><description>&lt;P&gt;Buna.....in primul rand iti spun ca folosesc SQL Server 2000 (se pare ca am omis acest lucru)&lt;/P&gt;
&lt;P&gt;deci..am un DTS Package...care in primul rand sterge din tabela Tmp toate inregistrarile dupa care importa dintr-un fisier .csv (nu cred ca e important asta) in aceasta tabela Tmp toate datele.....apoi datele din tabela Tmp se copiaza in alta tabela Customer conform &lt;/P&gt;
&lt;P&gt;"INSERT INTO Customer&lt;BR&gt;(PartName,SerialNumber)&lt;BR&gt;&amp;nbsp; SELECT DISTINCT&lt;BR&gt;PartName,SerialNumber&lt;BR&gt;FROM Tmp"&lt;/P&gt;
&lt;P&gt;ce ma intereseaza este unde pot integra si cum sa pot afla cate inregistrari din Tmp nu ajung in Customer pt ca selectul are si distinct&lt;/P&gt;
&lt;P&gt;multumesc&lt;/P&gt;</description></item><item><title>Re: modificare DTS Package</title><link>http://sqlserver.ro/forums/thread/1650.aspx</link><pubDate>Sun, 04 Feb 2007 13:31:58 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1650</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1650.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1650</wfw:commentRss><description>&lt;p&gt;Alex,&lt;/p&gt;&lt;p&gt;Folosesti DTS (---&amp;gt; SQL 2000) sau SSIS (---&amp;gt; SQL 2005)?&lt;/p&gt;&lt;p&gt;De
exemplu in SSIS pentru a "vedea" @rez poti sa creezi o procedura
stocata avand @rez ca parametru "output" si poti sa mapezi @rez peste o
variabila user; variabila poate fi "pasata" urmatorului task din pachet.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Pentru un raspuns "la obiect", te rog explica mai detaliat pasii din pachetul pe care vrei sa il modifici...&lt;/p&gt;</description></item><item><title>Re: modificare DTS Package</title><link>http://sqlserver.ro/forums/thread/1643.aspx</link><pubDate>Fri, 02 Feb 2007 14:37:11 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1643</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1643.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1643</wfw:commentRss><description>&lt;SPAN class=bbtext&gt;mai simplu ar fi sa fac un trigger si la Insert into CustomerSerials sa-mi calculeze REZ unde REZ este:&lt;BR&gt;&lt;BR&gt;select REZ = (select count(*) from Tmp) - (select distinct count(*) from Tmp)&lt;BR&gt;&lt;BR&gt;chiar nu stiu....si in plus daca fac trigger el imi calculeaza pt fiecare insert.....pot face cumva sa execute triggerul o singura data pt acest tot packet&lt;/SPAN&gt;</description></item><item><title>modificare DTS Package</title><link>http://sqlserver.ro/forums/thread/1642.aspx</link><pubDate>Fri, 02 Feb 2007 14:08:51 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1642</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1642.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1642</wfw:commentRss><description>&lt;P&gt;salut, nu prea stiu cum functioneaza DTS-urile astea si am o problema...de exemplu el face &lt;/P&gt;
&lt;P&gt;INSERT INTO Customer&lt;BR&gt;(Part,Number)&lt;BR&gt;&amp;nbsp; SELECT DISTINCT&lt;BR&gt;Part,Number&lt;BR&gt;FROM Tmp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;cum pot face sa vad cate distinct nu introduce el....un count ceva de genul ma gandesc&lt;/P&gt;
&lt;P&gt;declare @var1 as int,@var2 as int&lt;/P&gt;
&lt;P&gt;set @var1 = (select count(*) from Tmp)&lt;BR&gt;set @var2 = (select distinct count(*) from Tmp)&lt;BR&gt;select&amp;nbsp; REZ = @var1 - @var2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;cum sa fac sa vizualizez chestia asta acest REZ...tinand cont ca trebuie sa o introduc in acest DTS&lt;/P&gt;</description></item></channel></rss>