Best Way To Sync Database.

Feb 20, 2003

hi,

we currently have a web server/db on-site and a similar backup machine across the country. we're using a pretty bad backup strategy. we zip up a backup file, thats done on the main server every night, then ftp over to the back up server then run a restore.

lately ive been having problems with the main server. i would like to have the machines sync'd up as close as possible.

ive searched the threads and noticed replication and log shipping to be the most practical, but im assuming most of the machines are on the same domain.

what would be my best bet for machines connected over the internet, no vpn?

also the db on the main machine get queried/inserts all day from 7am - 6:30pm

thoughts?

thx

View 1 Replies


ADVERTISEMENT

Sync Database

Jan 17, 2008

I want to synchronize two databases. Is there a query or a tool to synchronize them?

View 3 Replies View Related

How To Sync Mobile Database And Ms-access Database?

May 10, 2007

Hi,
i am working with windows mobile Cf 2.0 and desktop. i got problem when i were trying to synd mobile database and ms-access database.
my requirement is online i want to transfar data records from mobile to desktop vice versa.
but how? i dont knwo any body would like to guide me.
i am ready to accepting yours valuable views.
waiting
bye
Rajat.

View 9 Replies View Related

How To Sync Local Database With Network Database

Dec 23, 2006

Hi

Scenario: In general user will take database backup from database server to local system. User perform some changes to his local database based on his requirement. Again user connects to database server and click on update, local database should update to server database by informing each record status to the user. ex: record 1 updated / call closed do you want to update?

Here local database is going to be Pocket pc database and server database is on SQLDatabase. Can any one suggest best way to implement this feature in Windows Pocket pc, c#. I would appreciate your reply.

Thanks,

View 2 Replies View Related

Sync Date Between Two Database

May 12, 2007

hi.
I have two database( one on local system and another on my host ) there are same in table and stored procedure. i just want to sync data between there in my application ( ...on button on click event ! ). please help me to do it. tnx

View 1 Replies View Related

SQL Database Schema Sync

Oct 15, 2007

SQL Database Schema Sync
We have development and production databases, when we change database schema in development database how can I synchronize it to production without creating data problems in production, is this possible in SQL2005? Or any external tool I can use?
 

View 1 Replies View Related

Sync Database Data Between PCs

Mar 24, 2008

I'm working on an application that will be running on two or more machines. Each machine is logging data to a local SQL Compact database. I would like to make these two computers sync the data with eachother, but I am unsure what the best method is to transfer data between machines in a table format. I think XML would work well, but there may be something easier, so I thought I'd ask. Do I want to use sockets to do this, or is there another type of connection that would work better?

All PCs will know the IP addresses of their peers. I forsee each PC having a server thread that is listening all the time. Each PC also has a client that checks to see if it can connect to the server on the other side. It then requests certain data, which the server part sends. Does this sound right?

The rest of the app is in Visual Basic 2008 Express.

Thanks,
Lance

View 16 Replies View Related

Problem On Sync Access Database

Sep 29, 2006

Dear all,

I have a software written in C#, using RDA to sync access database from desktop. But it is tricky that some time during "Pull" data from SQL Server Agent, my PDA tell me "A request to send data to the computer running IIS has failed. For more information, see HRESULT".

This also happening when I try to unplug the ethernet cable from my desktop however the push and pull actions did not required to go through internet.

