Exemplo n.º 1
0
    static sqlpush()
    {
        CClientSocket.QueueConfigure.MessageQueuePassword = "******";
        CClientSocket.QueueConfigure.WorkDirectory = "c:\\cyetest\\sqllog";
        ReplicationSetting rs = new ReplicationSetting();
        Dictionary<string, CConnectionContext> QNameConn = new Dictionary<string, CConnectionContext>();

        CConnectionContext cc = new CConnectionContext("127.0.0.1", 20901, "SocketPro", "PassOne");

        string []parts = Utilities.GetObjectParts(Utilities.GetDbFullName());

        string qName = parts[2] + "_ToLocal";
        QNameConn[qName] = cc;

        cc = new CConnectionContext("10.3.10.53", 20901, "SocketPro", "PassOne");
        qName = parts[2] + "_ToLinux";
        QNameConn[qName] = cc;

        m_hm = new CSqlReplication<MyAdo>(rs, QNameConn);
    }
Exemplo n.º 2
0
    static sqlpush()
    {
        CClientSocket.QueueConfigure.MessageQueuePassword = "******";
        CClientSocket.QueueConfigure.WorkDirectory        = "c:\\cyetest\\sqllog";
        ReplicationSetting rs = new ReplicationSetting();
        Dictionary <string, CConnectionContext> QNameConn = new Dictionary <string, CConnectionContext>();

        CConnectionContext cc = new CConnectionContext("127.0.0.1", 20901, "SocketPro", "PassOne");

        string [] parts = Utilities.GetObjectParts(Utilities.GetDbFullName());

        string qName = parts[2] + "_ToLocal";

        QNameConn[qName] = cc;

        cc               = new CConnectionContext("10.3.10.53", 20901, "SocketPro", "PassOne");
        qName            = parts[2] + "_ToLinux";
        QNameConn[qName] = cc;

        m_hm = new CSqlReplication <MyAdo>(rs, QNameConn);
    }