A Call To SQL Server Reconciler Failed. SQL Server 2005, SQL Server Mobile Merge Replication
Hi,
View Complete Forum Thread with Replies
Related Forum Messages:
A Call To SQL Server Reconciler Failed. Sql Mobile, BusinessLogicModule
I got a merge replication published by my SQL Server 2005 and subscribed by my Pocket PC emulator having SQL Mobile. This works fine. I've now developed my own class to handle my business logic according to MS specifications. Inherits from BusinessLogicModule in Microsoft.SqlServer.Replication.BusinessLogicSupport. I had by using the sp_registercustomresolver and sp_changemergearticle. When I now try to synchronize from the emulator I get the error Message: "A call to SQL Server Reconciler failed." Native Error: 29006 Source: Microsoft SQL Server 2005 Mobile Edition Any ideas what has happened? I also tryed to run the class in debug with my mobile app but same thing happens and it happens before any of my code runs.
View Replies !
Please Help : A Call To SQL Server Reconciler Failed. Try To Resynchronize.
Hi all, While i am doing new substription wizad, I encounter following error: Do I miss something? A call to SQL Server Reconciler failed. Try to resynchronize. A call to SQL Server Reconciler failed. Try to resynchronize. HRESULT 0x80004005 (29006) The schema script 'C:Program FilesMicrosoft SQL ServerMSSQLReplDataunccompuntername_SQLMOBILE_SQLMOBILE20060321224198CustomerData_2.sch' could not be propagated to the subscriber. HRESULT 0x80070005 (0) The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message file. When troubleshooting, restart the synchronization with verbose history logging and specify an output file to which to write. HRESULT 0x80045017 (0) I am using IIS 5.1 SQL 2005 (Upgrade from SQL 2000 SP4) Visual Studio 2005 Thank you very much Tony
View Replies !
SQL Server Mobile 2005 Merge Replication Problem On Windows Mobile 5.0
Dear ppl, I am writing an application for a device (MDA Pro T-Mobile) having Windows Mobile 5.0 using -MS .NET Compact Framework 2.0 SP-1 -SQL Mobile 2005. -VS 2005 .NET The application uses Merge Replication. The error occurs in the Synchronise() Method of the SqlCeReplication object. "SQL Server Mobile encountered problems when opening the database." repl.AddSubscription(AddOption.CreateDatabase); repl.Synchronize(); I don't understand why I am having this error. It does create the database on AddSubscription() method but it is failing opening the database on Synchronise(). I have also tried uninstalling and then reinstalling all the SQL Mobile components in the following order. -sqlce30.wce5.armv4i.cab -sqlce30.repl.wce5.armv4i.cab -sqlce30.dev.ENU.wce5.armv4i.cab However, when i run this application on a device(Dell X50 AXIM) with Pocket PC 2003, it runs fine creating the database and sysnchronising it. The target platform for the project is Windows Mobile 5.0 Pocket PC SDK. Does any one have any clue what could be the problem ? Regards Nabeel
View Replies !
Merge Replication Between SQL Server 2005 And SQL Mobile
Hi, I'm currently investigating the feasibility of having SQL Mobile on a number of devices running Windows CE. These devices will have to synchronize with the server (either using merge replication or RDA) over GPRS. The problem I have is that some of these devices will never be online. Is there are a way of synching these offline devices? The model I had in mind was using a USB key (or some other storage device) to download the latest updates from an online device and transferring this data to the offline device, and vice versa e.g. from offline to online and then merging. Is this feasible? Thanks Csharper
View Replies !
Merge Replication 32-bit IIS - 64-bit SQL Server 2005 -Windows Mobile 5 Device
We have setup a 32-bit IIS server on a 32-bit machine. Installed necessary SQL Server components (32-bit replication components). We have installed SQL Server 2005 64-bit SP1 with latest hotfixes on a 64-bit machine. On the Mobile device we installed SQL Server 2005 Mobile. When we start mergereplication the problem we have is error 28009 (An instance of the SQL Server Reconciler cannot be created) on the mobile device. I read allot about it, but still have a questetion. Should this work? I found the doc: SQL Server 2005 Upgrade Technical Resource Guide: Note: If your upgrade involves SQL Server CE subscribers, you must perform additional actions on the IIS server. You will need to install SQL Server 2005 client connectivity components along with SQL Server Mobile Edition components on the IIS server. You will also have to replace sqlcesa30.dlll, sqlcerp30.dll, and all the replication components on the IIS server. From this I conclude it should work or is the doc in error? If it does not, what can we do? 32-bit SQL Server 2005 on the 64-bit machine should work. (Can a 64-bit SQL Server 2005 run alongside 32-bit SQL Server 2005?). Beste regards, Hans Mank
View Replies !
SQL Server Mobile 2005 Merge Replication Failing Over SSL, But Can Browse Through Pocket IE.
Hi All, this system is scheduled to go live in near to a day... but i have hit an issue when switching on SSL. Any help would be greatly appreciated. Device Env: Windows Mobile 5.0 + Messaging and Security Feature Pack SQL Server Mobile 2005. Merge replication works fine without SSL. After running the Configure Web Sync wizzard to setup SSL merge replication no longer works. Note i checked using pocket IE by browsing to https://mycompany.com/pub/sqlcesa30.dll?diag and all worked fine. There was no prompt saying the cert was bad etc. The certificate is a: Equifax secure global ebusiness CA-1 cert. Signature algorithm md5RSA public key RSA(1024 bits) thumbprint algorithm sha1 Stacktrace given is: - ex {"A request to send data to the computer running IIS has failed. For more information, see HRESULT."} System.Data.SqlServerCe.SqlCeException - Errors {System.Data.SqlServerCe.SqlCeErrorCollection} System.Data.SqlServerCe.SqlCeErrorCollection Count 1 Integer Item In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user. System.Data.SqlServerCe.SqlCeError HResult -2147012858 Integer InnerException Nothing System.Exception Message "A request to send data to the computer running IIS has failed. For more information, see HRESULT." String NativeError 28037 Integer Source "Microsoft SQL Server 2005 Mobile Edition" String StackTrace "at System.Data.SqlServerCe.NativeMethods.CheckHRESULT() at System.Data.SqlServerCe.SqlCeReplication.Synchronize() at MyApp.Helper.Replication.SynchronizeInit() at MyApp.CallSynchronize() at System.Windows.Forms.Control.OnGotFocus() at System.Windows.Forms.Control.WnProc() at System.Windows.Forms.ContainerControl.WnProc() at System.Windows.Forms.Form.WnProc() at System.Windows.Forms.Control._InternalWnProc() at Microsoft.AGL.Forms.EVL.EnterMainLoop() at System.Windows.Forms.Application.Run() at MyApp.Program.Main()
View Replies !
How Do I Measure Bandwith Usage For Merge Replication SQL 2005 To Sql Server Mobile 2005?
Hi, Is there any way to measure bandwith usage during merge replication between sql server 2005 and sql server mobile 2005 running on a cradled wm5 mobile device. Attaching the windows performance monitor to the network connection established over usb would work although I was wondering if there was something specific for this case integrated into Sql server 2005 / sql server mobile 2005 / Sql server management studio / third party tools that i could use ? thnx, pdns.
View Replies !
Help Needed In Merge Replication, SQL Server 2005 Mobile Edition And VC# 2005
I have written following code in my application I just want to display all the data of a Single table into a Data Grid, I know that we can drag and drop the table on to a form and datagrid is generated, but here I want to retrive those values through my code, how should i do that I am getting following errors while running the program Error 1) Error No. 28037, MS SQL Server 2005 Evrywhere Edition Error: A request to send data to the computer running IIS has failed. For more information see HRESULT Error 2) Error No. 0, SQL Server 2005 Evrywhere Edition ADO.Net Data Provider Error: The specified table does not exist [ JobLists ]. Can anybody please tell me, where I went wrong ??? In this code anywhere else???? Note: While adding a Data Source of SQL Server 2005 Mobile Edition, I have added that .sdf file into my project, thats why I have written the Data Source as : .DbFile.sdf @"Data Source = .DbDotNetCF.sdf"; The code is as follows: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlServerCe; namespace DeviceApplication1 { public partial class Form1 : Form { string filename = @".DbDotNetCF.sdf"; private DataSet dsJobLists; public Form1() { InitializeComponent(); } private void DeleteDB() { if (System.IO.File.Exists(filename)) { System.IO.File.Delete(filename); } } private void Sync() { SqlCeReplication repl = new SqlCeReplication(); repl.InternetUrl = @"http://localhost/WebsiteDotNetCF/sqlcesa30.dll"; repl.Publisher = @"RAHU"; repl.PublisherDatabase = @"DotNetCF"; repl.PublisherSecurityMode = SecurityType.NTAuthentication; repl.Publication = @"PubDotNetCF"; repl.Subscriber = @"SubDotNetCF"; repl.SubscriberConnectionString = @"Data Source='" + filename + "';Max Database Size=128;Default Lock Escalation =100;"; try { if (!System.IO.File.Exists(filename)) { repl.AddSubscription(AddOption.CreateDatabase); } repl.Synchronize(); } catch (SqlCeException ex) { DisplaySQLCEErrors(ex); } finally { repl.Dispose(); } // Display Same Data In Another DataGrid : dataGrid1 SqlCeConnection cn = new SqlCeConnection(@"Data Source='" + filename + "'"); SqlCeDataAdapter daJobLists = new SqlCeDataAdapter("SELECT JobListsID, JobID, PersonID FROM JobLists", cn); if (dsJobLists == null) { dsJobLists = new DataSet(); } try { dsJobLists.Clear(); daJobLists.Fill(dsJobLists, "JobLists"); dataGrid1.DataSource = dsJobLists.Tables["JobLists"]; } catch (SqlCeException ex) { DisplaySQLCEErrors(ex); } } private void DisplaySQLCEErrors(SqlCeException ex) { for (int i = 0; i < ex.Errors.Count; i++) { MessageBox.Show("Index #" + i.ToString() + "" + ex.Errors.Source + "" + "Error: " + ex.Errors.Message, "Error No. " + ex.Errors.NativeError.ToString()); } } private void Form1_Load(object sender, EventArgs e) { Sync(); DeleteDB(); if (DbDotNetCFDataSetUtil.DesignerUtil.IsRunTime()) { // TODO: Delete this line of code to remove the default AutoFill for 'dbDotNetCFDataSet.JobLists'. this.jobListsTableAdapter.Fill(this.dbDotNetCFDataSet.JobLists); } } } } I have created a merge replication correctlly( I suppose, there were no errros) Please help Your help will be appriciated
View Replies !
Locking Up After SQL Server Mobile Merge Replication
Hi , I would like to get your advice in an issue that I am facing regarding merge replication. The flow is like: 1) User enter his login name and password. 2) Host_name is set as the login name that the user enters. 3) Based on the HOST_NAME property after filtering user gets the records relevent only to him (Differnet subscriber may use same mobile device). 4) He make some changes in the local sdf according to the business logic. 5) The application Syncs with server on the next login session. My issue is when I am trying to run the application in emulator exactly at the sdf updating part the application terminates. Error mess: Connection to Remote Device has been lost..... If I execute the same sql insert query it works om the local sdf and master database. Emulator used where Pocket PC 2003 SE and Windows Mobile 6 classic emulator. I have installed 1) Visual Studio 2005 SP 1 2) net compact framework SP2. When I comment all the code related to Sync ,application works witout any issue. And the same application works in my "I mate kjam". The code that I use is given below: ========================================================================== public void Sync(string hostname, int newsub) // Parameters for HOSTNAME and flag to denote new user or existing //user. { SqlCeReplication repl = new SqlCeReplication(); repl.InternetUrl = @"http://231.000.000.211/Merge/sqlcesa30.dll"; repl.Publisher = @"SERVER"; repl.PublisherDatabase = @"Merge"; repl.PublisherSecurityMode = SecurityType.DBAuthentication; repl.PublisherLogin = @"sa"; repl.PublisherPassword = @"password"; repl.Publication = @"Merge"; repl.Subscriber = @"MergeSub"; repl.HostName = hostname; repl.SubscriberConnectionString = @"Data Source=""Program FilesMerge.sdf"";Max Database Size=128;Default Lock Escalation =100;"; try { if (newsub == 0) { if (File.Exists(@"Program FilesMerge.sdf")) { File.Delete(@"Program FilesMerge.sdf"); } repl.AddSubscription(AddOption.CreateDatabase); repl.Synchronize(); repl.Dispose(); MessageBox.Show("newuser sync Done"); } else { if (!File.Exists(@"Program FilesMerge.sdf")) { repl.AddSubscription(AddOption.CreateDatabase); repl.Synchronize(); repl.Dispose(); MessageBox.Show("FirstSync Done"); } else { repl.Synchronize(); repl.Dispose(); MessageBox.Show("SameuserSync Done"); } } ================================================================================= Please advise......
View Replies !
Help Please....initializing SQL Server Reconciler Has Failed.
Hello, We have 10 windows mobile 5.0 devices that have been replicating with SQL 2k5 via IIS (which is on a different box) for quite some time. For some reason all of the subscribers are now getting the "initializing SQL Server Reconciler has failed." error. We are using a host_name filter and both new subscriptions and old subscriptions are getting the error. We can login with the authenticated user on the IIS box and can read the replication snapshot shared folder that is located on the database server. Does anyone have an idea on what to test next? Thanks in advance. John
View Replies !
Failed To Synchronize A SQL Mobile 2005 Database With SQL Server 2005 (Need Help)
Hi all, I have setup a database in SQL Server 2005, and then created a in that for that database. The SQL Server Agent is up and running. Then I created and connected to a Mobile 2005 database, and tried to set up a subscription to the SQL Server database, but go this error. (also the IIS server is setup as well) Is there something that I'm missing? Thanks for any help Synchronizing Data (100%) (Error) Messages A call to SQL Server Reconciler failed. Try to resynchronize. HRESULT 0x80004005 (29006) The Publisher failed to allocate a new set of identity ranges for the subscription. This can occur when a Publisher or a republishing Subscriber has run out of identity ranges to allocate to its own Subscribers or when an identity column data type does not support an additional identity range allocation. If a republishing Subscriber has run out of identity ranges, synchronize the republishing Subscriber to obtain more identity ranges before restarting the synchronization. If a Publisher runs out of identit HRESULT 0x80045647 (0) Invalid parameter @subid specified for sys.sp_MSmerge_log_idrange_alloc_on_distributor. HRESULT 0x0000523F (0) The operation could not be completed.
View Replies !
Merge Replication With SQL Mobile 2005
We are using SQL 2005 (SP1) and mobile agents with SQL Mobile. We are seeing an excessive number of updates after a device's database is reinitialized. My understanding was that if I generate a new snapshot or reinitialize all subscriptions (from the server), the devices would only get what the database looks like right now (inserts only) after syncing and/or reinitializing, but they are actually getting the right number of inserts and a huge number of updates in Replication Monitor. Any ideas? Thanks! Mike
View Replies !
SQL 2005 Mobile Merge Replication Size Limits?
I am in the process of testing a SQL 2005 Std x64 server with merge replication using Windows Mobile 5.0 clients and SQL 2005 Mobile. The test DB is a copy of the currently active DB, but has been expanded to include some new tables to support planned application functionality extensions. Once the publication exceeds 97 Articles, the error is thrown that "The buffer pool is too small or there are too many open cursors". If I drop one article everything is fine. I ran a test with dummy DB that had 100 blank tables, and this initialized just fine on the client. The additional articles I am publishing (the 98th table) is also empty, but it throws the error anyway. Is there a limit on the total size/number of changes that can be sent? Since I have run tests sending over 64,000 changes to a client during initialization this does not seem to be the case (I am only attempting a little more than 9,700 changes on this initialization). Some other ideas that have been tested without success are to stop the user triggers from propagating, and toggling the AWE setting for SQL. The Replication Monitor does say the client completes replication, and it seems to choke at the very end of completing replication when it attempts to write to the tracking tables. The last successful action is sys.sp_MSadd_merge_history90, and it appears to be acting on the last table added to the publication. There does not appear to be a limit on the number or articles, since I can publish more articles in a dummy DB than I am able here, so it seems to be something to do with size. Any information would be helpful, this is a very frustrating issue. Thanks!
View Replies !
High CPU Utilization On Merge Replication With SQL 2005 Mobile
I have a question for anyone who mas some tips/pointers for optimizing SQL merge replication publications. The front end web server is running IIS 6.0 on Windows 2003 x86 Server Standard (Server A). The back end database server is running SQL 2000 Standard on Windows 2003 x86 Standard (Server B). The merge replication clients connect via HTTPS over the Internet from a custom C#.NET 2005 application using SQL 2005 Mobile running on Windows Mobile 5.0 (Client). The publication itself has several filters on it. The entry point uses the user's Windows username to start the filter. Based on the user, it then filters the records in multiple tables. There are 68 articles and 44 filter statements. The filters extend multiple layers deep, in other words they are not all filtering off the HOST_NAME() variable, some tables filter from records in tables that filter from the HOST_NAME() variable. The publication is set to minimize data sent to the clients, and considers a subscription out of date if it has not synced in the last 4 days. All the rowguids are indexed as well. There are approximately 35 clients actively using the application at any given time. On average, a client will initiate a merge replication 3-4 times per hour from 8am-5pm. Generally, a sync will take between 10 seconds and 2 minutes to complete, with most of them being around 30 seconds on average. When a client starts a sync, there is a spike to about 50% on the server's CPU graph. If multiple clients attempt to sync at the same time the CPU utilization can be pushed to 100% for extended periods (more than 30 seconds). I recently completed a project to increase the bandwidth available to the clients, and plan to reduce the number of filters significantly (although this will obviously increase the amount of data going to the clients and the storage needs on the individual devices). I also plan on changing the setting to not minimize the amount of data sent to the clients. Having said all that, does anyone have any information about how to further optimize merge publications to mobile clients? The next publication will be on SQL 2005 x64 Standard if I can solve the issues in the text environment. I would like to enhance the publication as much as possible to make the end user experience better than it currently is. Thanks!
View Replies !
Merge Replication Issue SQL Server 2005
I have set up merge replication with 1 publisher and 1 subscriber. Distribution is handled by a 3rd server. I can generate a snapshot at the publisher and apply it to my subscriber. But when I insert some data (approx 30,000 rows) , the Synchronization agent gives the following error when It runs: The merge process is retrying a failed operation made to article 'xxx' - Reason: 'The Merge Agent was unable to synchronize the row due to one or more unanticipated errors in the batch of changes. When troubleshooting, increase the -OutputVerboseLevel setting, restart the agent, and check for and resolve any errors generated by the database engine. '. I have increased the OutputVerboseLevel setting and specified a file path in the -OutputMessageFile but the File is not being populated. All the references on books online say to put the file path in the -Output parameter but when I do it says it can only hold an integer value. So I cant see the errors generated by the database engine. Could anybody please assist with this issue? Thanks
View Replies !
Merge Replication Issues SQL Server 2005 X64
Hi ppl, I have installed SQL Server 2005 x64 Enterprise edition with Service Pack 2 on a Windows Server 2003 x64 Standard Edition with Service Pack 2. Now I have to configure Merge Replication that will work with SQL Server Compact Edition database on Windows Mobile devices. Distributor and the Publisher are the same server. IIS 6.0 is installed on the windows server. I have installed the SQL Server Compact Edition Server tools on the server. However the compact edition server tools are only available for 32bit servers and I have also found out from the article http://support.microsoft.com/default.aspx/kb/912430 that you cannot replicate data from SQL Server 2005 to SQL Server Compact Edition by using the 64-bit version of IIS. So if this is true does that mean I can not use merge replication on 64 bit server? Does that mean I have to get another 32 bit server with 32 bit IIS on it to make this work or is there another work around. Am i missing something here? Regards Nabeel
View Replies !
Merge Replication - SQL Server 2005, Windows Vista And MSVisual Studio 2005
Hello everybody! I hope that someone could help me. I have a problem when i start sincronyzing with the emulator of MSVS2005 to SQL2005 in Windows Vista. I have the same program in the emulator, but sincronyzing with windows XP Pro and no problem... I configure the connection to use the IUSR. The source code that i use: repl.InternetUrl = @"http://laptop/SQLMobileIIS/sqlcesa30.dll"; repl.Publisher = @"laptop"; repl.PublisherDatabase = @"database"; repl.PublisherSecurityMode = SecurityType.NTAuthentication; repl.Publication = @"Pubdatabase"; repl.Subscriber = @"SQLMobile"; repl.SubscriberConnectionString = @"Data Source='" + nomeFicheiroBD + "';Password='3409'"; The error that returns is: "Failure to connect to SQLServer with provided connection information. SQL Server does not exist, access is denied because the IIS user is not a valid user on the SQL Server, or the password is incorrect" Does anybody knows what i can do? HELP I NEED SOMEBODY TO HELP! Thanks!
View Replies !
Microsoft SQL Server 2005 RTM Merge Replication Issues
We are trying to implement merge replication between 2 servers. Database size is around 11GB. When I tried to create publication, snaphot agent is failing with following errror. Error: 14151, Severity: 18, State: 1. Replication-Replication Snapshot Subsystem: agent NBTENTSQL1X-PayDirectWeb-PayDirectPub-2 failed. The replication agent had encountered an exception. Source: Replication Exception Type: Microsoft.SqlServer.Replication.ReplicationAgentSqlException Exception Message: String or binary data would be truncated. Cannot find the object 'MSmerge_sel_4D388 The table where the snapshot is breaking contains around 169 columns. Can someone please help me get through this error ?
View Replies !
SQL Server 2005 Merge Replication Without A Hard Coded Password
Hi. I've looked all over MSDN, newsgroups and the web but I can't find the answer to a problem that I am having. The application that I am working on used both transactional and merge replication. I want to avoid hard coding passwords into an application that kicks off the pull replication on the client machine. The client machines are all using SQL Server 2005 Express. The other machine is running SQL Server Standard. The passwords and login details are specified in the subscription properties in the Management Studio. A fragment of the code is posted below. The transactional sychronization works fine without having to specify any passwords - however the merge replication does not work if both of the passwords are not specified. private void SynchButton_Click(object sender, EventArgs e) { // Set up the subscriber connection details. subscriberConnection = new ServerConnection(subscriberName); try { // Connect to the Subscriber. subscriberConnection.Connect(); // Do the transactional subscription synchronisation independantly of the // merge subscription replication. try { transPullSubscription = new TransPullSubscription(subscriptionDbName, publisherName, publicationDbName, transPublicationName, subscriberConnection); // If the pull subscription and the job exists, start the agent job. if (transPullSubscription.LoadProperties() && transPullSubscription.AgentJobId != null) { TransSynchronizationAgent transSyncAgent = transPullSubscription.SynchronizationAgent; transSyncAgent.Synchronize(); } else { } } catch (Exception ex) { } // Do the merge subscription synchronisation independantly of the // transactional subscription replication. try { // Set up the subscription details for the merge subscription (bi-directional data) mergePullSubscription = new MergePullSubscription(subscriptionDbName, publisherName, publicationDbName, mergePublicationName, subscriberConnection); // If the pull subscription and the job exists, start the agent job. if (mergePullSubscription.LoadProperties() && mergePullSubscription.AgentJobId != null) { MergeSynchronizationAgent mergeSyncAgent = mergePullSubscription.SynchronizationAgent; mergeSyncAgent.DistributorPassword = "<<password>>"; mergeSyncAgent.PublisherPassword = "<<password>>"; mergeSyncAgent.Synchronize(); }etc etc.. Any help or suggestions will be greatly appeciated. Thanks.
View Replies !
SQL Mobile 2005 Merge Replication With SQL 2005 X64
I am having trouble with getting Merge Replication up with a new SQL 2005 x64 Server. I already have it running smoothly with SQL 2005 Mobile and SQL 2000, but I want to migrate the backend to SQL 2005. There is a front end server running IIS 6.0 on Windows 2003 x86 Standard (Server A) with SSL required and Basic Authentication set as the only authentication method (default Domain and Realm are also set). The backend server is running SQL 2005 x64 Standard on Windows 2003 x64 Standard (Server B). The mobile devices are running Windows Mobile 5.0 with SQL 2005 Mobile (Client). From both a standard Windows XP workstation (IE) and the Client (PIE) I can browse to the HTTPS site on port 444 for the sqlcesa30.dll on Server A and get a response in normal and ?diag modes. The ?diag gives success in all but the 8.0 Database Reconciler (I didn't install the SQL 2000 replication components on Server A, my understanding is they should not be needed). Sql Server Module Versions are as follows: sqloledb.dll - 2000.86.1830.0, 9.0 replrec.dll - 2005.90.1399.0, 9.0 replprov.dll - 2005.90.1399.0, 9.0 msgprox.dll - 2005.90.1399.0. The publication on Server B is enabled for Web Synchronization and the Snapshop Agent has run. There are no reported errors on that side. Since I ran into issues getting synchronization to run I have opened up permissions fairly wide in this test environment. The PAL and the Database both have the user I am attempting to sync with listed (I am using the Administrator account in the test domain). I have opened full rights on the Snapshot share on Server B to Everyone (both NTFS ACL on the directory and the Share permissions). The virtual directory on Server A containing the sqlcesa30.dll has also been opened very wide, and the Application Pool does have access to it. The Client is running a custom C#.NET 2005 application. With the exception of changes to set the application to sync with the Server A/B duo instead of the production servers, this application is identical to the code currently being used in production with SQL 2000 Standard. The persistent error that I am getting from the Client being thrown by SQL 2005 Mobile when I attempt to sync is "An instance of the SQL Server Reconciler error object cannot be created. Try reinstalling the replication components." SQL 2005 Mobile components on Server A are set to Logging Level 3 but not returning any errors that I can see to troubleshoot with. All replication components appear to be installed and operational, although I have re-installed them. Besides the obvious question of how to solve the error listed above, is there an issue with am x85 front end IIS 6.0 server talking to an x64 back end SQL 2005 server for merge replication over HTTPS with Windows Mobile 5.0 clients running SQL 2005 Mobile? Based on everything I have read off the MSDN Forums, MSDN articles, BOL, log files, and web searches it seems like I should have an operational synching topology, however clearly I have missed something because I have yet to get a successful subscription through to the publication. Any insight/enlightenment would be greatly appreciated, this seems to be a very narrow and specific area of replication and mobility and information is relatively sparse from my experience so far. Thanks!
View Replies !
SQL SERVER 2005 REPLICATION (MERGE AGENT FAILING : PUSH SUBSCRIPTION)
ERROR MESSAGE: "Message: Incorrect syntax near 'NoteID'." Here is a snipet from the output file: 2006-03-27 13:01:49.820 Skipping file 'NotesHistory_21.sch' because it has already been delivered for a previous article or by a previously interrupted snapshot. 2006-03-27 13:01:49.867 OLE DB Subscriber 'LUZERNV4-PDOSQL4': SET ANSI_NULLS ON 2006-03-27 13:01:49.898 OLE DB Distributor 'LARGOS00-SDI': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)} 2006-03-27 13:01:49.945 OLE DB Subscriber 'LUZERNV4-PDOSQL4': SET QUOTED_IDENTIFIER ON 2006-03-27 13:01:50.008 [17%] OLE DB Subscriber 'LUZERNV4-PDOSQL4': CREATE TABLE [dbo].[MSmerge_conflict_EFILE_MERGE_NotesHistory]( [NoteID] [int] NOT NULL, [CaseRefNum] [int] NOT NULL, [KeyField] [varchar](500) NOT NULL, [KeyValue] [varchar](500) NOT NULL, [Note] [varchar](800) NULL, [NoteField] [varchar](100) NULL, [ScanDocID] [int] NULL, [PDF_ID] [int] NULL, [RescanCode] [int] NULL, [RescanNote] [varchar](100) NULL, [AuditID] [bigint] NOT NULL, [rowguid] [uniqueidentifier] ROWGUIDCOL NOT NULL ) ꜽśã¹? êœ?Å›B 27 13:01î–”Å›è›ªç —êœ?Å›é”?Ä€Percent Complete: 17 2006-03-27 13:01:50.086 OLE DB Subscriber 'LUZERNV4-PDOSQL4': SET ANSI_NULLS ON 2006-03-27 13:01:50.117 Preparing table 'NotesHistory' for merge replication 2006-03-27 13:01:50.164 OLE DB Subscriber 'LUZERNV4-PDOSQL4': SET QUOTED_IDENTIFIER ON 2006-03-27 13:01:50.195 OLE DB Distributor 'LARGOS00-SDI': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)} 2006-03-27 13:01:50.258 OLE DB Subscriber 'LUZERNV4-PDOSQL4': if object_id('MSmerge_conflicts_info') is not NULL alter table [MSmerge_conflict_EFILE_MERGE_NotesHistory] add origin_datasource_id uniqueidentifier NULL 2006-03-27 13:01:50.351 OLE DB Subscriber 'LUZERNV4-PDOSQL4': if object_id('MSmerge_conflicts_info') is not NULL create nonclustered index [ncMSmerge_conflict_EFILE_MERGE_NotesHistory] on [MSmerge_conflict_EFILE_MERGE_NotesHistory] ([rowguid], origin_datasource_id) 2006-03-27 13:01:50.383 OLE DB Subscriber 'LUZERNV4-PDOSQL4': exec sp_MSsetconflicttable @article = N'NotesHistory', @conflict_table = N'MSmerge_conflict_EFILE_MERGE_NotesHistory' 2006-03-27 13:01:50.430 OLE DB Subscriber 'LUZERNV4-PDOSQL4': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)} 2006-03-27 13:01:50.476 [17%] The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message file. When troubleshooting, restart the synchronization with verbose history logging and specify an output file to which to write.Percent Complete: 17 2006-03-27 13:01:50.50é”?Ä€ 2006-03-27 13:01:50.539 Applied script 'NotesHistory_21.cft' 2006-03-27 13:01:50.586 OLE DB Subscriber 'LUZERNV4-PDOSQL4': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)} 2006-03-27 13:01:50.617 OLE DB Distributor 'LARGOS00-SDI': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)} 2006-03-27 13:01:50.711 Percent Complete: 17 2006-03-27 13:01:50.742 {call sp_MSsetconflicttable (N'NotesHistory', N'MSmerge_conflict_EFILE_MERGE_NotesHistory', N'LARGOS00-SDI', N'EFILE', N'EFILE_MERGE')} 2006-03-27 13:01:50.773 OLE DB Distributor 'LARGOS00-SDI': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)} 2006-03-27 13:01:50.867 Percent Complete: 0 2006-03-27 13:01:50.898 Category:COMMAND Source: Failed Command Number: 0 Message: {call sp_MSsetconflicttable (N'NotesHistory', N'MSmerge_conflict_EFILE_MERGE_NotesHistory', N'LARGOS00-SDI', N'EFILE', N'EFILE_MERGE')} 2006-03-27 13:01:50.961 Percent Complete: 0 2006-03-27 13:01:50.992 Category:SQLSERVER Source: LUZERNV4-PDOSQL4 Number: 102 Message: Incorrect syntax near 'NoteID'. 2006-03-27 13:01:51.039 Percent Complete: 0 2006-03-27 13:01:51.070 Category:NULL Source: Merge Replication Provider Number: -2147201001 Message: The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message file. When troubleshooting, restart the synchronization with verbose history logging and specify an output file to which to write. 2006-03-27 13:01:51.133 Disconnecting from OLE DB Subscriber 'LUZERNV4-PDOSQL4' 2006-03-27 13:01:51.180 Disconnecting from OLE DB Subscriber 'LUZERNV4-PDOSQL4' 2006-03-27 13:01:51.226 Disconnecting from OLE DB Subscriber 'LUZERNV4-PDOSQL4' 2006-03-27 13:01:51.258 Disconnecting from OLE DB Subscriber 'LUZERNV4-PDOSQL4' 2006-03-27 13:01:51.305 Disconnecting from OLE DB Publisher 'LARGOS00-SDI' 2006-03-27 13:01:51.336 Disconnecting from OLE DB Publisher 'LARGOS00-SDI' 2006-03-27 13:01:51.383 Disconnecting from OLE DB Publisher 'LARGOS00-SDI' 2006-03-27 13:01:51.414 Disconnecting from OLE DB Publisher 'LARGOS00-SDI' 2006-03-27 13:01:51.445 Disconnecting from OLE DB Distributor 'LARGOS00-SDI' 2006-03-27 13:01:51.492 Disconnecting from OLE DB Distributor 'LARGOS00-SDI' 2006-03-27 13:01:51.523 The merge process will restart after waiting 60 second(s)...
View Replies !
Invalid Column Name 'rowguid'. Error When Generating Snapshot For Merge Replication SQL Server 2005
Hi there, I have setup merge replication which successfully synchronizes with a group of desktop users using SQL Compact Edition. However now I have setup Article Filters and when I attempt to regenerate the snapshot I get the following error: Invalid column name 'rowguid'. Failed to generate merge replication stored procedures for article 'AssignedCriteria'. When I look at publication properties at the Articles page.. All my tables have the rowguid uniqueidentifier successfully added to tables and selected as a compulsory published column, apart from the table above "AssignedCriteria".. Even when I attempt to select this column in the article properties page and press ok, when I come back it is deselected again. ( The Rowguid column is however physically added to the table) I have scripted the publication SQL and then totally reinstalled from scratch, including the database but for some reason it doesn't like this table. I remove the article filters, but still this "rowguid" is never "selected" in article properties. We are using Uniqueidentifiers in other columns as well for historical reasons, but this doesn't appear to be a problem in other tables.. DDL For this problematic table is as follows CREATE TABLE [dbo].[AssignedCriteria]( [AssignedCriteria] [uniqueidentifier] NOT NULL, [CriteriaName] [varchar](255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [TargetScore] [numeric](5, 0) NULL, [HRPlan] [uniqueidentifier] NULL, [ActualScore] [numeric](18, 0) NULL, [Criteria] [uniqueidentifier] NULL, [Employee] [uniqueidentifier] NULL, [IsActive] [bit] NULL, [addDate] [datetime] NULL, [totalscore] [numeric](5, 0) NULL, [isCalc] [bit] NULL, [Weight] [decimal](18, 2) NULL, [ProfileDetail] [uniqueidentifier] NULL, [rowguid] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [MSmerge_df_rowguid_7FF25DF903B6415FBFF24AC954BC88E4] DEFAULT (newsequentialid()), CONSTRAINT [PK_AssignedCriteria] PRIMARY KEY CLUSTERED ( [AssignedCriteria] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] Thanks.
View Replies !
Merge Replication: The Remote Server Is Not Defined As A Subscription Server
Hi .. Im trying to get merge replication working over the internet. I created the publication and subscriptions without any problem. I started the merge agent without any problem and the initial snapshot was generated on the subscriber. But then not longer after that the merge agent failed with the error message 'Subscription to publication is invalid'. Anyone have any idea on this? I've tried looking for a solution for this problem without any luck. Im registering the subscriber on the publisher using an IP address and i've created a lmhosts file on the publisher to do the name resolution. I ran sp_helpserver on both the publisher and the subscriber and indeed the subscriber name on the publisher is an IP address and the subscriber name on the subscriber is the computer name of the subscriber. Would this be the problem knowing that ive created a lmhosts file to do the name resolution? And if so, is there any way i can solve this because i cant think of anyway to register the subscriber on the publisher without using an IP address. Regards, - Adrian -
View Replies !
Sql Server Merge Replication Vs. Sql Server Transactional With Updatable Subscribtion
Hi, Transactional replication allows updatable subscriptions where changes at the subscriber are replicated up to the publisher, this can happen via Immediate Updating subscriptions, Queue subscriptions and P2P (new in SQL 2005), all forms of Transactional replication. Any compared document between merge replication and Transactional with updatable subscribtion ? Thanks, Tarek Ghazali SQL Server MVP
View Replies !
Problem Using SQL Server Mobile 2005 With Windows Mobile 5 Application
Hello, I am developping a non-managed C++ application for PocketPC using a SQL Server mobile database. The application is compiled for PocketPC 2003 and uses SQL Server Mobile v2. I use Visual Studio 2005. But I need to compile the application for Windows Mobile 5.0 devices. So I installed the WM5 SDK and had the WM5 into my project configuration. The "ssceoledb.h" which I include incluses the "transact.h" file. But my problem is that this file is only provided with the PocketPC 2003 SDK and not in the WM5 SDK. So I cannot use the WM5 configuration project with SQL Server. I also tried with the last SQL Server Mobile 2005 (ie v3.0) and the "ssceoledb30.h" also includes "transact.h". Did I miss something to install ? Do you know how I can resolve the problem ? By advance, thank you for any answer. -- Gregoire
View Replies !
SQL Mobile Server 2005 To SQL Server Developer Edition 2000
I am looking for a detailed tutorial that explains how to set-up merge replication services for a major project. I have seen all of the claims that SQL Mobile Server 2005 is able to connect to a merge publication with SQL Server 2000. However, where are the tutorials? I must have a proof of concept in a few days to quote this project. Can anybody help with this issue? Thanks!
View Replies !
MSDE && SQL Server 2005 Mobile Server Tools Problem
After installing MSDE(with SP4) and SQL Server 2000 SP4 Replication Components, the SQL Server 2005 Mobile Server Tools installation fails when running the System Configuration Check with a SQL Server requirement Error. "You must first install the Replication Components for SQL Server 2000 SP 3a or higher or the SQL Server 2005 Replication Components" Am I getting this error because I'm using the Desktop Engine version of the SQL Server 2000??
View Replies !
SQL Server 2005 Mobile Edition Using Server Tools
I have installed SQL Server 2005 Mobile edition and also the server tools. I configured a website to sync with my mobile application. When I go t check the SQL server Mobile agent with this url: http://localhost/MobileTest/sqlcesa30.dll i get a http 500 internal error I am using remote desktop to access the machine, when I am directly on the machine there is no error I get the correct message in the browser "SQL Server Mobile Server Agent 3.0" Is access to the web site via remote desktop a problem? jawahar
View Replies !
Index Analysis Result In Server Call Failed
Hello, I'm trying to perform some index analysis to a particular query with SQL 7. The problem is the output, i always get an "Server call failed." and the analysis is stop automaticaly. Anyone had this problem? Thank you for all the help you can give! Diogo Santos
View Replies !
Replicate To Other Server If Replication With Main Server Failed ...
Let say I've 4 server with MS SQL 2000 installed and I want all of them having the same data. So I'm using merge replication by assign one of them as publisher/distributor. The problem is when ( let say ) server that have been assign as publisher/distributor down then all the other server cannot make replication. My idea was to make it replicate to other available server ( among them ) if replication to main server failed. Is it possible ? If possible how to do it ? Thanks.
View Replies !
Performance Between SQL Server CE 2.0 And SQL Server Mobile 2005
We have recently updated an application from SQL Server CE 2.0 to SQL Server Mobile 2005 and we are seeing a huge decrease in performance? Is this normal? Database query that used to take 8 or 9 seconds are now around 20 secs, the database is only about 5 MB and the two tables in this particular query have 20 rows and 14K rows respectively. The query is basically: select * from table1 join table2 on table1.myint = table2.myint myint is the Primary Key of table2 and I have even created an index on myint for table1, any ideas? Thanks - MTW
View Replies !
Copy SQL Server 2005 DB To SQL Server Mobile - Is It Possible?
I'm creating a prototype of a PDA app using CF.Net 2.0 and SQL Server Mobile for a prospective client and I've gone through and designed, built and populated a database using SQL Server 2005... and then realised where I really need it is on the PDA! Without going through all the pain of setting up SQL replication or writing all the code is there a way to export a 2005 database to SQL Server Mobile so it results in an .SDF file? I know I can script each table out and run it via the SS2005 management studio when connected to a local .sdf file then copy that to the PDA but the thing is I really want to keep my test data so I don't have to re-enter it again. TIA for any help... there must be a way to do this but I'm quite new to SQL Server Mobile and 2005. Mike
View Replies !
Replication With Sql Server CE In Mobile Device
hello there, currently i'm developing a mobile apps(pocketpc) with DB interaction either locally(sql server CE) or externally(sql server 2000). i intend to use sql server replication(merge replication) to synchronise both of them. but my application is meant for multiple users. thus, i won't replicate data which is not belong to the user. i found no other way to do this except by implementing dynamic filter(ex: SUSER_NAME).as a result, i'm having problem to access the publication with a new DB user but it was a success if i access using 'sa'. can anybody help me ??? hopefully my words are understandable kindly help regards
View Replies !
SQL Server Mobile Replication Performance
Hello, I have been experiencing some difficulties with poorly performing synchronizations using replication from SQL Server 2005 to SQL Server Mobile running on Windows Mobile 5 devices. Currently there are two main databases (each client will only use one of them), the 1st one has around 500,000 rows, and the 2nd has about 1,200,000 rows. The initial synchronization for the 1st database takes around 45 minutes, and for the 2nd, around 2.5 hours. This is quite long, but we have comforted our clients by saying that this is a one time delay, and that further synchronizations will be much quicker. Well, synchronizing the data after this is usually quite speedy, however, things get bad rather quickly when the number of changes increases. In normal cases, the client will have at most a few thousand changes and all is well, the synchronization will typically be under a few minutes - no big deal. Once in a while though, there are a substantial number of changes to the database (from the SQL Server 2005 side), perhaps around 50,000 changes. When this happens, the synchronization process doesn't seem to ever finish (I've left it over the weekend and come back to find it still synchronizing). For the record, there seems to be a level at which the database will finish synchronizing, but be agonizingly slow - around 10,000 to 20,000 records will finish eventually (but take a few hours, at which point it's faster to just blow away the database and start again from scratch). This is obviously not acceptable, and I need to find a way to resolve this. Does anyone have any thoughts? While on this topic, why does this synchronization process take so long anyways? The snapshot creation (even for the database with millions of rows) finishes in a couple minutes, and the actual transfer of data shouldn't take more than a few minutes. The device can't possibly be storing the database content in memory (the SDF file ends up being between 40MB and 100MB), but when I watch network activity, there tends to be an initial busy period, then a periodic and fairly small spike every few seconds until the process completes, so the connection isn't being saturated at all. At this point, I am almost considering breaking the nice database design I have and creating combined logical records to see if reducing the number of rows may help. I'd really prefer not to have to go this route though, so if anyone has any suggestions, I'd really appreciate some feedback. Thanks, Adrien.
View Replies !
SQL Server Mobile Replication Error
Hello, I've been trying to convert an application to use the CF 2.0, and of course to SQL Server Mobile. There have been some kinks along the road, but I've worked all of them out except an error on replication. When I call the SqlCeReplication's Synchronize() method, the connection goes fine, it works for about 20-30 seconds, and then comes up with the following error: Error code: 0x80004005 Message: The data types cannot be converted implicitly. [ Source data type = nvarchar,Destination data type = image ] Native error: 25932 Source: Microsoft SQL Server 2005 Mobile Edition Error Param: nvarchar Error Param: image I've tried upgrading from SQL Server 2000 to 2005 to see if that helped, but got the same result. I even tried running this from a fresh install of SQL Server 2005, hoping that'd integrate better with SQL Server Mobile, but that didn't help either. I found a knowledge base article about error code 0x80004005: http://support.microsoft.com/kb/912428 However, none of my tables are even remotely close to having 127 columns, so that can't be it. I do have an image data type column in one of my tables, but why is a column being converted from nvarchar to image? Both SQL Server 2005 and SQL Server Mobile support the image data type, so I don't understand how that could be causing a problem in the first case. Any ideas? I've run out of things to try and would appreciate any feedback. Thanks, Adrien.
View Replies !
Configuring Merge Replication For Side-by-side SQL Server 2000 And 2005
I am trying to migrate from my current system, where I do merge replication from Windows Mobile devices running SQL Server CE 2.0 to a central database running SQL Server 2000 sp3a. I want eventually to move to a system running SQL Server 2005 CE replicating to a SQL Server 2005 back-end. But the transition will need to be gradual, and I may have to support both systems for a while until I can convert all clients from the old system to the new. I also need to do thorough testing. So ... I'm trying to set up a test environment giving me the maximum possible flexibility to do my testing. Ideally, I'd like to set up SQL Server 2000 and SQL Server 2005 on a side-by-side basis, in a manner that would potentially allow mobile devices running both SQL Server CE 2.0 and SQL Server 2005 CE to sync with either back-end server. Can someone provide me with guidance as what is possible to set up here? I know that SQL Server 2000 and 2005 can be installed side-by-side on the same server. It also appears that you can set up SQL Server 2000 so that EITHER SQL Server CE 2.0 OR SQL Server 2005 CE can sync with SQL Server 2000 (see www.microsoft.com/sql/editions/sqlmobile/connectivity-tools.mspx), but I don't know if it's possible for BOTH SQL Server CE 2.0 AND SQL Server 2005 CE to sync to the same SQL Server 2000. As for SQL Server 2005 ... it appears to be possible to set up SQL Server 2005 so that BOTH SQL Server CE 2.0 devices AND SQL Server 2005 CE devices can sync to the same SQL Server 2005 (see web page cited above). However, I don't know if it's possible to set up a SQL Server 2005 server installation in this manner while at the same time having a side-by-side SQL Server 2000 installation supporting any level of mobile merge replication. HELP!!!!
View Replies !
SQL Server Reconciler Error
We are using SQL Server Compact Edition 3.0 along with SQL Server 2005 with service pack 1 and Windows Mobile 5.0 in device. When we synchronize some times we are experiencing the 'an instance of the server reconciler can not be created, reinstall the reconciler components and try again' error message. It is intermittent (as in it doesn't happen at any particular time or part of the process) but does happen frequently. If anyone has some solution of this error please suggest us. Thanks.
View Replies !
Sql Server 2000 And SQL Mobile Replication Problem
I've noticed that communication problems can cause the lose of rows between SQL Server 2000 and SQL Mobile. I've experienced some times after a 28037 error (and some others), caused by the lost of connection with the server. After an error when SQL Mobile has already communicated the changes to the server, the last generation number isn't updated. If I add rows after the error (but before having an OK sync) the rows keep getting the generation id( _sysIG) from the old rows. Then, when I resync the changes are sent but the Sql Server ignores all those changes. I asume that's because the server thinks he already merged these data. After the OK sync, If I force an update on the non comunicated rows they get a new generation id ( _sysCG) and they're are merged ok. Is this a known issue? Is there any way to force the server to process all the data the Sql Mobile is sending? Or Is there any way to automatically renew that limbo-rows of the Sql Mobile? (They can be identified because their _sysMC value is 81 instead of 80(communicated) or NULL (from original snapshot)) I know I haven't explained so well but i'm on a hurry. I'll try to extend my analysis on thursday.
View Replies !
Problems With Merge Rep After Upgrading From Sql Server 2000 Sp3a To Sql Server 2005 Build 2153
Hi, We just upgraded 2 sql servers from sql server 2000 sp3a to sql server 2005 build 2153, and merge rep exists between these 2 servers. However, after sql server upgrade, we had to reinitialize merge replication and now the merge agent is reporting 2 errors 1) Error messages: The Merge Agent failed to upgrade triggers, metadata and stored procedures on the Subscriber to versions compatible with SQL Server 2005. Restart synchronization, and if this failure continues to occur reinitialize the subscription. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147199403) Get help: http://help/MSSQL_REPL-2147199403 Invalid column name 'metadata_select_proc'. (Source: MSSQLServer, Error number: 207) Get help: http://help/207 Invalid column name 'delete_proc'. (Source: MSSQLServer, Error number: 207) Get help: http://help/207 2) Command attempted: {call sp_MSensure_single_instance (N'Merge Agent Name', 4)} Error messages: The merge process could not connect to the Publisher 'Server:database'. Check to ensure that the server is running. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147199368) Get help: http://help/MSSQL_REPL-2147199368 Another merge agent for the subscription(s) is running or the server is working on a previous request by the same agent. (Source: MSSQLServer, Error number: 21036) Get help: http://help/21036 looking inside the sp_MSensure_single_instance stored procedure, it's trying to obtain an exclusive lock on resource 'Merge Agent Name' but fails and returns -1 this is the stored procedure executed by sp_MSensure_single_instance and @retcode = -1 and thus cannot obtain exclusive lock on resource EXEC @retcode = sys.sp_getapplock @Resource = 'Merge Agent Name', @LockMode = 'Exclusive', @LockOwner = 'Session', @LockTimeout = 0, @DbPrincipal = 'MSmerge_PAL_role' so i think it's failing because for some reason MSmerge_PAL_role database role does not have enough rights to obtain exclusive lock on necessary resources i've tried many things to fix this, including scripting out and dropping all merge rep, turning off replication db option and reapplying replication create scripts on the server, and even manually deleting the MSmerge_PAL_role database role but still doesn't work can anyone help? Thanks
View Replies !
Using Row Filtering In SQL Mobile Merge Replication
Hi,, I understand that it is possible to set filters dynamically using functions 1) SUSER_SNAME() 2) and HOST_NAME(). SUSER_SNAME() returns the login credentials used in the subscritption. HOST_NAME() returns the host machine and can be overloaded with buisiness information. My application should work as below; 1) User enters the login credentials. 2) Some information as the User name passed to server and if the user name is valid , the rows related to this particular user get downloaded to device. A new user is added directly in the Users table in master database. My questions are : 1) If I have 3000 users , should I create 3000 subscriptions with 3000 HOSTName or Login credential information to differentiate btween users? 2) If yes , other than using the wizard is there any scripts available to create large number of subscription? 3) If add subscription programatically , should I re-initialise subscription for each new user which is assigned with a diferrent host name value? my current code looks like this SqlCeReplication repl = new SqlCeReplication(); repl.InternetUrl = @"http://100.000.000.000/test/sqlcesa30.dll"; repl.Publisher = @"something"; repl.PublisherDatabase = @"something"; repl.PublisherSecurityMode = SecurityType.DBAuthentication; repl.PublisherLogin = @"sa"; repl.PublisherPassword = @"something"; repl.Publication = @"somethingPublisher"; repl.Subscriber = @"something"; repl.HostName = @"newuser"; // The user name entered in the login form assigned to Hostname property. repl.SubscriberConnectionString = @"Data Source=""Program Files esthost.sdf"";Max Database Size=128;Default Lock Escalation =100;"; try { repl.ReinitializeSubscription(true); repl.Synchronize(); repl.Dispose(); } Please advise -Aneesh
View Replies !
Merge Replication Using Wins Mobile 5.0
Hi all, I have developed a mobile program with sql server 2000 merge replication. It works fine in Win mobile 2003 OS, but, not working at all after I upgrade the mobile OS to Win mobile version 5.0 Does anyone have any idea at all what's going on? Thanks a lot. AngelaC
View Replies !
Merge Replication SQL Mobile Subscriber To Cluster (What Is Best)
Hi All I have been using some of the basic feature of merge replication from an sql mobile subcriber for some months now with good success. We need to however create a cluster server scenario for other requirements of the project. We have tester our system with both NLB and MSCS cluster setups. What is the best option for compact merge replication and how can this best be achieved to attain load balancing and failover using a cluster server? Nick
View Replies !
|