Synchronization With RDA

Jan 31, 2008



Hi!

I'm developing a Windows Mobile solution (Pocket PC Win 5-6). I have Sql Server CE on the device and I use RDA (Remote Data Access) to pull the tables to the Sql Server CE. I use RdaTrackOption.TrackingOffWithIndexes so I can Alter the table design. Then I use the function SubmitSql to push back my changes. On the server I have a table for example Customers, it has a column called CustomerId with identity(1,1). Let's say the highest Id is 100 and the lowest is 50, when I add a record in the Sql Server CE it gets CustomerId = 1 then next one 2 etc which means identity is working but does not continue after 100. I don't need to use the CustomerId when I push my data back because I have sql syntax taking care of @@IDENTITY when inserting new records. Anyone who knows why it begins on 1 and not 101?

/Magnus

View 4 Replies


ADVERTISEMENT

Windows Synchronization Manager And Subscriber Web Synchronization

Dec 7, 2005

Hi,

View 5 Replies View Related

Web Synchronization - Completed Synchronization Starts Again

Sep 6, 2006

Hello everybody,

There is some strange behaviour i've recently noticed while watching synchronization progress in Replication Monitor on SQL 2005 Server Standard with merge replication configured. The merge process seems to repeat several times.

This is the initial synchronizaion (reinitalization at the subsciber). Client is using Microsoft.SQLServer.Replication objects from .net framework assemblies.

The synchronization starts normally (status is "Running"). The last message of selected session box shows (among other messages): "Beginning evaluating partial replication filters" then "Finished evaluating partial replication filters" and finally "Merge completed after processing xxx changes... etc." after a few seconds. Status changes to "Completed" and then... the merge process starts again!! "Beginning evaluating partial replication filters" etc. And this repeats about 15-20 times.

And so whole process takes about 15 minutes instead about 45 seconds to complete initial synchronization. The number of changes is "Merge completed after processing ..." never change since the first such message.

Is this some bug in web synchronization or some invalid configuration setting? Why does merge process repeat itself so many times??

Please help, thanks in advance.

Kuba

View 6 Replies View Related

Synchronization

May 6, 2008

Hi! Is there a free tool that would synchronize the database in development with the database in the live server? Thanks!

View 3 Replies View Related

Immediate Synchronization?

Sep 8, 2005

Is it possible in SQL Server to have replication happen immediately aschanges are made. That is, a change is made on server A, and that change isautomatically applied to server B, rather than the replication happening atset intervals?Thanks.

View 5 Replies View Related

Web Synchronization

Feb 19, 2007

Hello guys!
I went through the bunch of documentation pages about configuring the one for providing web subscriptions.
The most usefull for me were:

Security Architecture for Web Synchronization
How to: Configure an IIS Server for Web Synchronization (SQL Management Studio)
How to: Configure a Subscription to Use Web Synchronization
Topologies for Web Synchronization
Securing the Publisher
Subscribing to Publications
Mssubscription_properties (Transact-SQL)
How to: Configure a Subscription to Use Web Synchronization (Replication Transact-SQL)
sp_addmergepullsubscription (Transact-SQL)
Web Synchronization for Merge Replication
 But I still have questions about it. If you could help me with small notes about subscribing to web based merge publication I would really appreciate that!

I believe, I just need a bit of clarification. The target setting is simple as it is: a client should connect to the our hosting server via HTTPS and update his pull subscription on demand by running .NET application.
 Avoiding the server part, are the following steps correct and enough to accomplish what I need?
