Click here to Skip to main content
15,891,136 members
Everything / Synchronize

Synchronize

synchronize

Great Reads

by honey the codewitch
Take control of which thread your code gets executed on, and how it does
by jerpat
How to get (almost) all your code in one place when using WCF together with Silverlight
by honey the codewitch
Using a popular RTOS to enable easy multithreading on your IoT gadgets
by Parallel Patterns
Introducing Memory Model in the context of .NET platform

Latest Articles

by honey the codewitch
Using a popular RTOS to enable easy multithreading on your IoT gadgets
by honey the codewitch
Take a page from .NET and enjoy an easy way to safely pass information between threads on an ESP32
by honey the codewitch
Take control of which thread your code gets executed on, and how it does
by Michael Chourdakis
A mutex with shared/exclusive access with upgrade/downgrade capability

All Articles

Sort by Updated

Synchronize 

27 Feb 2021 by honey the codewitch
Using a popular RTOS to enable easy multithreading on your IoT gadgets
25 Feb 2021 by honey the codewitch
Take a page from .NET and enjoy an easy way to safely pass information between threads on an ESP32
28 Jul 2020 by honey the codewitch
Take control of which thread your code gets executed on, and how it does
6 May 2019 by OriginalGriff
Talk to the authors: if you go to your link page, you will find a line: Support questions: Stack Overflow[^] Follow the link, and ask them.
6 May 2019 by badarhn
hi all I'm testing the new Microsoft cognitive service example, the code below : GitHub - microsoft/Cognitive-Samples-VideoFrameAnalysis: A library with sample apps for continuous analysis of live video, using the Microsoft Cognitive Services Vision APIs.[^] when I try it returns an exception...
13 Dec 2018 by Michael Chourdakis
A mutex with shared/exclusive access with upgrade/downgrade capability
30 Sep 2018 by Steven Coco
This illustrates a simple pattern that provides a lock that can always be invoked; and may be a no-op for a non-synchronized implementation.
12 Apr 2018 by Ahmed AE
I have 3 dump files from 3 different machines pc1, pc2 and pc3. I am trying to sync the data from the 3 dump files with the database on my server but, unfortunately the dump files have similar unique ids for different records, because they are on different machines. When merging, the data from...
15 Feb 2017 by CodeGlitch
Hello All!I need to create a client that will sync some of the users local folders to a remote server but i can't use dropbox or any other client already created, i need to make my own to implement features according to my company needs.What are your opinions about what should i use? I have...
15 Feb 2017 by Srusti Thakkar
I am also want to do this. But I want to sync local folder with onedrive using C# technology. Is there any solution?
24 May 2016 by Member 11460370
i am creating a windows desktop application on visual studio 2012 with front end c#.net and back end MySql database.My Master database is offline and i want to take backup on live server.how it is possible?what are the ways to take backup on live server for windows desktop...
24 May 2016 by koolprasad2003
you can use following code to take a backupprivate void Backup(){ string constring = "server=localhost;user=root;pwd=qwerty;database=test;"; string file = "C:\\backup.sql"; using (MySqlConnection conn = new MySqlConnection(constring)) { using (MySqlCommand cmd =...
9 Apr 2016 by Mohamed Hamdy
A boring talk about What’s really going on at runtime...
4 Mar 2016 by Member 12273100
Hi! i want to create a tiny php script, which suppose is to copy data from one table (firebird db) into mysql one. My current code is below - currently it only displays one column but just like i mentioned - i want to copy its values to second db.Few questions/issues: - how to grab table in...
6 Nov 2015 by Trimantra Software Solution
I have a Office 365 site.In that I have Document Library. Sync and open with Explorer provides two way sync.But I want one way sync.. means whenever user will add data to Document Library, it should be updated in File Explorer.And no operation should perform on Document Library, if...
21 Sep 2015 by ravikhoda
Hi,i have a desktop app which can have either access database or sql server database, and i have one iphone app which uses sqlite database for storing data. Now we need to sync the data between iphone and the desktop application. i have tried some example on microsoft sync framework...
23 Jun 2015 by Member 11787080
I am working on Andriod app, which must work in offline, when device is connected to the wifi, it has to exchange the data(sync) between server and app.. i find sync framework. but i need a suggestion from someone.. please help me.Andriod Sync Adapter or Other libraries is better?
22 Jun 2015 by TarikHuber
We have a relative big SQl Server 2008 Database that is runing in our Companys LAN. The management want's that ONLY SOME of the order data could be called from the internet, so the clienst could track the status,change order parameetrs etc.. Because I have no expiriance in online...
28 Mar 2015 by Sergey Alexandrovich Kryukov
Copying project files and being annoyed with that is more or less obvious indication of one more disturbing fact: you are not using any Revision Control system. If you don't you don't really do software development: you code asserts don't really belong to you, but to any random sleep of a hand...
28 Mar 2015 by MuhsinFatih
Hello,I am using Visual Studio 2013 and I have a laptop and a desktop pc which I develop my applications. When I'm home, I usually use my desktop pc and when I'm outside, I use my laptop. It is really annoying to copy project files everytime I change them and sometimes I confuse these...
26 Mar 2015 by Mahmoud Abdou
Hi Guys,I have a document synchronization component which I built using Microsoft Sync Framework. Background:On the client I use Microsoft File Sync Provider On the other side (server) I use custom sync provider Sync is running on the client and it is talking to the server through...
26 Dec 2014 by 28shivamsharma
Synchronized Blocks on object make that part thread-safe. Means Only one thread at a time can access that block. To access that block thread have to acquire lock then it can make operations & changes inside that block. In short it implements the mutual exclusion.
24 Dec 2014 by Sergey Alexandrovich Kryukov
You could read about it in original documentation (http://docs.oracle.com/javase/tutorial/essential/concurrency/sync.html[^]), but it would be better to understand the background first. This can help more, please try to understand it...
24 Dec 2014 by Member 11333197
Suppose we have the following classclass Class1 { public void Method1() { synchronized(myobject) { /* some code */ } }}where myobject is the instance of the classclass myClass { public void Method2() { ...
3 Nov 2014 by Mycroft Holmes
From the error I would suggest you check the value of @FittingCondition. Does profiler allow you to sniff the SYNC data?
3 Nov 2014 by Prateju
Hi I have a WPF server client application which uses SYNC framework to sync data between server and client. Recently I have implemented batching for syncing the data. But I am getting this errorInner Exception: Unable to set session parameters in DBSync provider. Cannot obtain the value for...
23 Oct 2014 by Michael Haephrati
You may want to try this product[^]. They only support c# and not c++.
15 Sep 2014 by Suvabrata Roy
Yes it needs lock,How a data write to a stream :Stream is a pointer which holds some memory now when we write data to file stream data would first store into buffer and then flush to your memory now in between that if two or more threads are working simultaneously then buffer may be...
15 Sep 2014 by Zon-cpp
Hi,i develop a class to write logs. it writes with "StreamWriter.WriteLine()" function.logStream.WriteLine(msgWrite);logStream.Flush();some different threads use this class to write logs, in one text file(The log file is common for all threads) do it need to lock()...
2 Sep 2014 by kbrandwijk
You have a string[][]:string[][] myArray = new string[][] {};You can either use one method for all tables, or define a separate method for each table.Using one method for all tables, you define a list of tablesList tables = new List { "table1", "table2", "table3",...
2 Sep 2014 by KergalBerlin
Hi community,I am new to parallel coding and have some trouble understanding what I have read about it. Let's assume the following scenario: I have 5 tables in a sql server and I receive data from source X which needs to be filtered,sorted and validate and the resulting string[][]...
14 May 2014 by Dharmesh Parekh
I have implemented synchronize between SQL server 2008 and SQL Compact database with two way.It is perfectly working with insert and update data in database and synced very well.But if I try to delete a record from one database like sql server after that i synced with sql compact it is...
22 Apr 2014 by Chetan Saini
I am using local database cache using Visual studio 2010 dialogue Box by referring this tutorial. When i run code for synchronization by following all the steps as specified in tutorial everything works, I also get updated result but my local database(Compact) is still not updated. Is it...
1 Apr 2014 by Member 10616560
I am working on project where i need to use database synchronization for offline apps. Up to some extent i am successful, i am done with synchronization for client to server using code below - DbServerSyncProvider serverSyncProvider = new DbServerSyncProvider(); SyncAgent...
31 Mar 2014 by Member 10616560
DbServerSyncProvider serverSyncProvider = new DbServerSyncProvider(); SyncAgent syncAgent = new SyncAgent(); syncAgent.RemoteProvider = serverSyncProvider; SqlConnectionStringBuilder builder = new...
21 Feb 2014 by Tharaka MTR
Hi, Please see below article, http://msdn.microsoft.com/en-us/sync/bb887608[^]And it says, Sync Framework supports the ability to encrypt data as it travels between databases. On the corporate side, SQL Server 2008 as well as existing IIS security can be leveraged for user...
17 Feb 2014 by mehdijafary
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file, a memory buffer, or transmitted across a network connection to be used later in the same or another computer environment. And this sequence of bits can be of any...
17 Feb 2014 by Pete O'Hanlon
Marhalling tends to be the term used to describe the process of transforming data so that it can either be stored (i.e., marshalling data), or moved. So, when you hear about an event being marshalled, what this means (in effect) is transforming the event so that it can be moved over threads - in...
17 Feb 2014 by Sander Rossel
Hi all,I have a question about marshalling.The wikipedia page about marshlling (and other pages and articles across the web) describe marshalling as being similiar to serialization, transforming an object into a format that is suited for transporting data to other processes.That is...
29 Jan 2014 by GAURAV KUMAR PATHAK
I have to run a website on local IIS as well as on Server. User can work on local IIS offline. and he can also save that work on online Server with button click. when he will connect to internet. Please suggest me how could I do this?
29 Jan 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
I do a research and following is what I have found.Microsoft Sync FrameworkBuilding online/offline synchronization capabilities with the Microsoft Sync Framework[^]HTML 5Offline Web applications[^]Build an HTML5 Offline Application with Application Cache, Web Storage and ASP.NET...
28 Jan 2014 by Jay Jayswal
I am currently working on one project in which there is database Synchronization between desktop app(C#) and web-app(php). My server side database is MySQL and local desktop app stores data in Local database.Here case is desktop application may not connected with internet all the time and...
12 Dec 2013 by Bojjaiah
hi all,finally I degrade the framework v4.0 to v2.0, now working fine.thank you for all.
10 Dec 2013 by Bojjaiah
Hi all,I am trying to synchronize the two databases programmatically. So I have downloaded from msdn[^] and install my system to add the references of below dlls.Microsoft.Synchronization.dll Microsoft.Synchronization.Data.dll Microsoft.Synchronization.Data.SqlServer.dllWhen I...
9 Nov 2013 by Christian Graus
The GUID should be the primary key. That would be the point of using them, your clients can create new rows that remain unique when synched to the server.
22 Oct 2013 by Paulo Augusto Kunzel
Hello,You may not have searched that well..... kkkkkkk....Have a look at the following links:http://www.codenameone.com/[^]http://www.robovm.org/[^]http://oss.readytalk.com/avian/[^]http://www.xmlvm.org/overview/[^]https://code.google.com/p/j2objc/[^]
3 Oct 2013 by Eduard Keilholz
There are a lot of tools available that can do that for you, I think there's no need to develop this yourself. If you still want to make this yourself I'd use a File System Watcher to track changes in a certain directory and keep a list of changes in memory. The periodically send the changes...
1 Oct 2013 by bbirajdar
You should better start researching on your own and then come back with specific questions, code snippets and error messages if any.Start from this link Read Gmail in C#[^]
1 Oct 2013 by alex giulio
hello every body!please help me! i want to sync data between gmail and software, but i don't have much knowledge about it. every can help me understand deeply about it, thank so much!
30 Sep 2013 by Pheonyx
You should consider using the Sage 50 SDK, it provides a safe and effective way of importing data into Sage's propitiatory database structure.If you inject straight into the Sage 50 structure you stand a very high risk of corrupting it as Sage built it based on a flat file database structure.
30 Sep 2013 by MK-Gii
Use ODBC or OleDB connection - this works great for Excel files (can read it as a database and update it just like an ordinary databse - using SQL syntax)
29 Sep 2013 by GauravThorat
Hi Friends,I wanted to Synchronize sage 50 with C#.NET based Windows Application which should having facility to updated Stocks, and other Information, all information should be transferred using Excel files.So what should i consider while working/starting with this.Thanks All..
25 Sep 2013 by pasztorpisti
I always used rsync over ssh for this purpose. It's a linux toolset but you can install for example cygwin on windows and then you have the very same tools.An advantage of this is that you can easily connect unix/mac/windows machines with this tool. ssh is widely used and trusted secure...
25 Sep 2013 by CodeGlitch
I understand what you're saying and i see the same answer about other tools already doing the job over and over again, but this is for a specific organization spread with specific needs that those tools wont cover, the use will be the same, syncing files but there are some core changes that are...
20 Sep 2013 by alimohammad2011
Greeting for the day !!Dear friends I am stuck on a solution i need to provide to my clients. Describing the requirement in detail so please don't mind the length of this post.I am supposed to develop an offline model for my asp.net (4.5) web application along with SQL server as db on...
18 Sep 2013 by Anoop Brijmohun
Hi all,I am currently developing a solution for a chain store.the backend data storage is SQL Server 2012(main server) & SQL 2012 express(store).which is the best method to transfer data between the servers?taking into consideration the connection can drop in the middle of the bulk...
14 Sep 2013 by Richard MacCutchan
You seem to have two different issues here. In the first you are sending mail from ASP.NET, which you seem to have working. In the second you are trying to create a mail client application. Your mail client will need to implement SMTP as described in RFC 5321[^], for sending mail.[edit]For...
13 Sep 2013 by Makzrider
I'm Trying to Sync my gmail account in my asp.net project with back end of c#. Right now I can just send mail using the code:public void SendMail() { //Build The MSG System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage(); ...
1 Sep 2013 by Saurabh.abhyankar
Hi there , I have set up a Merge replication on the SQL server 2008 R2 . Which exchanges all rows that have changed between the Publisher and Subscriber since the last time synchronization occurred.here is one scenario i want to ask you guys about. What happens when the Publisher and...
13 Aug 2013 by Sergey Alexandrovich Kryukov
Use two instances of a named pipe: one for one direction, another for another.Now, why "sync"? A pipe is a thread synchronization primitive by yourself. Don't even try to use others (unless you share data beyond the pipes between the threads in the same application). You just unconditionally...
13 Aug 2013 by mamali-1346
hi all.i have a winform and console in c# 2013.i want to pipe them and send&receive data.data means character string.something like chat but so basic and user can't control this process.this process must be synchronized.they should be able to send and receive data at the same...
24 Jul 2013 by Member 9871748
I have created Application for Windows Mobile application 6 and used mobile sql database.Now I want to sync the data in mobile db to backend database(MS SQL).So please tell me how to sync the data in mobile db to backend using Microsoft Synchronization Framework
19 Jul 2013 by Ganesh Satpute
Hello, I am total newbie to android application development.I want to develop an Android application which will sync the particular folder on Android device and PC over WiFi. This app should automatically search for WiFi router. Where should I start? I found some articles which...
25 Jun 2013 by Member 9996541
Hi I want to synchronize our Java desktop application to Iphone Photos and files or access files and photos of iphone.Is there Any way to do this? I have searched a lot but could find solution Please give some idea or Suggestion to this.Thanks
31 May 2013 by Jiří Miklík
Using one socket for many threads isn't best idea.My suggestion:Each client thread opens own connection, server thread is listening.With this solution you can find the end of client thread with error (socket dies).And you cannot distribute opened socket to client threads at start time.JiMi
30 May 2013 by ayesha hassan
I have developed a single server/multiple client TCP Application.The client consists of x number of threads each thread doing processing on its own data and then sending the data over TCP socket to the Server for displaying.The Server is basically a GUI having a window. Server receves...
6 May 2013 by jaiswal.richa
Hello Everyone,can anyone tell me that In Sync Framework, when i make changes on the form , Why does the local database not get update. the changes got saved on the server when i am connected to the server. but when i got disconnected with the SQL Server, and make any change there, i expect...
8 Apr 2013 by kunal jangade
I want to retrieve data from 4 Tables to show balance of items for every date. My tables structure are as:TABLE: Resource_MasterResourceCode primary key, ResourceName, UnitCode, TenderCode, ResourceRate, Status, Dt, Resource_H_CodeTABLE: UnitMasterUnitCode primary...
7 Apr 2013 by Johirul Islam Tarun
You can Group the sum of In,out by Date wise and item Wiseplz see this :Select ItemCode,ItemName,TransactionDate, Sum(In) as INQty, Sum(Out) as OutQty, Sum(In)-Sum(Out) as Balance from StockTable Group by ItemCode,ItemName,TransactionDate
4 Apr 2013 by CodeHawkz
Hi there,You need to look into 'FTP'.The conventional web we browse is based on 'HTTP' is designed for viewing text, images, etc. but not for file transfer. 'FTP' is designed this in mind and if you can access your server using FTP you should be able to do most of the operations that you...
3 Apr 2013 by Ariana Bond
Hi,I am trying to develop an application to synchronize two directories of the two live domains hosted over different servers but i am not getting the logic to implement.I have tried it to do with tcp client server on localhost using different applications on different ports, but its not...
27 Mar 2013 by tzych
See approved solution below - because the file is being accessed from two different user spaces, the Mutex needs to be declared as Global. Thanks to Andreas for the solution!=========================OK, I have a log file that can be written to by multiple processes. I'm trying to protect...
26 Mar 2013 by Andreas Gieriet
Change your code as follows:1) Give the Mutex the name @"Global\MyMutex".2) Call Dispose() on w after (or instead of) Close().Do the same for your other process.[EDIT]I would simplify the code as follows:public class Log{ public static Mutex m_Mutex = new Mutex( false,...
26 Feb 2013 by Edison Heng
Synchronizing between Android and desktop
22 Feb 2013 by Christian Amado
The same question was answer here: StackOverflow Forum[^].Regards.
21 Feb 2013 by raythatha7
actually i want to sync file using WiFi in C#. i search a lot in Google but i can't get anything so, please help me. Where i am start this application actually file sync is done using "Microsoft File Sync Tool" But main thing is that how to transfer the file via WiFi.And i don't want to use...
21 Feb 2013 by Ariana Bond
Hi ,I want to synchronize two textboxes which are in different user controls of silverlight , i want that , the moment i start writing something in one textbox it should also appear in second textbox.Problem with binding controls,public static readonly DependencyProperty...
18 Feb 2013 by essence
A walkthrough explanation of the issues and solutions to thread safe synchronization.
17 Feb 2013 by Joan M
Hello all,My father in law has just bought a Samsung Galaxy S3 phone.He had an S2 before and was completely happy with it.Witht his old phone he was able to synchronize notes with outlook (without exchange) and now with the new phone it seems it is not possible.Do you know if it...
15 Feb 2013 by essence
ConcurrentDictionary's methods can call your value factory more than once.When is this a problem? How can it be overcome?
13 Feb 2013 by essence
Make your synchronizion easier by using Read/Write extensions.
11 Feb 2013 by P_Dash
Yeah, requirements like this comes in case of Services which depend on multiple resources.I'd suggest you the following points, implementing which you could achieve your desired result:1-In ServiceContract use the following SessionMode attribute: ...
11 Feb 2013 by balu12345
Hi All experts, I am a bit new to WCF. I had explicit requirement to prepare a wcf application with below requiements,1. Need to prepare synchronous WCF service hosted in IIS2. Client will consume synchronous WCF service.3. request & response might take long time, as other...
7 Feb 2013 by kunal jangade
The issue is I have my database at my machine, the application is developed and given to the users. The user uses the application daily updating, inserting and deleting data, what I want is that I get all the data in my database, the users are located at remote place. As the size of database...
24 Dec 2012 by Zoltán Zörgő
First of all, it could depend on the DBMS. You have not specified what you are using.You wrote, that data will be uploaded from branch office to the main office. So let's suppose there is no data sent back to the branches. And even less you don't need to sync data between branch offices....
24 Dec 2012 by golrokh_ka
hi,my application has two parts, a version uses in central company and a version uses in another companyevery day all subcompanies should send their data for main company,and they can have reports all of them,also i have basic data tables i need the best way for replication , i have some...
6 Nov 2012 by Sergey Alexandrovich Kryukov
Of course this is possible, but you should understand that the Web is pure client-server, so it won't give you any notification unless you program the deployment process this way, only if you can access the programming of this process. That said, if you want to download newer versions from the...
6 Nov 2012 by joshrduncan2012
Hi everyone! It is possible to have a Windows Forms application check for updates to the files if the updates are stored on a server and if so, automatically synchronize with the updates by downloading the newest versions? If so, is this a recommended method to deploy updates or should it be...
4 Nov 2012 by vivekbtech
Hi,I am using the (same database) in both Central and Local system since the application has to be available both in connected and in disconnected environment.My problem is to occasionally sync the database when the client system is connected to the server.I came across Microsoft sync but...
14 Oct 2012 by I.explore.code
I would recommend writing a Windows service that will run at scheduled intervals as decided by you and download the latest XML files from the external website to your server and save the data in those XML files to your database.This will help you save precious user time because you can...
14 Oct 2012 by Kirolos Costa
I need to synchronize online XML file which given to me from another website with my access databasewhat I exactly need is to make this sync offline which means that when my website user open the page he will find the last data from xml fileI tried to fix it by deleting all the table data...
7 Sep 2012 by SREEKAN2
I am doing an application in which I have some Windows Mobile devices which will synchronize with main database (Server) once a day using WCF Sync. For most of the tables in the client, the data is coming from the server, and later on only updates on those rows will be synchronized with the...
28 Aug 2012 by fjdiewornncalwe
One of two things has gone wrong.1) Your service reference is still pointing at a non-existent version of the service on your local machine. - In this case check the properties in your service reference or connection depending on how you are calling the service and make sure that the path...
28 Aug 2012 by SREEKAN2
In my application i am using wcf sync service to sync my local database in windows mobile with server. when i am using my localhost where both client and server are in same computer it works fine, now i hosted my wcf on server, now when i am trying to sync the databses it is giving me Target...
16 Aug 2012 by scott_liu
It employs a dynamic trigger, a CLR Stored Procedure, and a Web Service to sync data from a MS SQL Server to MySQL.
4 Aug 2012 by Christian Graus
If you want it to appear as a normal folder, then yes, it's a shell extension.
4 Aug 2012 by Cool Smith
i need to map remote repository as a local folder for example remote ftp folder to local folder in my system just like google drive, so that when i delete a file locally, it gets deleted remotely and when i add files locally to the folder, it gets uploaded to the remote repository. i...
2 Aug 2012 by FriendOfAsherah
Using the new MS Sync Framework I could successfully setup sync with a filter clause for one table:e.g.: serverProvision.Tables["TICKETS"].AddFilterColumn("TICKETID");serverProvision.Tables["TICKETS"].FilterClause = "[side].[TICKETID] = @ticketid";But I want to combine the...
12 Jul 2012 by IviKAZAZI
Hello all,Im developing a mobile device app,and im using syncframework to sync .sdf database on device with sql server 2008 in server. Im using WCF service library as a middle tier. I have a large number of rows and tables to sync,and i get an out of memory exception. I updatet the code...
9 Jul 2012 by vandananarula
I was able to solve the problem of synchronizing DBs from Windows mobile to SQL server and vise-versa.Following are the links which i followed...