Please give me suggestions of Replication and Stored procedure type update

Please give me suggestions of Replication and Stored procedure type update

Post by Edwin Ma » Thu, 29 Jul 1999 04:00:00



We have to diff. databases in two diff. country country. And we have to
upload the telex transactions to the campus every day.

Currently I designing the files that we send is a delimited text file.

The problems is When the text file get transfered to the campus I dont have
any idea how to import it.

I have try to write a VB program that read the text file as a data source
then perform update to the table at the campus. But I encounted many
technical problems like it generate errors when duplication appear! And what
i want is perform update when the record is aready existed in the campus
table and append when the record is not persented !!

In this case , Which solution is best and easilest for me? Coz I only have 1
yr. experience in progranning. Should i use replication? Or ...... ?

Please help ... Appreciated for any infomations

Edwin

 
 
 

Please give me suggestions of Replication and Stored procedure type update

Post by Dejan Sark » Thu, 29 Jul 1999 04:00:00


Edwin,

if you use SQL 7.0, then solution for you would be Data Transformation
Service. If you don't use 7.0, this could be the reason to purchase it.

HTH,
Dejan Sarka

P.S.: Please do not post messages to so many groups!

 
 
 

Please give me suggestions of Replication and Stored procedure type update

Post by R. Schot » Fri, 30 Jul 1999 04:00:00


If you are willing to to the following, then it should work without
automatic
replication (you have to watch at - and program, too):

Add to every telex dataset you have to read in a timestamp value.
When you read this into your (M?)DB compare in case of a duplicate
entry if the new record is younger, if so - dump the old DS to another table
- so to say - a conflict table and overwrite the old DS with the newly read
entries. So you provide the choice for your boss to read a lot before he
deletes something important. So it is not your fault.

Sorry for kidding: No the serious aspect behind is: NEVER EVER DO
A CONFLICT RESOLUTION WITHOUT USER DECISION
except you are 100% absolutely, definetively safe to destroy data...

hope this helps some.

Robert

Quote:> We have to diff. databases in two diff. country country. And we have to
> upload the telex transactions to the campus every day.

> Currently I designing the files that we send is a delimited text file.

> The problems is When the text file get transfered to the campus I dont
have
> any idea how to import it.

> I have try to write a VB program that read the text file as a data source
> then perform update to the table at the campus. But I encounted many
> technical problems like it generate errors when duplication appear! And
what
> i want is perform update when the record is aready existed in the campus
> table and append when the record is not persented !!

> In this case , Which solution is best and easilest for me? Coz I only have
1
> yr. experience in progranning. Should i use replication? Or ...... ?

> Please help ... Appreciated for any infomations

> Edwin

 
 
 

Please give me suggestions of Replication and Stored procedure type update

Post by Edwin Ma » Sat, 31 Jul 1999 04:00:00


Quote:> If you are willing to to the following, then it should work without
> automatic
> replication (you have to watch at - and program, too):

> Add to every telex dataset you have to read in a timestamp value.
> When you read this into your (M?)DB compare in case of a duplicate
> entry if the new record is younger, if so - dump the old DS to another
table
> - so to say - a conflict table and overwrite the old DS with the newly
read
> entries. So you provide the choice for your boss to read a lot before he
> deletes something important. So it is not your fault.

> Sorry for kidding: No the serious aspect behind is: NEVER EVER DO
> A CONFLICT RESOLUTION WITHOUT USER DECISION
> except you are 100% absolutely, definetively safe to destroy data...

> hope this helps some.

> Robert

Ya.. you got my point ... but i'm too new to writing to hard program ...
would u mind to give me some simple code?

And I have to decide where to perform these actions? On the VB program side
or the SQL server side(stored procedure)

Edwin

 
 
 

Please give me suggestions of Replication and Stored procedure type update

Post by R. Schot » Fri, 30 Jul 1999 04:00:00


If you are willing to to the following, then it should work without
automatic
replication (you have to watch at - and program, too):

Add to every telex dataset you have to read in a timestamp value.
When you read this into your (M?)DB compare in case of a duplicate
entry if the new record is younger, if so - dump the old DS to another table
- so to say - a conflict table and overwrite the old DS with the newly read
entries. So you provide the choice for your boss to read a lot before he
deletes something important. So it is not your fault.