1. To create subscription, should I use the script:-- This script uses sqlcmd scripting variables. They are in the form-- $(MyVariable). For information about how to use scripting variables  -- on the command line and in SQL Server Management Studio, see the -- "Executing Replication Scripts" section in the topic-- "Programming Replication Using System Stored Procedures". -- Publication must support anonymous Subscribers.-- Execute this batch at the Subscriber.DECLARE @publication AS sysname;DECLARE @publisher AS sysname;DECLARE @publicationDB AS sysname;DECLARE @websyncurl AS sysname;DECLARE @security_mode AS int;DECLARE @login AS sysname;DECLARE @password AS nvarchar(512);SET @publication = N'AdvWorksSalesOrdersMergeWebSync';SET @publisher = $(PubServer);SET @publicationDB = N'AdventureWorks';SET @websyncurl = 'https://' + $(WebServer) + '/WebSync';SET @security_mode = 0; -- Basic Authentication for IISSET @login = $(Login);SET @password = $(Password); -- At the subscription database, create a pull subscription -- to a merge publication.USE [AdventureWorksReplica]EXEC sp_addmergepullsubscription         @publisher = @publisher,         @publication = @publication,         @publisher_db = @publicationDB,        @subscriber_type = N'anonymous'; -- Add an agent job to synchronize the pull subscription. EXEC sp_addmergepullsubscription_agent         @publisher = @publisher,         @publisher_db = @publicationDB,         @publication = @publication,         @distributor = @publisher,         @job_login = @login,         @job_password = @password,        @use_web_sync = 1,        @internet_security_mode = @security_mode,        @internet_url = @websyncurl,        @internet_login = @login,        @internet_password = @password;GO
 
What is  @job_login parameter here? As I understand, I will not run SQL Agent job as our client uses MS SQL Server  2005 Express. And I do not want to run it as we will provide a client with .NET application for performing synchrinization on demand
Parameter @publisher means full SQL Server instance name? For example, MYMACHINEMSSQLSERVER?
What user will be used to connect to the distributor and to the Publisher? Will it be @internet_login?
Do I need running sp_addmergepullsubscription_agent if I€™m going to use the following .NET application code to synchronize over the Internet?
 
2. To perform synchronization with our hosting servers, should a client use the following code?
            // Define the server, publication, and database names.
            string subscriberName = instanceName;
            string publisherName = instanceName;
            string publicationName = "AdvWorksSalesOrdersMerge";
            string subscriptionDbName = "AdventureWorksReplica";
            string publicationDbName = "AdventureWorks";
            string hostname = "adventure-works\garrett1";
            string webSyncUrl = "https://" + instanceName + "/SalesOrders/replisapi.dll";
 
            // Create a connection to the Subscriber.
            ServerConnection conn = new ServerConnection(subscriberName);
 
            MergePullSubscription subscription;
            MergeSynchronizationAgent agent;
 
            try
            {
                // Connect to the Subscriber.
                conn.Connect();
 
                // Define the pull subscription.
                subscription = new MergePullSubscription();
                subscription.ConnectionContext = conn;
                subscription.DatabaseName = subscriptionDbName;
                subscription.PublisherName = publisherName;
                subscription.PublicationDBName = publicationDbName;
                subscription.PublicationName = publicationName;
 
                // If the pull subscription exists, then start the synchronization.
                if (subscription.LoadProperties())
                {
                    // Get the agent for the subscription.
                    agent = subscription.SynchronizationAgent;
 
                    // Check that we have enough metadata to start the agent.
                    if (agent.PublisherSecurityMode == null)
                    {
                        // Set the required properties that could not be returned
                        // from the MSsubscription_properties table.
                        agent.PublisherSecurityMode = SecurityMode.Integrated;
                        agent.DistributorSecurityMode = SecurityMode.Integrated;
                        agent.HostName = hostname;
 
                        // Set optional Web synchronization properties.
                        agent.UseWebSynchronization = true;
                        agent.InternetUrl = webSyncUrl;
                        agent.InternetSecurityMode = SecurityMode.Standard;
                        agent.InternetLogin = winLogin;
                        agent.InternetPassword = winPassword;
                    }
                    // Enable agent output to the console.
                    agent.OutputVerboseLevel = 1;
                    agent.Output = "";
 
                    // Synchronously start the Merge Agent for the subscription.
                    agent.Synchronize();
                }
                else
                {
                    // Do something here if the pull subscription does not exist.
                    throw new ApplicationException(String.Format(
                        "A subscription to '{0}' does not exist on {1}",
                        publicationName, subscriberName));
                }
            }
            catch (Exception ex)
            {
                // Implement appropriate error handling here.
                throw new ApplicationException("The subscription could not be " +
                    "synchronized. Verify that the subscription has " +
                    "been defined correctly.", ex);
            }
            finally
            {
                conn.Disconnect();
            }
 
