<?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>Intrebari generale</title><link>http://sqlserver.ro/forums/16/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: Send mail from Sql server 2005</title><link>http://sqlserver.ro/forums/thread/2723.aspx</link><pubDate>Thu, 20 Sep 2007 15:06:01 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2723</guid><dc:creator>likante22</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2723.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2723</wfw:commentRss><description>&lt;P&gt;Multumesc pentru efort !!!&lt;/P&gt;
&lt;P&gt;Nu am reusit sa rezolv problema dar am schimbat contextul :&lt;/P&gt;
&lt;P&gt;in loc sa execut procedura intr-un transact-sql din job , am facut un .bat (pe care-l&amp;nbsp;chem in job CMDExec ) &amp;nbsp;&amp;nbsp; care executa un script prin sqlcmd .&lt;/P&gt;
&lt;P&gt;In scriptul sql chem procedura de send_mail ...... Asa merge . Pot sa schedulez .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Merci tuturor pentru timpul acordat !!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description></item><item><title>Re: Send mail from Sql server 2005</title><link>http://sqlserver.ro/forums/thread/2702.aspx</link><pubDate>Wed, 19 Sep 2007 15:17:01 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2702</guid><dc:creator>teddy</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2702.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2702</wfw:commentRss><description>&lt;p&gt;Cel care a facut sp_send_mail in 2005 e un dobitoc notoriu &lt;img src="http://sqlserver.ro/emoticons/emotion-12.gif" alt="Angry" /&gt; fara suparare &lt;img src="http://sqlserver.ro/emoticons/emotion-12.gif" alt="Angry" /&gt;. Eu nu pot sa scriu parametrul @query = ''&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;root&amp;gt;&amp;lt;elements&amp;gt;&amp;lt;n1&amp;gt;varsta&amp;lt;/n1&amp;gt;&amp;lt;n2&amp;gt;10&amp;lt;/n2&amp;gt;&amp;lt;/elements&amp;gt;&amp;lt;/root&amp;gt;" si sa il trimit ca atasament pentru simplul motiv ca il face praf. Tot atasamentul il scrie in Unicode si nu in ANSI pentru ca asa a gandit dobitocul respectiv. Astfel ca atunci cand ajunge in mailul meu tot atasamentul e scris "&amp;lt; ? x m l ....." pentru ca la conversia din ANSI in Unicode mai e pus un bit gol golut :)&lt;/p&gt;&lt;p&gt;Eu incerc zilele astea sa fac o procedura in care sa scriu prin concatenare de stringuri un intreg form InfoPath dar atat timp cat efectiv nu exista optiunea pentru ANSI ma cam agit aiurea. Doar in SP2 exista o optiune (&lt;span id="_ctl0_MainContent_PostFlatView"&gt;&lt;span&gt;@query_result_no_padding = 1 removes space padding and can substantially cut the file size.) dar eu nu lucrez cu SP2 &lt;img src="http://sqlserver.ro/emoticons/emotion-6.gif" alt="Sad" /&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=197543&amp;amp;SiteID=1&lt;/p&gt;&lt;p&gt;http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=146&amp;amp;messageid=279118&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Poate ca si tie nu iti merge corect selectul tot din cauza la Unicode &lt;img src="http://sqlserver.ro/emoticons/emotion-6.gif" alt="Sad" /&gt;&lt;br&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Send mail from Sql server 2005</title><link>http://sqlserver.ro/forums/thread/2697.aspx</link><pubDate>Wed, 19 Sep 2007 08:12:19 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2697</guid><dc:creator>likante22</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2697.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2697</wfw:commentRss><description>&lt;P&gt;Ai dreptate ... pot face un assembly&amp;nbsp;dar era destul de comoda sp&amp;nbsp; msdb.dbo.sp_send_dbmail :&lt;/P&gt;
&lt;P&gt;pe langa mesaje poti trimite si rezultatul sub forma de file al unor query executate ( dinamic ) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;E foarte ciudat ca in query analizer functioneaza si in job NU .&lt;/P&gt;
&lt;P&gt;Merci &lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description></item><item><title>Re: Send mail from Sql server 2005</title><link>http://sqlserver.ro/forums/thread/2696.aspx</link><pubDate>Wed, 19 Sep 2007 08:09:25 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2696</guid><dc:creator>likante22</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2696.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2696</wfw:commentRss><description>&lt;P&gt;Merci pentru sugestie ...&lt;/P&gt;
&lt;P&gt;Din pacate nu merge .Aceeasi problema .&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description></item><item><title>Re: Send mail from Sql server 2005</title><link>http://sqlserver.ro/forums/thread/2693.aspx</link><pubDate>Tue, 18 Sep 2007 18:52:40 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2693</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2693.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2693</wfw:commentRss><description>Hm nu am lucrat cu sp asta&amp;nbsp; msdb.dbo.sp_send_dbmail&lt;BR&gt;Dar daca nu functioneaza iti poti face tu un assembly in dot net cu o functie care da mialuri folosind namespace System,net si sa importi acest assembly in sql server</description></item><item><title>Re: Send mail from Sql server 2005</title><link>http://sqlserver.ro/forums/thread/2677.aspx</link><pubDate>Sun, 16 Sep 2007 11:29:26 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2677</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2677.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2677</wfw:commentRss><description>&lt;P&gt;Incercati sa folositi un parametru in loc de query:&lt;/P&gt;
&lt;P&gt;DECLARE @sqlstatement NVARCHAR(4000);&lt;/P&gt;
&lt;P&gt;SET @sqlstatement = 'SELECT 1';&lt;/P&gt;
&lt;P&gt;EXEC msdb.dbo.sp_send_dbmail&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @profile_name = 'Profile1',&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @recipients = &lt;A href="mailto:'adresa@yahoo.com'"&gt;&lt;FONT color=#000000&gt;'adresa@yahoo.com'&lt;/FONT&gt;&lt;/A&gt;,&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @body = 'body ',&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @subject = 'subject' ,&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;@query =&amp;nbsp;@sqlstatement;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Send mail from Sql server 2005</title><link>http://sqlserver.ro/forums/thread/2676.aspx</link><pubDate>Sun, 16 Sep 2007 10:10:04 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2676</guid><dc:creator>likante22</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2676.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2676</wfw:commentRss><description>&lt;P&gt;Va salut pe toti !&lt;/P&gt;
&lt;P&gt;Am o problema cu transmiterea emailurilor din SQL server 2005 . Mai precis , am un job (transact sql) care periodic executa un query pe o tabela si trimitea rezultatul la cateva adrese de email . Foloseam ( cu Profile1 inregistrat ) si functiona bine .&lt;/P&gt;
&lt;P&gt;EXEC msdb.dbo.sp_send_dbmail&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @profile_name = 'Profile1',&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @recipients = &lt;A href="mailto:'adresa@yahoo.com'"&gt;'adresa@yahoo.com'&lt;/A&gt;,&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @body = 'body ',&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @subject = 'subject' ,&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;@query =&amp;nbsp;'select 1'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;A avut loc o schimbare : pentru serviciul&amp;nbsp; SQL Server Agent (INSTANCE2005) a fost schimbat "Local System Account" cu un alt cont din domeniu ( care are drepturi suficiente) . Dupa ...nu mai trimite email si imi da o eroare :&lt;/P&gt;
&lt;P&gt;"Error formatting query result,probably invalid parameters (SQLSTATE 42000) error 22050" .&lt;/P&gt;
&lt;P&gt;Daca execut manual comanda in query (inclusiv cu parametrul&amp;nbsp;&amp;nbsp;@query =&amp;nbsp;'select 1'&amp;nbsp; ) .... functioneaza bine ( trimite mesajul ) !!!!!!!!!!!&lt;/P&gt;
&lt;P&gt;Daca execut in job fara parametrul&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@query =&amp;nbsp;'select 1'&amp;nbsp; .... iarasi functioneaza bine .&lt;/P&gt;
&lt;P&gt;NU merge in job cu parametrul&amp;nbsp;&amp;nbsp;@query =&amp;nbsp;'select 1'&amp;nbsp;&amp;nbsp; !!!!!!!!!!&lt;/P&gt;
&lt;P&gt;Orice sugestie e buna ...Multumesc anticipat !&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Salutari !Paul&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>