The Moth
Developer, Former MVP, now at Microsoft - Best of
2004
,
2005
,
2006
,
2007
,
2008
,
2009
« Get back your Search in Vista SP1
|
Home
|
Synchronization made Easy by the Sync Fr... »
ADO.NET Sync Services
Thu, February 21, 2008, 02:15 PM under
dotNET
|
Orcas
With the release of Visual Studio 2008 we also get v1.0 of ADO.NET Synchronization Services that allows you to build
Occasionally Connected Applications
by allowing synchronization of remote data with a local cache of the data. Sync Services is the first part of the larger framework still in development:
Microsoft Sync Framework (MSF)
. MSF was part of the
announcements at Tech Ed Europe 2007
. The first CTP of the Sync Framework is available and it includes a pre-release of v2.0 of Sync Services for ADO.NET. Stay tuned on the
Sync Framework blog
(which includes links to other relevant blogs down the side). I also believe there will be an update near the SQL Server 2008 release, but I am not sure. There is a very useful FAQ on Sync Services on
Steve's blog
.
To be clear, here I am still talking about v1 of Sync Services, which ships with VS2008 RTM. If you do not have VS2008, you can still get Sync Services by
downloading SQL Compact Edition v3.5
(which is what holds the local cache). Included in the download are the 3 assemblies that complete the picture. So you may be thinking: "if I can get it as a standalone download, why use VS2008 and not stick with VS2005?". The answer is that there is a very smart
Configure Data Synchronization dialog
wizard as part of VS2008 that generates tons of code and also performs other actions that IMO are too tedious for easily using VS2005 with Sync Services. To invoke the wizard in a new VS2008 project (v2.0 or v3.0 or v3.5) right click on the project node and add new item and choose the "Local Data Cache" item template – then just follow your nose (or the documentation and numerous links above
)
If you want a quick intro then put 15 minutes aside to watch my
screencast introducing the ADO.NET Sync Services
. The Visual Studio project that I create in the video
can be downloaded here
.
Comments [13]
|
Permalink
Friday, February 22, 2008 1:34:00 AM (Pacific Standard Time, UTC-08:00)
As always, that's just great Daniel! Thanks for this quick kickstart.
Arnaud
Tuesday, February 26, 2008 12:58:44 PM (Pacific Standard Time, UTC-08:00)
arnaud: "quick kickstart" is my middle name - glad you liked it :-D
Daniel Moth
Monday, March 24, 2008 7:37:00 AM (Pacific Standard Time, UTC-08:00)
Does the audio work for the screencast? I'm getting the video but wonder if there is an audio part to the screencast.
Thanks!
chris
Anonymous
Monday, March 24, 2008 8:08:37 AM (Pacific Standard Time, UTC-08:00)
Chris: Audio is supposed to work. Does it fail for you for both the streaming video and the download in the ZIP? They are encoded differently so this might help narrow it down to a codec issue on your machine...
Daniel Moth
Monday, March 24, 2008 10:00:00 AM (Pacific Standard Time, UTC-08:00)
If it might help, I couldn't hear the audio when watching the screencast with VLC. With Windows Media Player it works fine though. The same was true with the TechEd post-conference DVD (MS wants you to use MS ;-) ).
Arnaud
Monday, March 24, 2008 10:14:00 AM (Pacific Standard Time, UTC-08:00)
Howdy,
I'm trying to get it to work from the download (although I did try streaming after installing Silverlight but never got anything working on that end). Currently, I'm upgrading from Windows Media Player 10 to 11 (still on XP). I'll repost if that fixes it.
Anonymous
Tuesday, June 03, 2008 4:38:00 AM (Pacific Daylight Time, UTC-07:00)
I went to the DevDays in Amsterdam. Really liked your session about the 5 VS2008 features!!
I'm having some trouble with the wizard. After i selected the server connection (SQL server Express 2005) the Add button remains disabled. The client is Compact 3.5. I tried the test connection from within the wizard and they do work. Haven't found any errors in my logs.
Any idea why the Add button remains disabled? Thanks!!
Marco
Friday, June 06, 2008 1:07:00 PM (Pacific Daylight Time, UTC-07:00)
Hi Marco,
The Add button is disabled either during the time the schema is retrieved or when there are no usable schema objects to add.
That is, if I have a database without tables (or tables that I have permissions to), or without tables that have PKs, then effectively there is nothing to add. Hence the button remains disabled.
Best regards,
Milind Lele
PM, Visual Studio
Milind Lele (MSFT)
Thursday, October 30, 2008 9:28:00 AM (Pacific Standard Time, UTC-08:00)
Great Job Daniel!, its a very useful example. But how it changes or how vs2008 can manage a
Smart Client
with a
SOA Server Side
and
Enterprise Library 4.0
for security, caching, logging, data access, exceptions. I hope u can help me with that.
Nice videos BTW.
Thanks!
Lois
Anonymous
Wednesday, November 12, 2008 12:23:00 AM (Pacific Standard Time, UTC-08:00)
Hi,
I followed your video but when i change data on both the server and client, my local database cache never gets updated. What can be causing this bug?
thanks!
Rick
Rick Oonk
Saturday, November 15, 2008 8:20:09 PM (Pacific Standard Time, UTC-08:00)
Lois, Rick
: Sorry, I cannot help debug your issues or offer further guidance (I have moved on to completely different things). I provided the Hello World and the rest is up to you :-). Please use the links I offered above to contact members of the product team.
Daniel Moth
Tuesday, November 18, 2008 11:50:14 AM (Pacific Standard Time, UTC-08:00)
All:
There is a dedicated forum for this topic:
http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=1225&SiteID=1
Daniel Moth
Wednesday, April 15, 2009 9:51:00 AM (Pacific Daylight Time, UTC-07:00)
Thanks a ton....A great compilation of necessary things about ADO.net Sync services. Saved a lot of time for me :)
Anonymous
Comments are closed.
About
My team's page on MSDN
Subscribe
Contact Form
My screencasts on channel9
Tags
AboutPresenting (5)
Blogging (7)
Career (5)
Communication (5)
dotNET (120)
Events (93)
GPGPU (2)
HPC (6)
IE7 RSS (6)
Links (129)
LINQ (23)
MobileAndEmbedded (148)
Orcas (128)
ParallelComputing (63)
Personal (32)
Random (42)
SideShow (12)
Silverlight (17)
SoftwareProcess (3)
UAC (14)
UserInterfaceDesign (5)
Vista (84)
VisualStudio (112)
Whidbey (31)
Windows (90)
WindowsServer2008 (3)
Latest Posts
Parallel Computing Platform Developer Lab
Slides and code for MPI Cluster Debugger
DirectCompute
GPGPU
Code for Parallelism Features Tour
Managed code and the Shell – Do?
Dev Lead Job opening on my team
Best of "The Moth" 2009
Bug Triage
Parallel Computing Features Tour in VS2010
MPI Cluster Debugger launch integration in VS2010
Parallel Debugging
"Parallel Programming Talk" show
Message Passing Interface (MPI)
Windows HPC Server links
Extension Manager in Visual Studio 2010
Core debugger enhancements in VS2010
Dump debugging with Parallel Stacks
Slides for Parallel Debugging windows
MPI Project Template for VS2010
Archives
March, 2010 (2)
February, 2010 (3)
January, 2010 (3)
December, 2009 (1)
November, 2009 (11)
October, 2009 (12)
September, 2009 (1)
August, 2009 (6)
July, 2009 (5)
June, 2009 (3)
May, 2009 (7)
April, 2009 (5)
March, 2009 (3)
February, 2009 (4)
January, 2009 (6)
December, 2008 (3)
November, 2008 (12)
October, 2008 (6)
September, 2008 (9)
August, 2008 (5)
July, 2008 (5)
June, 2008 (8)
May, 2008 (18)
April, 2008 (11)
March, 2008 (13)
February, 2008 (17)
January, 2008 (15)
December, 2007 (20)
November, 2007 (25)
October, 2007 (19)
September, 2007 (11)
August, 2007 (31)
July, 2007 (24)
June, 2007 (19)
May, 2007 (24)
April, 2007 (18)
March, 2007 (35)
February, 2007 (34)
January, 2007 (17)
December, 2006 (18)
November, 2006 (17)
October, 2006 (23)
September, 2006 (22)
August, 2006 (15)
July, 2006 (15)
June, 2006 (13)
May, 2006 (10)
April, 2006 (5)
March, 2006 (1)
February, 2006 (1)
January, 2006 (2)
December, 2005 (5)
November, 2005 (4)
October, 2005 (3)
September, 2005 (8)
August, 2005 (17)
July, 2005 (11)
June, 2005 (7)
May, 2005 (24)
April, 2005 (15)
March, 2005 (15)
February, 2005 (18)
January, 2005 (23)
December, 2004 (24)
November, 2004 (25)
October, 2004 (10)
September, 2004 (23)
August, 2004 (12)
July, 2004 (1)