What does HostName parameter use for? What is that host? Subscriber€™s machine name instance name? Or Publisher€™s? Or Distributor€™s?
Why parameters PublisherSecurityMode and DistributorSecurityMode have value SecurityMode.Integrated? How it is used in the replication model for web synchronization? As I understood from the documentation, client (Merge Agent) should connect to the Subscriber, get the changes, connect to hosting server via HTTPS and perform transactions through the SQL Server Replication Listener, thus the internet login to the IIS should be used to perform all the operations on hosting server side? The same internet login will be used to get snapshot from UNC share?
If I€™ve chosen to use FTP to provide with snapshots, should I then provide ftp parameters to sp_addmergepullsubscription_agent stored procedure or they will be used automatically by ISAPI filters on hosting server?
Thank you.

View 1 Replies View Related

Synchronization

Mar 24, 2006

Hello,

I'm having to build a smart client application that works with an offline sql express database on the client. And works with several types of databases - that may be configured to work as a central server. The list includes the sql server family including 2000, 2005 and express and also IBM DB2.

I have to address some rather complex merge replication scenarios. By Merge I mean the ability to deal with handling and synchronization of bi-directional changes. More specifically changes to data may be made to any database in the system. either local or central.

I'm afraid, I cannot use sql replication in a heterogenous mode for several reasons. Some being - the database is being auto attached on the client, the application is expected to live up to the 'low impact' install ideology and should not need any major configuration etc.....

Are there any recomended approaches/Ideas one may use to acheive replication. Any links/information/ideas will be great.



Thanks,

Avinash





View 6 Replies View Related

Synchronization

Sep 25, 2007

First please look at image:





Code Snippet

http://www.patysie.com/screen.png

Can I be 100% sure that script component 3 (orange) will start AFTER script component 1 (yellow) is finished?

Sorry for link but I couldn't paste an image.

View 5 Replies View Related

Database Synchronization

Sep 18, 2006

I have 2 distributed databases which need to be synchronized at regular basis.  I plan to write a service that does it.  But I'm just curious how to do the update incrementally.  Thanks

View 4 Replies View Related

Synchronization Of Database

Jan 10, 2007

I have a website that is running on the intranet and on a notebook. I have a notebook that is not always connected to the internet.. when it is not connected, it will read in some data from a barcode reader; and when it's connected, it will synchronize the data with the db on the intranet.. any idea on how to achieve this? 

View 2 Replies View Related

DataBase Synchronization

Jul 2, 2007

Hi All,
I want to do SQL Server DB Synchronization. The scenario is like this..
DataBase is presently on SQL Server 2005, When end user click on button or on some action event
all data to from the server should be fetched & should be saved on client m/c. Afer that when user click on button or on some
event, DB should be synchronized. i.e. if there is any change in Server Data, client data should be automatically update...
How can i achieve this using C#..
Plzzz Help!!!!!

View 1 Replies View Related

Database Synchronization Using XML

Jun 16, 2004

I am a complete novice so I would appreciate any help or suggestions.

I have two databases : 1 development DB, 1 production DB (both are SQL Server)

I make changes to development DB on a daily basis and I need a method to bring these changes across to production DB.

Currently I query the selected table in the development DB and write the DataSet to an XML file.

##
objDataSet.WriteXml(Server.MapPath("xDataDictionary.xml"))
##

