Reply
 
LinkBack Thread Tools Display Modes
Old 09-30-2009, 07:59 PM   #1 (permalink)
timothy
Guest
 
Posts: n/a
Default Which [MasterDataTable] fields trigger LanSync?

I’m currently updating product information in [DToolsProducts50].[dbo].[MasterDataTable] from the SQL back end, and I am trying to figure out which fields I need to update in order for LanSync to recognize that the rows need to be pushed into MMPD.

For example, I would run a query to update all products all Sony products to taxable. I would run the following query:
UPDATE [DToolsProducts50].[dbo].[MasterDataTable]
SET [Taxable] = 1
WHERE [Manufacturer] = N'Sony'

I’m having trouble figuring out what flags LanSync to propagate the database's changes to the D-Tools client’s local database.
I’ve experimented with updating various (and all) date fields. I also suspect that [UserID] and [MachineName] have an affect. However, I have not come to a solid conclusion, and arrive at inconsistent results.

Has anyone else experimented with this, or learned anything?
  Reply With Quote
Old 09-30-2009, 08:10 PM   #2 (permalink)
Senior Member
 
Join Date: Jul 2008
Location: Olympia, WA
Posts: 342
grichards is a jewel in the roughgrichards is a jewel in the roughgrichards is a jewel in the roughgrichards is a jewel in the rough
Send a message via Skype™ to grichards
Default

try [Synchronize] in combination with the [GMTDatetimeXXX] fields.
i.e. Price changes would be [GMTDateTimePrice]
__________________
Systems Technician/Crestron Certified Programmer
www.ccisolutions.com
[SIGPIC][/SIGPIC]
grichards is offline   Reply With Quote
Old 10-01-2009, 05:36 AM   #3 (permalink)
Super Moderator
 
NareshN's Avatar
 
Join Date: Nov 2006
Posts: 430
NareshN has a spectacular aura aboutNareshN has a spectacular aura aboutNareshN has a spectacular aura about
Default

Timothy,

Richards is correct.

You need to set [Synhronize] to true and the appropriate [GmtdateTimexxx] field to the current utc date time.
Your statement would look like this --

UPDATE [DToolsProducts50].[dbo].[MasterDataTable]
SET [Taxable] = 1,
[Synchronize] = 1,
[GMTDateTimePrice] = GetUTCDate()
WHERE [Manufacturer] = N'Sony'

Make sure to back up your database before making these wholesale changes.
NareshN is offline   Reply With Quote
Old 10-01-2009, 04:37 PM   #4 (permalink)
Senior Member
 
Join Date: Mar 2006
Location: Novato (20 miles north of San Francisco)
Posts: 445
fryeguy is on a distinguished road
Default

Timothy,

You are a brave man.

Take the advice of master Naresh! He is like a Jedi...
fryeguy is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MMPD LANSync Fails CrystalHacker Manage My Product Data 1 09-16-2008 06:19 PM
LanSync on 2 computers avzone Installation & Setup 2 08-19-2008 04:47 AM
LANSync w/HOSTS file D_N LANSync Admin Console 2 12-05-2007 08:07 PM
Lansync / VPN and SI5 eddieasher LANSync Admin Console 17 11-10-2007 03:36 AM
.NET Date/time String Error on XP SP2 while logging into Navigator via Lansync Damo Bugs Section 4 07-19-2007 09:39 PM


All times are GMT. The time now is 11:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
D-Tools, Inc.