dbTalk Databases Forums  

sp over 2 differente DB

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss sp over 2 differente DB in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bruno Alexandre
 
Posts: n/a

Default sp over 2 differente DB - 01-28-2004 , 10:58 AM






Hi guys,

I wonder How can I build a Store Procedure with two connections?

What I need is to develop a SP to backup the SQL DB that's on Internet
(Hosting Company, and they do not replicate it, well, not without any more
money).
DTS does not have any tool to do that, just ADD, DELETE & INSERT, etc...
cause it's too many records and too many tables, now, it takes 3 hours to
insert all the SQL Database from the Hosting Company to my local Computer
(192Kbps dedicate line, here in the company).

I need to build a SP that reads the last ID that I have in my local PC
and insert from the Hosting company SQL all records > ID that I have.

How can I do this in a SP? How can I manage to work with 2 different
connections?

any ideas, tutorials, anything? All help is appreciate, thank you in
advance.

--


Bruno Miguel Alexandre
Dep Informática do Grupo Filtrarte

Av General Humberto Delgado, 91
Vila Verde
2705-887 Terrugem SNT
Portugal

T. +351 219 608 130
F. +351 219 615 369
w. www.filtrarte.com
@. bruno (AT) filtrarte (DOT) com



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: sp over 2 differente DB - 01-28-2004 , 11:21 AM






OK

You actually want an incremental update of your local box from the ISPs.

I would place triggers on the tabes I need and log the changes (UPDATE,
INSERT, DELETE)

I would then have a package with a series of DDQ tasks that read the table
and apply those changes to your local DB.
Another way would be to implement a very crude version of merge replication.
You check an attribute value on the source against the destination and take
action from there.


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Bruno Alexandre" <bruno.alexandre (AT) filtrarte (DOT) com> wrote

Quote:
Hi guys,

I wonder How can I build a Store Procedure with two connections?

What I need is to develop a SP to backup the SQL DB that's on Internet
(Hosting Company, and they do not replicate it, well, not without any more
money).
DTS does not have any tool to do that, just ADD, DELETE & INSERT,
etc...
cause it's too many records and too many tables, now, it takes 3 hours to
insert all the SQL Database from the Hosting Company to my local Computer
(192Kbps dedicate line, here in the company).

I need to build a SP that reads the last ID that I have in my local PC
and insert from the Hosting company SQL all records > ID that I have.

How can I do this in a SP? How can I manage to work with 2 different
connections?

any ideas, tutorials, anything? All help is appreciate, thank you in
advance.

--


Bruno Miguel Alexandre
Dep Informática do Grupo Filtrarte

Av General Humberto Delgado, 91
Vila Verde
2705-887 Terrugem SNT
Portugal

T. +351 219 608 130
F. +351 219 615 369
w. www.filtrarte.com
@. bruno (AT) filtrarte (DOT) com





Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.