Once I go to client site (where production DB is located) I want to generate a DataSet (which I am able to do) and compare this DataSet with the DataSet created when I read in the XML file.

##
'read in XML file
XMLDataSet.ReadXML(Server.MapPath("xDataDictionary.xml"))
##

There is a unique identifier in the table and XML file called 'FieldID'.
What I need to do is compare DataSet (from Production DB) with DataSet from XML file.

If there is a 'FieldID' in the DataSet from XML file that IS NOT in DataSet from ProductionDB I want to insert this node/row into the database.

Any suggestions?

crimsonIE ;-P

View 7 Replies View Related

SQL Database Synchronization

Aug 17, 2001

I was wondering if anyone knows if there is any software available or
if it is easy to implement the following.

We are running a SQL Server database locally in house and also have
the exact same database running on a hosted webserver. The data
changes on both versions of the database daily and what we need to do
is figure out a simple easy / cheap way to have the two databases
synchronize with each other every evening so that the data is exactly
the same every morning.

I would appreciate any input.

thanks
Mark

View 1 Replies View Related

Sql Server Synchronization

Jun 6, 2002

hi!
all.

i want to create a web application architechture which having multiple web server.
this all web server having sql server database.
now what i want is to Keep all data in all databases.
means i want to synchronize my all sql servers.
it is also possible ki my one webserver can have multiple clusted database.
hope to hear soon from u people.

Regards
Viky

View 1 Replies View Related

DataBase Synchronization

Jun 9, 2004

Hi Guys:
I am trying to synchronize my home sqlserver database with a database on my web hosting company. I am not really sure how to go about it, any suggestions?

Thanks

View 3 Replies View Related

My Synchronization Scenario

Sep 22, 2005

Hi, I want to know the a solution for my Synchronization Scenario

I have a several client databses which are SQL Server 2005 Express and i have a master database which is SQL Server 2000 containing all the individual Client databases. All the individual client databases are kept seperately at the master location. I need to Synchronization the client database with its copy at the master database (something like Merge replication). Both the Client Copy as well as Master Copy could be Publishers & Subscribers.

Now the problem is Because of security & firewall issues, only the Client should have the ability to schedule & initiate the synchronization process with the master copy. Unfortunately SQL Server 2005 Express has only subscriber agent and not a publisher agent.

Any help on how to achieve this would be appreciated . Thank You

View 1 Replies View Related

Data Synchronization

Sep 29, 2006

I have one Informix in OpenVMS machine and another MS SQL in Windows machine. I cannot touch the Informix server at all.

How to do the extract/update the data periodically from Informix to SQL? I was thinking of writing a service. But I don't know how to do the incremental update.

I was thinking of doing a pull subscription from MS SQL. Is it feasible? Is it a replication or integration service? I dunno. Please help.

Thank you.

View 1 Replies View Related

Sql-Server Synchronization

May 24, 2007

Dear All,

How to do Sql Server Synchronization.

Say:
Server "A" contains "123" database.
Server "B" contains "123" database.

But changes is made on Server A. I want that every changes made on server A "123" database should reflect on Server B "123" database on real time basis.

whether it is done through replication or any other way, i want practical answer so that i can try it out.

Thanks

View 2 Replies View Related

Database Synchronization

Oct 17, 2007

Dear all,

I am using SQL Server 2000 Ent/Dev edition. I have a 2 identical database in 2 different servers and i'm required to synchronize both database. However, i need to exclude some of the tables in during this process.

I tried to search this forum but can't find any solution. How can i perform the above task? BTW i can't use trigger as i have more than 100 tables.

HOpe someone can help. Thanks.

View 11 Replies View Related

Database Synchronization?

Dec 12, 2007