Here are part of my codes
m_intdb = new SqlCeRemoteDataAccess("http://desk01:1024", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\inttemp.mdb; Jet OLEDB:System Database=C:\Documents and Settings\user\Application Data\Microsoft\Access\System.MDW");

m_intdb.InternetUrl = "http://desk01:1024";
m_intdb.LocalConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\inttemp.mdb; Jet
OLEDB:System Database=C:\Documents and Settings\user\Application
Data\Microsoft\Access\System.MDW"";
m_intdb.Pull("pulltest", "SELECT * from pullTest", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\inttemp.mdb; Jet
OLEDB:System Database=C:\Documents and Settings\user\Application
Data\Microsoft\Access\System.MDW", RdaTrackOption.TrackingOff, "Err_PullTest");


and the error message look like
A request to send data to the computer running IIS has failed. For more information, see HRESULT.

Please help me solve this problem

Best Regards
Tony Lam

View 4 Replies View Related

How To Keep DataTable's Primary Index In Sync With Database?

May 12, 2008

I'm working with a legacy database whose structure I cannot change.  I'm building a web-based editor for one of the DB's tables.  This table has a Primary Key called "Master_Idx" that is an Identity (autonumber) field.To start, I query the DB and populate a data table which is cached.  This is used to "feed" the web form.  Any additions, changes, and deletions are reflected in this cached table.The user then has the flexibility to press Save at any time, which ensures that the database is modified accordingly.Here's my question:When new records are added, I assign them a Master_Idx value, the first of which was calculated to be 1 + the Max(Master_Idx) value when the editing session started.  But when I insert these records back into the database it's possible that another user might have also been doing similar editing (of different records from the same table), so there's no guarantee that the Master_Idx values in the data table will be identical to those in the DB.  When I insert a record from the cached table back into the DB, what technique can I use to check what value was assigned to the Master_Idx?  If it's not the same as in the cached table then I need to update it locally in a few places.I hope all of this makes sense but if it doesn't then let me know and I'll explain it in another way.Robert W. 

View 2 Replies View Related

How To Sync PDA Data (in XML Format)with Remote Database (SQL)

Mar 30, 2004

hello everyone,
i am developing a application using C#and .NEt compact framework.
for that i need to sync pda data (in xml format) with the remote database server(SQL) and vice versa.
please help me out
thanks in advance.

View 5 Replies View Related

SQL 2012 :: Database Data Files Out Of Sync

Jul 21, 2014

I've stepped into a new environment and have never dealt with multiple data files on user databases only with Temp db.What would be the best way to get all my data files in sync. I have done this on databases that aren't that big in size or off in size by a lot. Here is what I have

Mdf -- 69 GB
ndf -- 3
ndf -- 3
ndf -- 3
ndf -- 3
ndf -- 4
ndf --4
ndf -- 2

View 7 Replies View Related

SQL Security :: Sync AD User Credentials With Database

Mar 14, 2014

How Sync the user and password from my Active Directory, to a SQL Database. Actually, my environment have a database with users and password added, my custom applications uses it like a passport, but now I want to use Active Directory to control these users, but I can't use windows authentication in my old apps. I was reading about Forefront Identity Manager to do this, but I need a free solution. The Sharepoint database sync user credentials with AD?

MCTS Exchange 2010

View 3 Replies View Related

Sync PDA Database With Web Server Database

Jun 4, 2007

Hi



I want to have an application like a web front end on a pda where customer details can be added into a database. Then later the user connects to the internet and sync the pda database with the database on the server. I want the infomation from the pda database to update the data on the server database.



I know this is a big question but any help would be appreciated.



Many Thanks





Neil



View 4 Replies View Related

Synchronising SQL CE Database With SQL 2000 Using Active Sync In 2003

Feb 8, 2007

HI ,

I Created one database named login.sdf in sql Ce ,i created one table login having two fields (username and password).it is working well.I trying to synchronise these with SQL2000 using Active sync.it is not working ..And one more things ,i tried to connect the default pocket PC 2002 emulator with Active sync.it is also not working.can anybody give some solution for these problem

Thanks in Advance

Regards

Ihsan

View 8 Replies View Related

Database In Dropbox Sync Folder Accessing From Multiple Computers?

Nov 2, 2015

I currently use Access and have found that I need to migrate to SQL Server. I need setting it up.

Currently, I have multiple computers (home, office, laptop, etc.). On each of these computers, I have a folder which syncs via Dropbox. In this folder, I have my Access database which allows me to read/write to the Access database from any computer, and these changes are automatically synced to all the other computers via Dropbox.

I have installed the SQL Server database in the Dropbox folder then installed Management Studio on each computer. But only the computer which did the database install can link to the the SQL Server database. The other Management Studios cannot see the database.

Is there a way to achieve what I am after or is this a limitation of SQL Server? I do not want to have to manage a network or anything.

View 7 Replies View Related

Sync/Merge Local Sql Compact Databases To Single Global Database

Jun 23, 2007

Hi, I have compact sql databases which will be local on multiple users
devices. Due to space constraints, for one of the tables i have had to use
auto incrementing integer which works fine for the local database but i
would like to merge all of the users databases into a global database. The
table format can be seen below:




Code SnippetCREATE TABLE Players
(
ID UNIQUEIDENTIFIER NOT NULL PRIMARY KEY,
FirstName NVARCHAR(32),
LastName NVARCHAR(32)
);

CREATE TABLE Sessions
(
ID INTEGER NOT NULL IDENTITY,
PlayerID UNIQUEIDENTIFIER ,
SessionDateTime DATETIME,
CONSTRAINT pkSessions PRIMARY KEY (ID),
CONSTRAINT fkPlayerID FOREIGN KEY (PlayerID) REFERENCES Players(ID)
);

CREATE TABLE SessionDetail
(
SessionID INTEGER,
Time real,
Power real,
CONSTRAINT pkSessionDetail PRIMARY KEY (SessionID,StrokeTime),
CONSTRAINT fkSessionID FOREIGN KEY (SessionID) REFERENCES Sessions(ID)
);



The Players table will merge fine as GUIDs are used. However, how will the
sync capabilities of compact SQL handle the sessions table? When it pushes
the local data to the remote database will it change the Sessions.ID column
to a unique field (as no doubt lots of people will have 1, 2, 3 in their
local databases and the global database must have a unique ID), and then
transfer this changed ID back to the local database? Furthermore, if it
changes the Sessions.ID column during the merge it will also need to update
the SessionDetail.SessionID foreign key to maintain referential integrity,
is this also handled?

So my question is, how much of this sync and data merge is automated and are
there any good examples or pointers for my scenario? I cannot reasonably use
a GUID for Session.ID as there will be lots of SessionDetail entries and the
size would be far too much.

Many thanks,

Chris

View 7 Replies View Related

Sync Two Tables

Feb 22, 2008

Hi Forum, Ive been unsuccessfully trying to copy data from one table to another, very simple scenerio!
Table1 ID(PK), FirstName, Mobile, Date.
Table2 FirstName, Mobile.
The first question I have is should I fill Table2 at the insert stage OR should/do I update Table2 from Table1 as the users details are entered. ie create some kind of relationship.
Really appreciate good advice! cheers P
 

View 7 Replies View Related

Sync DBs On Different Servers

Apr 18, 2005

I have two db instances on different SQL Servers. One is my test db and the other the prod. db. Each has two tables that hold lookUp values for the entire application. I would like to keep these tables in sync. in both dbs. The prod. db would be the master. I was trying to design a trigger to insert, update, or delete the appropriate records in the test db as they were added or deleted from the prod db.
I'm getting too many prefixes errors on the script when trying to reference the table on the test db using four part naming convention.
Any ideas on how to resolve this issue? Do I need to set up a linked server to accomplish this functionality? If so, how do I setup security for a linked server?
Thanks in advance.
Oscar

View 1 Replies View Related

Out Of Sync User IDs

Jan 31, 2000

I have a SQL 7 backup file that I restored onto a new server. All the objects within the database are not owned by dbo, instead they are owned by a db user. When I tried to login to the db it said that it wasn't a valid user. So I added the login to the system. Now when I login it says it is not a valid db user. I have attempted to sync the id's but don't know how. In 6.5 I could run an ad-hoc query to match the SUID's for the system and the database. In 7.0 I can not because the suid for the db is computed. Any ideas on how to sync the user ID's so that I can login to the server using the target db as my default and can query the table with prefacing the owner(I can get in if I give my login SA privelages but then I have to preface all the objects with the owners name)?

Thanks in advance for any help that you can offer.

View 2 Replies View Related

Sync Between Two Systems

Mar 18, 2007

I need to syncronize two separate databases. One is SQL Server the other is MySql. I don't have a lot of experience with MSSQL and need a little advice on how best (in terms of speed especially) to gather records that have been added since the last sync and any that have been modified. The table in question has datetime fields for both, the time each record was created (CreatedTime) and the time that the record was last modified (ModifiedTime). Sync will happen daily.

I have worked out a few ways I might do this with DATEADD or DATEDIFF, but my question is, what is the most effecient way? Currently I'm just looking for a way to get inserted and updated records from SQL Server to MySQL. I may have to do a two way sync of some sort later.

View 2 Replies View Related

3 Sql 2000 Sync

Mar 19, 2006

I need to make a sync between 3 or more SQL Servers. We have 3 Small Business server with sql server 2000. In all the 3 locations, branch and headquarters we've the same databate data.
For sync with 2 there's no problem. I need to make it with three and then at the end of the year with four.
Can anyone help me?

Cheers

João Almeida

View 1 Replies View Related

Sync Procedure

Jul 23, 2007

how do i write a sync procedure that syncs both tables and ensures that Table_2 keeps all services that are listed in Table_1

how do i write a procedure for the sync between both tables, and put this procedure into the package

so basically there have to be two sync parts: First is INSERT of what is not yet existing, second one is UPDATE on the appropriate attributes.

How would i write this sync procedure?

View 1 Replies View Related

Sync Procedure

Jul 23, 2007

how do i write a sync procedure that syncs both tables and ensures that Table_2 keeps all services that are listed in Table_1

how do i write a procedure for the sync between both tables, and put this procedure into the package

so basically there have to be two sync parts: First is INSERT of what is not yet existing, second one is UPDATE on the appropriate attributes.

How would i write this sync procedure?

View 2 Replies View Related

Sync Tables

Sep 24, 2007

Hi all,

I have three tables and i want to bring all tables into sync.
My problem is that the difference in the amount of records is huge.

CORE -- 85659 This table doesnt have a PK
CRF -- 59895 This table has a composite key (MIN,MAX)
DS -- 58595 This table also has a the same composite key (MIN,MAX)

All the tables have their own UIDs. Additionally CRF has a column which stores the UID of CORE table and DS has a column which stores UID of the CRF table.

CORE --> CRF --> DS
UID --> UID,CORE_UID --> UID,CRF_UID

I have only 3 columns (UID, MIN, MAX) that can be used to sync all the tables. Can anybody help me...?

Thanks in advance....

View 3 Replies View Related

Sync'ing 2 Databases

Jul 20, 2005

Hello,I've got 2 databases (both on MS-SQL Sever2k). One of them (remote)contains table which is often updated. For various reasons I'd like tomaintain a copy on local MSSQLServer. Is there any built-in mechanism whichallows to do such things?! I can do this manually, by examining the remotetable contents, and downloading new stuff (local table cannot be modified inany other way), but I guess that there is a smarter way. Any ideas?!ThanksPiotrek

View 1 Replies View Related

Log Shipping - Out Of Sync

Jul 20, 2005

I have tried to set up log shipping for one of our databases - firsttime. Using EM I was able to create the job and maintenance plansucessfully. I wasn't able to find any errors in any logs. In themonitor server, when I look at job history, everything is gettingcopied and loaded sucessfully, yet the STATUS in the log shippingmonitor states it is out of sync.How do I get this into sync? I have set the out of sync threshold to45 minutes. I have made changes in our production database and thosechanges are showing up in the standby database, so it all appears tobe working.Thanks.

View 1 Replies View Related

Data Sync

Feb 11, 2008



I have two databases data1(Express 2005) and data2( Enterprise 2005). Data1 is a subset of Data2. Now beginning from that state any changes to either database should be reflected on both of them.
Now what's my best solution to accomplish this considering one is the subset of other??

Thanks

View 3 Replies View Related

Wierless Sync

Feb 5, 2007

What is the best solution to run a disconnected database on a tablet pc and then sync wirelessly to a SQl Server database?

Thanks

View 1 Replies View Related

Log Shipping : Out Of Sync

Aug 29, 2006

I set up log shipping,

after a while the log shipping pair in LogShip Monitor is out of sync.

what cause this & how to solve this problems.



thx

View 5 Replies View Related

Log Shipping Out Of Sync

Dec 21, 2005

I have set up a database with log shipping to the backup server. I have actually set it up multiple times because it continues to get out of sync, and I do not know another way to get it back in sync (despite much effort to learn how). I have not found much documentation in BOL, nor in the on-line areas that I can find. I have not been able to discover why it keeps getting out of sync.

If there is anyone who may shed some light on this, I would be very greatful.

Particulars (both servers):

Windows ADV Server 2003
SQL 2000 (Enterprise Ed.)
Servers on a work group (not domain)


There is a separate database on the same servers that continues to have successful log shipping.

Thank you very much (in advance).

View 1 Replies View Related

Log Shipping, Out Of Sync

Aug 26, 2006

what is the work around for Out of Sync error?

What cause this problems ?



thx

View 1 Replies View Related

Web Sync Wizard On XP Box

Jan 14, 2007

I have (finally) successfully gotten through the maze and 'published' my database to a folder:

Physical path: I:SqlReplication

unc: WarrenassocSQLReplication

Since I'm running XP pro, I don't have the options of assigning specific read/write permissions to a folder.

However it appears the problem is with accessing the snapshot and the logon's there.



When I run the IIS Web Configure wizard I error out at the snapshot share permissions step (see report below)

Wizard Settings:

Click Finish to perform the following actions:


Modify a virtual directory immediately.

Copy the ISAPI dll 'sqlcesa30.dll" to 'I:SqlReplication" immediately.

Set NTFS permissions immediately.

The virtual directory 'SqlReplication' will be configured with the following options:


On server 'WARRENASSOC'.

Use 'SqlReplication' as the alias.

Use 'I:SqlReplication' as the physical path for the virtual directory.

Use 'Anonymous' as the authentication method(s).

Do not require secure channel.

Set user permissions to 'Execute'.

Clients can use 'http://WARRENASSOC/SqlReplication/sqlcesa30.dll' as the Internet URL.

'sqlcesa30.dll' will be copied from 'C:Program FilesMicrosoft SQL Server 2005 Mobile Editionserver' to 'I:SqlReplication'.



'WARRENASSOCEd Warren' will get the following NTFS permission:


'Read & Write' on physical path 'I:SqlReplication'.

'Read & Execute' on the ISAPI DLL 'I:SqlReplicationsqlcesa30.dll'.

'Read' on share physical path '\WarrenassocI$SqlReplication'.

'Read' on the share '\WarrenassocI$SqlReplication'.





- Modifying the virtual directory (Rolled back)

- Copying the ISAPI DLL (Rolled back)

- Setting the directory permissions (Rolled back)

- Setting the server agent permissions (Rolled back)

- Setting the snapshot directory permissions (Rolled back)

- Setting the snapshot share permissions (Error)



Messages

The operation completed successfully. (Exception from HRESULT: 0x80070000) (mscorlib)


- Modifying the Virtual Directory configuration file. (Stopped)







When I created the snapshot I used my personal logon (admin rights) at each step

I've tried all combinations of setting the permissions in the wizard from requiring a login and providing my personal login to no requirements and I get the same error.



I'm trying to set up to copy a database from my SQL Server 2005 --> SQl Server CE 31 RC1

to see it it meet my development needs.

I'm at a loss as to how to navigate the security maze!!

Thanks Edward Warren.









View 8 Replies View Related

Log Shipping Going Out-of-sync

Jan 24, 2006

Hello everyone:

I wanted to ask a question about log shipping going out of sync. We have a remote server in the UK that is our production server, and we are trying to set up log shipping with another server in the US. Our Log shipping monitor goes "out-of-sync" after about 8-10 hours. We changed the US server to have the same time as the server in the UK, but there still seems to be an out of syn error after 8 hours.

We are using Windows server 2000 and SQL server 2000.

SQL server will restore logs then after a few hours it stops restoring and goes out of sync. Was just wondering if someone knew the possibilities of why.

Thank you.

View 2 Replies View Related







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