Sorry for kidding: No the serious aspect behind is: NEVER EVER DO
A CONFLICT RESOLUTION WITHOUT USER DECISION
except you are 100% absolutely, definetively safe to destroy data...

hope this helps some.

Robert

Quote:> We have to diff. databases in two diff. country country. And we have to
> upload the telex transactions to the campus every day.

> Currently I designing the files that we send is a delimited text file.

> The problems is When the text file get transfered to the campus I dont
have
> any idea how to import it.

> I have try to write a VB program that read the text file as a data source
> then perform update to the table at the campus. But I encounted many
> technical problems like it generate errors when duplication appear! And
what
> i want is perform update when the record is aready existed in the campus
> table and append when the record is not persented !!

> In this case , Which solution is best and easilest for me? Coz I only have
1
> yr. experience in progranning. Should i use replication? Or ...... ?

> Please help ... Appreciated for any infomations

> Edwin

 
 
 

Please give me suggestions of Replication and Stored procedure type update

Post by Edwin Ma » Sat, 31 Jul 1999 04:00:00


Quote:> If you are willing to to the following, then it should work without
> automatic
> replication (you have to watch at - and program, too):

> Add to every telex dataset you have to read in a timestamp value.
> When you read this into your (M?)DB compare in case of a duplicate
> entry if the new record is younger, if so - dump the old DS to another
table
> - so to say - a conflict table and overwrite the old DS with the newly
read
> entries. So you provide the choice for your boss to read a lot before he
> deletes something important. So it is not your fault.

> Sorry for kidding: No the serious aspect behind is: NEVER EVER DO
> A CONFLICT RESOLUTION WITHOUT USER DECISION
> except you are 100% absolutely, definetively safe to destroy data...

> hope this helps some.

> Robert

Ya.. you got my point ... but i'm too new to writing to hard program ...
would u mind to give me some simple code?

And I have to decide where to perform these actions? On the VB program side
or the SQL server side(stored procedure)

Edwin

 
 
 

Please give me suggestions of Replication and Stored procedure type update

Post by Edwin Ma » Sat, 31 Jul 1999 04:00:00


Quote:> basically it's really simple. There are three steps: connect to source (in
> your case the text file), connect to destination (SQL Server), and pump
the
> data. While pumping you can do nearly anything - any transformation you
> need. You can use ActiveX script to check for existing records and update
> them and then to import new records.

> However, you can always do the import in two steps, if this is easier for
> you: import everything to SQL in temporary table and then work further
from
> temporary table.

Hm ... I kinda understand the concept is very simple , but the problem is i
dont know how to do everthing... like how to use activeX scripts.... furture
i dont know how to trap the error when dulipcation occurs .

And... I know how to retrieve the text file to act as a data source in VB
...But I donno how to translate it to a table (I want to convert it in batch
, not in every fields)

Would u mind to give me some source code..I'll be very appreciated.

Thanks
Edwin

 
 
 

1. Please give me suggestions of Replication and Stored procedure type update

We have to diff. databases in two diff. country country. And we have to
upload the telex transactions to the campus every day.

Currently I designing the files that we send is a delimited text file.

The problems is When the text file get transfered to the campus I dont have
any idea how to import it.

I have try to write a VB program that read the text file as a data source
then perform update to the table at the campus. But I encounted many
technical problems like it generate errors when duplication appear! And what
i want is perform update when the record is aready existed in the campus
table and append when the record is not persented !!

In this case , Which solution is best and easilest for me? Coz I only have 1
yr. experience in progranning. Should i use replication? Or ...... ?

Please help ... Appreciated for any infomations

Edwin

2. Oracle or SQL Server

3. snapshot replication of views and stored procedures gives probs

4. Left() and len() functions in Oracle?

5. snapshot replication of views and stored procedures STILL gives probs

6. How do you programaticaly change the name of a table.

7. URGENT !! Please give me suggestions~~~~~`

8. md5 in postgres 7.3

9. Please give me a suggestion!

10. Please give suggestions on web site

11. Give me a suggestion please?

12. Need suggestion for type of replication to use

13. SQL server 2000 replication wizard created wrong update stored procedure