Hi,
I am having this scenario; I have 2 SQL Server 2005 databases, they are basically identical in structure. The first one is used by my web application and the other is by desktop application ... I created the web db for security reasons ,.. i dont want online users to have access to the major backed (desktop db) directly so the web app is writing to the web db ... now, I want to update my major backend as transactions to the web db happen and vice versa to keep the users of both applicaions happy ... Is there a good design patterns for that? I am thinking of using db triggers for this but not sure on the implementation details ...
Your help is much appreciated

View 2 Replies View Related

Database Synchronization

Mar 10, 2004

Hi,

I'm currently working on a Database Synchronization project and I wondered if anyone had any ideas other than what I've got so far. The context of this project is that we have a central server which stores data for 10 different locations in a consolidated database. Each store contains a replica of that database, but with only data relevant to their own operation.

Store owners can change data at the store level or chain owners can change data at the central level, but for either change the other level has to be notified. I currently have 2 ideas on how to do this.

Note: I am using MS SQL Server 7 for the central, but MSDE (Desktop Edition) for the store levels. So, replication from the store to the server is not available. I think I need to actually code this on my own.

View 3 Replies View Related

SQL Database Synchronization

Apr 16, 2008

Please can somebody help me with the following:

Our company has an enterprize site (a very large one). From time to time we need to make changes in it. In other words, we had to synchronize one database (local where we make all changes) and database on hosting. So, we did it manually (wrote scripts and inserted them in database on hosting). But as the databases grew it became impossible to synchronize everything manually. So we need some tool which could cope with this task. The problem is that, as I know, there are many tools which can do it, but we are tight in time and can't evaluate them all. Please share your ideas on what tool is worth evaluating?

Thanks in advance.

View 2 Replies View Related

Replication - Synchronization

Apr 21, 2008

well, i m been working in sql 2005 since 2yrs but i m new in sql replication....

can anyone tell me how we come to know that there is replication for the synchronization between 2servers? or between publishers and subscibers?

means how its set up?

can anyone tell me? thanks.

View 4 Replies View Related

Database Synchronization

May 27, 2008

I am not a SQL developer by any means. I have a application to build for a Valet company that will require a laptop on site with no internet connectivity to function locally. There will be about 15 locations that all operate independently. After the day is done, the laptops will connect to the internet and upload all data to a hosted SQL server on the internet for centralized data storage and reporting. After a successful upload, the client database will be purged and start fresh the next day. Should this be doe with MYSql on the client and SQL server at the data center? I have some people recommending Progress database but it is expensive. I am out of my element when it comes to syncing db's so any advise is appreciated. Thanks-

View 1 Replies View Related

Synchronization Between Databases In Different Dom

May 29, 2008

is synchronization possible between databases in different domains (and different servers)

View 8 Replies View Related

Synchronization Problem

Jun 24, 2008

I have a file server and Databases in two different locations. One location is the exact replica of the other. Right now replication is done using some of-the-shelf software but I was looking if there exists some technique to synchronize the database without using any tools.

Have anyone come accross any research papers in this area or have implemented any such techniques.

View 11 Replies View Related

Database Synchronization Help

Feb 7, 2008

Dear All,
I’m having three databases with same data in three different locations. Now three users adding records to the particular databases respectively. I want all the data from server A to be there at aerver B and C. all the updations at server B should be there at Server A and server C. as well as same updations at C also. It is not possible to implement replication as all the servers are at long distance. How can I update every database with the other server’s data? I’d like to update day wise. Is there any tool to generate script on that particular date period? Experts, I think you understood my scenario, please let me know the tools or list of best possibilities for me.

I’m thinking of Incremental backup. Guide me in this scenario.

Thanks in advance.

View 8 Replies View Related

Key Violation During Synchronization

Sep 10, 2006

Dear Friends

I restored same database in Publisher & subscriber.If I want to apply Transactional replication I have to apply initial snapshot.then I am getting key-violation problems during initialization .Some times Primary key table will be dropped before foreign key table.sometimes it won't able to drop some indexes.This I am getting if I am going for all tables of database.But here i need all tables.If I am going for selective table I don't have any problem.For avoiding this problem I tried all the options in table article option in publication wizard.But some na some key violation I am getting always.So please give me some better suggestion

