<?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: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/7747.aspx</link><pubDate>Mon, 26 Oct 2009 18:03:25 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7747</guid><dc:creator>BGeo</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7747.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7747</wfw:commentRss><description>Multumesc pentru raspunsul prompt, m-am linistit acum :) !&lt;br&gt;</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/7746.aspx</link><pubDate>Mon, 26 Oct 2009 17:37:20 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7746</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7746.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7746</wfw:commentRss><description>Poti ignora mesajul asta fara, nu indica o problema. SSB inchide conexiunile automat (dupa 1 minut de non-activate parca). Unul din servere va fi totdeuna primul care inchide, si cind se intimpla asta celalat va raporta evenimentul care-l vezi tu.&lt;br /&gt;&lt;br /&gt;Despre tcp://IP:0 este tot OK. Serverul care accepta o conexiune va pune '0' ca portul la 'peer'.</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/7745.aspx</link><pubDate>Mon, 26 Oct 2009 15:27:59 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7745</guid><dc:creator>BGeo</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7745.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7745</wfw:commentRss><description>Dupa lupte seculare, am pus pe picioare "replicarea" intre instante diferite. Toate bune si frumoase, datele se transmit, conversatiile se inchid, etc... Insa ma roade ceva, ma uit in profiler, si dupa ce curg toate mesajele cum ar trebui sa curga (bine, ma rog, dupa cate ma pricep eu) vine si un mesaj Broker :: Connection, subclass "4 - Closing", cu textul "An error occurred while receiving data: '64(The specified network name is no longer available.)'."&lt;br&gt;Asta doar pe sender, pe receiver totul pare ok, niciun mesaj de eroare.&lt;br&gt;Ce se intampla mai exact ? &lt;br&gt;In plus, mi se pare ciudat, ca la sender apare in campul ObjectName, adresa IP corecta a receiverului, cu portul aferent, exact cum le-am setat eu. Insa la receiver, sender-ul apare pe portul 0 ! Cu toate ca sunt puse amandoua pe 4022....&lt;br&gt;&lt;br&gt;Sender : &lt;a href="http://img237.imageshack.us/i/sender.jpg/" target="_blank" title="http://img237.imageshack.us/i/sender.jpg/"&gt;&lt;img src="http://img237.imageshack.us/img237/1355/sender.th.jpg" border="0" /&gt;&lt;/a&gt;&lt;br&gt;Receiver : &lt;a href="http://img266.imageshack.us/i/receiver.jpg/" target="_blank" title="http://img266.imageshack.us/i/receiver.jpg/"&gt;&lt;img src="http://img266.imageshack.us/img266/6778/receiver.th.jpg" border="0" /&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;P.S. Folosesc tehnicile descrise de Remus (inca odata multumesc, pentru toate explicatiile date !), si dupa 5 minute, timer-ul inchide conversatia.&lt;br&gt;&lt;br&gt;Later edit : M-am jucat si am rutat mesajele prin alta instanta. Acum, si pe sender, si pe receiver, imi apare acea eroare la evenimentul de closing... Pe "router" nu-mi apare nicio eroare in profiler ! Si la fel, in campul object, sender-ul apare de forma tcp://IP:0, iar receiver-ul are si portul corect (tcp://IP:4022)... nu mai inteleg nimic !&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/7404.aspx</link><pubDate>Sat, 18 Jul 2009 00:31:35 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7404</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7404.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7404</wfw:commentRss><description>Uite cum te sfatuiesc eu sa faci: fiecare filiala incepe ea o conversatie cu sediul central si trimite un mesaj cu semnificatia de 'subscriu la nomenclatoare'. Sediul central primeste mesajul si depoziteaza conversatia intr-o tabela de 'subscrisi'. &lt;br&gt;&lt;br&gt;Cind se fac modificari la nomenclator, se trimite cite un update la fiecare conversatie din 'subscrisi'. In felul asta sediul central nu are hard-coded filialele. Pe massura ce noi filiale sint deschis, ele 'subscriu' si apoi incep sa primeasca innapoi nomenclatorul la care au 'subscris'. Mesajele de update de nomenclator curg de la 'target' (sediul central) la 'initiator' (la filiale), ca mesaje de raspuns la mesajul original de 'subscriu'. I-tzi poti permite asta pentru ca conversatiile SSB sint de lunga durata si pot dura si ani de zile.&lt;br&gt;&lt;br&gt;Cind o filiala se modifica, desfiinteaza etc ea inchide conversatia si sediul central primeste mesajul de erroare sau de EndConversation, si sterge conevrsatia din atbela de 'subscrisi'.&lt;br&gt;</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/7403.aspx</link><pubDate>Fri, 17 Jul 2009 15:09:09 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7403</guid><dc:creator>BGeo</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7403.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7403</wfw:commentRss><description>Toate bune si frumoase, m-am documentat, m-am jucat, si mi-a iesit jumatate din problema, adica trimiterea datelor intr-un scenariu "many-to-one".&lt;br&gt;Exemplele de aici : http://www.sqlteam.com/article/centralized-asynchronous-auditing-across-instances-and-servers-with-service-broker mi-au fost foarte utile.&lt;br&gt;La ce m-am blocat acum, este partea "one-to-many"; nu stiu cum sa trimit datele de la "sediul central" catre "filiale".&lt;br&gt;Am sa zicem 3 tabele "nomenclator", pe care vreau sa le trimit la "filiale". Am facut acelasi lucru cu trigger pe tabele, care genereaza un XML, XML-ul asta este trimis catre procedura catre trimite dialogurile catre serviciile "filialelor". Insa nu-mi dau seama cum sa editez aceasta procedura, ca sa trimit datele modificate dintr-o tabela "nomenclator", catre toate filialele.&lt;br&gt;Banuiesc ca aici este spilul :&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -- Begin the dialog, with the new Id&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; BEGIN DIALOG CONVERSATION @dlgId&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; FROM SERVICE&amp;nbsp;&amp;nbsp;&amp;nbsp; [tcp://10.0.3.160:4022/TestDb1/Audit/DataSender]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; TO SERVICE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '//Audit/DataWriter', &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -- this is a MasterAuditDatabase Service Broker Id&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -- (change it to yours and remove &amp;lt; and &amp;gt;)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; '5E929454-43FA-4793-98FA-EB8647E1D313'&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ON CONTRACT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [//Audit/Contract]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; WITH ENCRYPTION = OFF;&lt;br&gt;sa trimit la fiecare serviciu de la filiale (stiind acel service broker ID). Insa nu-mi iese !&lt;br&gt;Plus ca n-as vrea ca de fiecare data cand adaug o filiala, sa modific aceasta procedura stocata (adica sa scriu "in clar" acel id, si sa fac send pentru fiecare id)...&lt;br&gt;Ce ma sfatuiti ?&lt;br&gt;</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/7303.aspx</link><pubDate>Mon, 15 Jun 2009 10:13:24 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7303</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7303.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7303</wfw:commentRss><description>Pai intai iti definesti endpointurile prin care o sa comunice cele doua instante ssb
apoi 
O instanta ssb pt receptor si sender.
Si din ce imi aduc eu aminte o instanta service broker implementeaza numai un contract si foloseste numai o coada.
Cred,ca corespondenta e de unu la unu adica
contract-&gt;ssb instance-&gt;queue</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/7298.aspx</link><pubDate>Thu, 11 Jun 2009 10:05:07 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7298</guid><dc:creator>BGeo</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7298.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7298</wfw:commentRss><description>Salutare, poate ma ajutati putin sa readuc la viata acest topic...&lt;br&gt;In primul rand, multumiri lui Remus si tuturor celor care au ajutat la acest subiect. Fara informatiile oferite de ei nu cred ca ma descurcam...&lt;br&gt;M-am jucat putin cu Service Broker, mi se pare foarte interesant si puternic. Este exact ce aveam nevoie pentru "plimbat" informatii intre o instanta de SQL Server normala si mai multe instante Express Edition (un fel de replicare a datelor).&lt;br&gt;Acum am o intrebare, cum este recomandat sa implementezi (la nivel de cozi, contracte, proceduri stocate) aceasta sincronizare ?&lt;br&gt;Mai clar spus, sa las o singura coada, si din toate triggerele de pe tabele, sa trimit mesajele si XML-ul cu datele efective pentru replicare prin acea coada, iar la destinatie, sa actualizez datele in functie de tabela din care au venit ?&lt;br&gt;Sau este mai bine sa fac cate o coada / contract pentru fiecare tabela din care vreau sa plimb datele ?&lt;br&gt;</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/2830.aspx</link><pubDate>Tue, 02 Oct 2007 10:25:45 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2830</guid><dc:creator>ggciubuc</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2830.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2830</wfw:commentRss><description>O discutie despre "synchronous application scenario " legata de subiectul acestei postari : &lt;A href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2218160&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2218160&amp;amp;SiteID=1&lt;/A&gt;</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/2623.aspx</link><pubDate>Fri, 07 Sep 2007 05:49:02 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2623</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2623.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2623</wfw:commentRss><description>&lt;P&gt;&lt;img src="http://sqlserver.ro/emoticons/emotion-19.gif" alt="Party!!!" /&gt; finally a ,ers se insereaza &lt;/P&gt;
&lt;P&gt;asta e codul castigator&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;begin&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;transaction&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;receive&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;top&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;1&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/FONT&gt;&lt;FONT size=2&gt; @conversation&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;conversation_handle&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt;@msgtype&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;message_type_name&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt;@msg&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;message_body &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;from&lt;/FONT&gt;&lt;FONT size=2&gt; replicare&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; @msgtype&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; @msg&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=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;@msgtype&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'insertie'&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;begin&lt;/P&gt;
&lt;P&gt;exec&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;sp_xml_preparedocument&lt;/FONT&gt;&lt;FONT size=2&gt; @idoc &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;output&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt;@msg&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_boy &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&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;openxml&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;@idoc&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'/boys/boy'&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;with&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;FirstName &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;20&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;),&lt;/FONT&gt;&lt;FONT size=2&gt;Counter &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;int&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT color=#ff00ff size=2&gt;Year&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;int&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt;id &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;int&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;exec&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;sp_xml_removedocument&lt;/FONT&gt;&lt;FONT size=2&gt; @idoc &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;end&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;-- Insert statements for procedure here&lt;/P&gt;
&lt;P&gt;--else&lt;/P&gt;
&lt;P&gt;--insert into tbl_boy values(@msgtype,-1,-1)&lt;/P&gt;
&lt;P&gt;--insert into mesaje values(@msg,@msgtype)&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;commit&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;end&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;conversation&lt;/FONT&gt;&lt;FONT size=2&gt; @conversation&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;Inca o intrebare la contractul respectiv vreau sa ma adaug doua tipuri de mesaje stergere si actualizare ca sa fac replicarea complet.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;AM vazut ca nu am alter contract cum pot face asta trebuie neaparat sa creez contractul dinnou?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;Multumesc&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/2593.aspx</link><pubDate>Mon, 03 Sep 2007 18:40:06 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2593</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2593.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2593</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;rremus:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;P&gt;Tabela mesaje are o singura coloana numita [mesaj] de tip XML. Deci insert-ul nu se poate compila:&lt;/P&gt;
&lt;P&gt;Msg 213, Level 16, State 1, Procedure repl_insert, Line 17&lt;BR&gt;Insert Error: Column name or number of supplied values does not match table definition.&lt;/P&gt;
&lt;P&gt;Ca sa pot sa te ajut te rog sa te asiguri&amp;nbsp;ca codul SQL care-l postezi poate fi compilat.&amp;nbsp;Problema trebuie sa fie in continuare in codul tau pentru ca&amp;nbsp;variabilele au valoarea corecta, dupa cum se poate vedea cu un simplu SELECT:&lt;/P&gt;
&lt;P&gt;ALTER PROCEDURE [dbo].[repl_insert]&lt;BR&gt;AS&lt;BR&gt;BEGIN&lt;BR&gt;-- SET NOCOUNT ON added to prevent extra result sets from&lt;BR&gt;-- interfering with SELECT statements.&lt;/P&gt;
&lt;P&gt;declare @conversation uniqueidentifier&lt;BR&gt;declare @msg xml,@msgtype nvarchar(128)&lt;BR&gt;SET NOCOUNT ON;&lt;BR&gt;begin transaction&lt;BR&gt;;receive top(1) @conversation=conversation_handle,@msgtype=message_type_name,@msg=message_body from replicare&lt;BR&gt;select @conversation, @msgtype, @msg&lt;BR&gt;commit &lt;BR&gt;END&lt;/P&gt;
&lt;P&gt;GO&lt;/P&gt;
&lt;P&gt;exec [repl_insert]&lt;/P&gt;
&lt;P&gt;Resulta:&lt;/P&gt;
&lt;P&gt;5728A4E5-3A52-DC11-AC20-0013723DF0DA&amp;nbsp;insertie&amp;nbsp;&amp;lt;boys&amp;gt;&amp;lt;boy FirstName="dfdfdf" Counter="0" Year="88" /&amp;gt;&amp;lt;/boys&amp;gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/P&gt;
&lt;P&gt;Pai am modifcat-o si i-am pus si tip mesaj si-mi insereaza rand null.&lt;/P&gt;
&lt;P&gt;O sa pun o coloana vbarchar pt idconversatie sa-l inreg si pe ala ca sa fiu sigur&lt;/P&gt;</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/2590.aspx</link><pubDate>Mon, 03 Sep 2007 10:26:06 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2590</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2590.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2590</wfw:commentRss><description>&lt;P&gt;Tabela mesaje are o singura coloana numita [mesaj] de tip XML. Deci insert-ul nu se poate compila:&lt;/P&gt;
&lt;P&gt;Msg 213, Level 16, State 1, Procedure repl_insert, Line 17&lt;BR&gt;Insert Error: Column name or number of supplied values does not match table definition.&lt;/P&gt;
&lt;P&gt;Ca sa pot sa te ajut te rog sa te asiguri&amp;nbsp;ca codul SQL care-l postezi poate fi compilat.&amp;nbsp;Problema trebuie sa fie in continuare in codul tau pentru ca&amp;nbsp;variabilele au valoarea corecta, dupa cum se poate vedea cu un simplu SELECT:&lt;/P&gt;
&lt;P&gt;ALTER PROCEDURE [dbo].[repl_insert]&lt;BR&gt;AS&lt;BR&gt;BEGIN&lt;BR&gt;-- SET NOCOUNT ON added to prevent extra result sets from&lt;BR&gt;-- interfering with SELECT statements.&lt;/P&gt;
&lt;P&gt;declare @conversation uniqueidentifier&lt;BR&gt;declare @msg xml,@msgtype nvarchar(128)&lt;BR&gt;SET NOCOUNT ON;&lt;BR&gt;begin transaction&lt;BR&gt;;receive top(1) @conversation=conversation_handle,@msgtype=message_type_name,@msg=message_body from replicare&lt;BR&gt;select @conversation, @msgtype, @msg&lt;BR&gt;commit &lt;BR&gt;END&lt;/P&gt;
&lt;P&gt;GO&lt;/P&gt;
&lt;P&gt;exec [repl_insert]&lt;/P&gt;
&lt;P&gt;Resulta:&lt;/P&gt;
&lt;P&gt;5728A4E5-3A52-DC11-AC20-0013723DF0DA&amp;nbsp;insertie&amp;nbsp;&amp;lt;boys&amp;gt;&amp;lt;boy FirstName="dfdfdf" Counter="0" Year="88" /&amp;gt;&amp;lt;/boys&amp;gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/2587.aspx</link><pubDate>Fri, 31 Aug 2007 12:48:46 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2587</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2587.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2587</wfw:commentRss><description>&lt;P&gt;Am creat pe receptor o tabela cu doua coloane msg xml si msgtyoe nvarchar(10)&lt;/P&gt;
&lt;P&gt;AM comentat inserturile alea,si am pus sa-mi insereze in tabela asta mesgtype si msg care le primeste,si am null imi insereaza de fiecare data cand trimit un mesaj un rand null.&lt;/P&gt;
&lt;P&gt;Asta e codul proceduri de activare&lt;/P&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;[repl_insert]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;AS&lt;/P&gt;
&lt;P&gt;BEGIN&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;-- SET NOCOUNT ON added to prevent extra result sets from&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;-- interfering with SELECT statements.&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; @conversation &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;uniqueidentifier&lt;/P&gt;
&lt;P&gt;declare&lt;/FONT&gt;&lt;FONT size=2&gt; @msg &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;xml&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt;@msgtype &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 size=2&gt;128&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;SET&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;NOCOUNT&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ON&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;begin&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;transaction&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;receive&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;top&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;1&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/FONT&gt;&lt;FONT size=2&gt; @conversation&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;conversation_handle&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt;@msgtype&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;message_type_name&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt;@msg&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;message_body &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;from&lt;/FONT&gt;&lt;FONT size=2&gt; replicare&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;
&lt;P&gt;--if (@msgtype='insertie')&lt;/P&gt;
&lt;P&gt;--insert into tbl_boy select * from boys(@msg)&lt;/P&gt;
&lt;P&gt;-- -- Insert statements for procedure here&lt;/P&gt;
&lt;P&gt;--else&lt;/P&gt;
&lt;P&gt;--insert into tbl_boy values(@msgtype,-1,-1)&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; mesaje &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;values&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;@msg&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt;@msgtype&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;commit&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;end&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;conversation&lt;/FONT&gt;&lt;FONT size=2&gt; @conversation&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;END&lt;/P&gt;
&lt;P&gt;Nu-mi dau seama care e buba &lt;img src="http://sqlserver.ro/emoticons/emotion-20.gif" alt="Sleep" /&gt;&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/2585.aspx</link><pubDate>Wed, 29 Aug 2007 11:38:59 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2585</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2585.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2585</wfw:commentRss><description>&lt;P&gt;Am executat functia boys am testat-o si-mi face shreding la xml-ul cu datele inserate.&lt;/P&gt;
&lt;P&gt;Adica am testat-o cuun xml generat cu select for xml de forma aia ,din baza de pe sender.Ar insemna ca,crapa la insertul ala da nu itneleg de ce ,o sa mai sap &lt;/P&gt;
&lt;P&gt;Multumesc mult &lt;/P&gt;</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/2583.aspx</link><pubDate>Wed, 29 Aug 2007 08:57:49 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2583</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2583.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2583</wfw:commentRss><description>&lt;P&gt;Codul nu o ia pe latura ELSE, ci pe IF, insa functia dbo.boys este incorecta. &lt;FONT size=1&gt;Recomandarea mea este sa executzi procedura manual, din Management Studio cu &lt;FONT color=#0000ff size=2&gt;exec&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;[repl_insert] &lt;/FONT&gt;pina&amp;nbsp;cind este corecta si abia apoi sa activezi procedura pe queue.&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>Re: Sincronizare SQLServer Express</title><link>http://sqlserver.ro/forums/thread/2564.aspx</link><pubDate>Mon, 27 Aug 2007 08:45:42 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2564</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2564.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2564</wfw:commentRss><description>&lt;P&gt;am facut asa :&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;declare&lt;/FONT&gt;&lt;FONT size=2&gt; @msg &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;xml&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt;@msgtype &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 size=2&gt;128&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;dar tot nu merge adica tot nule sunt amandoua &lt;img src="http://sqlserver.ro/emoticons/emotion-6.gif" alt="Sad" /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#808080 size=2&gt;De fapt cred ca procedura nici nu se mai lanseaza acu cand intra ceva in coada desi am schimbat activate la coada pe on&lt;/P&gt;&lt;/FONT&gt;</description></item></channel></rss>