Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Importing / Updating from another DB to MS SQL

 
   Database Help (Home) -> Replication RSS
Next:  FileMaker Does Sudoku  
Author Message
Jordan

External


Since: Nov 29, 2009
Posts: 3



(Msg. 1) Posted: Tue May 25, 2010 2:54 pm
Post subject: Importing / Updating from another DB to MS SQL
Archived from groups: microsoft>public>sqlserver>replication (more info?)

We have a MS SQL 2000 server and an Pervasive 2000i SP4 Server on seperate
boxes. There is a table on the Pervasive box that has a list of parts with
descriptions and other information that I need to have partially syncronized
wtih my MS box.

Right now I have an MS Access front end connecting to both tables via ODBC
that has an append query and an update query to add and update just the
information I need to the MS SQL server:

1. Get all the new Part Numbers, Descriptions, and Price out of [Part
Master] on the Pervasive box and append them to the table on the MSSQL box
if the part does not already:

INSERT INTO tblParts ( PartID, Description1, Description2, Cost )
SELECT [Part Master].PRTNUM_01,
[Part Master].PMDES1_01,
[Part Master].PMDES2_01,
[Part Master].COST_01
FROM [Part Master] LEFT JOIN Parts ON [Part Master].PRTNUM_01 = Parts.PartID
WHERE (((Parts.PartID) Is Null));

2. Update all the Part Descriptions on the MSSQL box with all the current
descriptions from the Pervasive box.

UPDATE [Part Master] INNER JOIN Parts
ON [Part Master].PRTNUM_01 = Parts.PartID
SET Parts.Discription1 = [PMDES1_01],
Parts.Description2 = [PMDES2_01],
Parts.Cost = [COST_01],
Parts.PlannerID = [PLANID_01];

The MS SQL server has the Pervasive client installed and ODBC Connection
setup. Is it possible for me to have the MSSQL server run the two updates
itself at night rather than have to use the Access queries?

 >> Stay informed about: Importing / Updating from another DB to MS SQL 
Back to top
Login to vote
Paul Ibison

External


Since: Nov 21, 2009
Posts: 4



(Msg. 2) Posted: Tue Jun 15, 2010 4:26 am
Post subject: Re: Importing / Updating from another DB to MS SQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Best to repost this in the programming group as it is not related the SQL
Server replication.
Thanks,
Paul Ibison

 >> Stay informed about: Importing / Updating from another DB to MS SQL 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
A useable but non-updating subscriber? - Is there a way in SQL 2005 to be able to use a subscriber to test run data and not have the updated data sent back to the publisher using any method of replication? We will have 1 publisher and 2 subscribers (all 2005), and we would like to use one o...

Updating identity range in a replicated database - I am using sp_adjustpublisheridentityrange to update and identity range in a subscriber... the identity range was exhausted: I used the following in the publisher tot update the publication: sp_adjustpublisheridentityrange @publication = 'PUB_1',..

rowguidcol updating with Merge replication not allowed. - In another thread I'm having a problem with Transactional replication which is unresolved so because I'm testing with a sample database from the software vendor I decided to try and use merge replication instead. After replicating the DB I try to edit...

how to? - I have transactional replication running in sql2000. I need to find out whether there are pending transactions to be replicated and I need to do this query. Is there any way?

Trans Replication with all types of objects published - Correct me if im wrong but do i need to create many publications for SQL should i have stored procs,views,indexed views,etc in addition to the tables ? It seems that when i have just one publication with all these objects published in it and when the..
   Database Help (Home) -> Replication All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]