Thanks in Advance

Filson

View 5 Replies View Related

Table Synchronization

May 21, 2007



Hi



Is there a way to synchronize any change in a table in one of my databases to another server with the same database.



i.e.



SERVER 1 SERVER2

<ProductTable> <ProductTable>



Any changes that get made to the table on Server1 must automatically be synchronized to the table on Server2



What solutions can i use to accomplish this and if there are any, how would i go about accomplishing this task?



Any help would be greatly appreciated.



Kind Regards

Carel Greaves

View 3 Replies View Related

Error With Web Synchronization

Sep 14, 2006

Hello,

We have SQL2k5 SP1 as our database server. We have another box running IIS for web synchronization. We are seeing a lot of errors on the client side stating that they are unable to connect to the distributor. When we look at the event log on the IIS box we find application errors with the replisapi.dll. Below is a dump from the event log of the IIS box. Both boxes are 2003 with the currect patches and each have 4 GB RAM. Any help would be appreciated.

John
Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 9/12/2006
Time: 8:12:48 PM
User: N/A
Computer: SERVER-IIS5
Description:
Faulting application w3wp.exe, version 6.0.3790.1830, faulting module replisapi.dll, version 2005.90.1399.0, fault address 0x0002bd67.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 41 70 70 6c 69 63 61 74 Applicat
0008: 69 6f 6e 20 46 61 69 6c ion Fail
0010: 75 72 65 20 20 77 33 77 ure w3w
0018: 70 2e 65 78 65 20 36 2e p.exe 6.
0020: 30 2e 33 37 39 30 2e 31 0.3790.1
0028: 38 33 30 20 69 6e 20 72 830 in r
0030: 65 70 6c 69 73 61 70 69 eplisapi
0038: 2e 64 6c 6c 20 32 30 30 .dll 200
0040: 35 2e 39 30 2e 31 33 39 5.90.139
0048: 39 2e 30 20 61 74 20 6f 9.0 at o
0050: 66 66 73 65 74 20 30 30 ffset 00
0058: 30 32 62 64 36 37 02bd67

View 4 Replies View Related

Reliability During Synchronization

Apr 11, 2007

I am using SS05 64 bit standard edition, SP2 on a 2.8 GHz dual core Xeon 2 GB RAM box with a 146GB RAID 10 data partition and a 36GB mirrored OS partition.



I have 13 publications over 5 databases. Some of these publications are transactional, some are merge with updating subscribers.



I have 35 pull subscribers that use Windows XP SP2 and Sql Express SP2, and connect through wireless broadband, wired broandband, or a dial-up connection. I am not using web synchronization.



I am experiencing a high failure rate during synchronization with a variety of error messages, such as "The merge process could not replicate one or more INSERT statements to the 'Subscriber'. " Another error would be "The replication agent has not logged a progress message in 10 minutes. This might indicate an unresponsive agent or high system activity. Verify that records are being replicated to the destination and that connections to the Subscriber, Publisher, and Distributor are still active.".



.Some of these errors seem to be the result of a hiccup in the connection. These hiccups cause synchronization to fail where a normal file transfer would succeed.



I know this is a vague question, but is there any way to make this process more reliable?



Thanks in advance for your suggestions.

View 13 Replies View Related

Need Help On RAPI For PDA Synchronization

May 10, 2008

I need to do synchronization My PDA's database with Desktop Computer's database manually.
M woking with VB.Net Compact framework... So plz Give me some intial code frm which i can start My Project....

Xcept RAPI if is there any thing thn POST BACK me ???


THNX & REGARDS

AMIT MASTER

View 1 Replies View Related

Database Synchronization

Jul 3, 2007

i have a web site which i must update frequently. i want to enter information in my client database and then transfer to web. how can i do this?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved